Portál AbcLinuxu, 12. května 2025 07:39
eth0=internet (dhcp pridelovano) eth1=LAN (192.168.1.1) kde prideluji IP dhcp3-server pocitacumroute -n
Destination GW Mask F M R U iFace 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 0.0.0.0 192.168.1.1 0.0.0.0 U 0 0 0 eth0 0.0.0.0 192.168.1.254 0.0.0.0 U 0 0 0 eth0192.168.1.254=GW predchoziho routeru diky moc
#route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref U I 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0ale pri startu musim: #route del default gw 192.168.1.1 (pro eth1) a az potom funguje sit! a po restartu pocitadla je se to routovani zase samo prida!:(
auto lo iface lo inet loopback #NET auto eth0 iface eth0 inet dhcp #iface eth0 inet static # address 192.168.0.89 # netmask 255.255.255.0 # network 192.168.0.0 # broadcast 192.168.0.255 # gateway 192.168.0.10 #LAN auto eth1 iface eth1 inet static address 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1
gateway 192.168.1.1
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.