Jestem nowicjuszem więc proszę o wyrozumiałość.
Gdy ustawię adres karty eth0 statycznie to nie mam połączenia w ogóle z siecią (nawet ping na ruter nie idzie). Pomoga wyłączenie i włączenie interfejsu ale tylko na chwilę.
Na adresie pobranym przez dhcp (ruter Linksys) wszystko śmiga.
Zauważyłem, że problem chyba jest w bramie dla tego połączenia.
Polecenie:
Kod: Zaznacz cały
route -n
Kod: Zaznacz cały
debian:/home/kris# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Kod: Zaznacz cały
debian:/home/kris# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.10 0.0.0.0 UG 0 0 0 et
Kod: Zaznacz cały
allow-hotplug eth0
iface eth0 inet dhcp
#address 192.168.0.100
#netmask 255.255.255.0
#broadcast 192.168.0.255
#gateway 192.168.0.10
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0
broadcast 10.0.0.255
auto eth0
auto eth1