Konfiguration des Routers:
route -n:
Code: Alles auswählen
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.3.1 0.0.0.0 UG 0 0 0 eth1
192.168.1.0 192.168.100.110 255.255.255.0 UG 0 0 0 eth0
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Ich vermisse eine Zeile:
Code: Alles auswählen
192.168.3.0 192.168.3.1 255.255.255.0 UG 0 0 0 eth1
aber wieso?
/etc/network/interfaces:
Code: Alles auswählen
auto eth0
iface eth0 inet static
address 192.168.100.251
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
up route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.100.110 dev eth0
up route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.3.1 dev eth1
pre-down /usr/sbin/ethtool -s eth0 wol g
auto eth1
iface eth1 inet static
address 192.168.3.251
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
gateway 192.168.3.1