Товарищи всем доброго времени суток. У меня следующая проблема: никак не получается настроить маршрутизацию. Есть машина_1 на ней 3 интерфейса:
eth0 Link encap:Ethernet HWaddr 00:15:58:94:c5:26
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::215:58ff:fe94:c526/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:387653 errors:4901 dropped:0 overruns:0 frame:0
TX packets:413810 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90198532 (90.1 MB) TX bytes:232238702 (232.2 MB)
eth1 Link encap:Ethernet HWaddr 00:30:4f:4c:51:f1
inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::230:4fff:fe4c:51f1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3061 errors:0 dropped:0 overruns:0 frame:0
TX packets:2230 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:297142 (297.1 KB) TX bytes:280778 (280.7 KB)
eth2 Link encap:Ethernet HWaddr 5c:d9:98:f5:89:25
inet addr:xx.yy.zz.tt Bcast:xx.yy.zz.bb Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2169252 errors:0 dropped:6934 overruns:0 frame:0
TX packets:364190 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:396898590 (396.8 MB) TX bytes:88825694 (88.8 MB)
eth0 Link encap:Ethernet HWaddr 00:0e:a6:97:60:32
inet addr:192.168.20.2 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::20e:a6ff:fe97:6032/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1491 errors:0 dropped:0 overruns:0 frame:0
TX packets:1976 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:189169 (189.1 KB) TX bytes:188547 (188.5 KB)
eth2 Link encap:Ethernet HWaddr 90:94:e4:82:0f:1b
inet addr:192.168.40.253 Bcast:192.168.40.255 Mask:255.255.255.0
inet6 addr: fe80::9294:e4ff:fe82:f1b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4261 errors:0 dropped:0 overruns:0 frame:0
TX packets:2352 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:494612 (494.6 KB) TX bytes:284972 (284.9 KB)
sudo route add -net 192.168.40.0 netmask 255.255.255.0 gw 192.168.20.1
sudo route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.20.2