Есть веб-сервер на Debian 2.6.32-5-amd64 В нем три сетевые
$ sudo ifconfig
[sudo] password for admin:
eth-database Link encap:Ethernet HWaddr bc:ae:c5:ab:aa:2c
inet addr:192.168.2.1 Bcast:192.168.0.0 Mask:255.255.255.0
inet6 addr: fe80::beae:c5ff:feab:aa2c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14544527 errors:0 dropped:0 overruns:0 frame:0
TX packets:7340339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20834143993 (19.4 GiB) TX bytes:496849135 (473.8 MiB)
Interrupt:26 Base address:0x2000
eth-internet Link encap:Ethernet HWaddr 00:02:b3:15:59:b8
inet addr:94.73.206.241 Bcast:94.73.206.243 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:177979 errors:0 dropped:0 overruns:0 frame:0
TX packets:215424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20033864 (19.1 MiB) TX bytes:85653710 (81.6 MiB)
eth-local Link encap:Ethernet HWaddr 00:50:22:e1:ae:99
inet addr:192.168.1.212 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::250:22ff:fee1:ae99/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19585 errors:0 dropped:0 overruns:0 frame:0
TX packets:13080 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1703410 (1.6 MiB) TX bytes:1409550 (1.3 MiB)
Interrupt:22 Base address:0x4c00
$ sudo route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
94.73.206.240 * 255.255.255.252 U 0 0 0 eth-internet
192.168.2.0 * 255.255.255.0 U 0 0 0 eth-database
192.168.0.0 * 255.255.0.0 U 0 0 0 eth-local
default 192.168.1.1.ipl 0.0.0.0 UG 0 0 0 eth-local
default 242.206.73.94.i 0.0.0.0 UG 0 0 0 eth-internet
default 192.168.2.2.ipl 0.0.0.0 UG 0 0 0 eth-database
tcp 0 0 94.73.206.241:8080 xxx.xxx.xxx.xx:63455 SYN_RECV -
tcp 0 0 94.73.206.241:8080 xxx.xxx.xxx.xx:62998 SYN_RECV -
tcp 0 0 94.73.206.241:8080 xxx.xxx.xxx.xx:63418 SYN_RECV -
Вторая проблема - при поднятом eth-local:
admin@webserver:~$ ping google.co.uk -I eth-internet
PING google.co.uk (74.125.43.103) from 192.168.1.212 eth-internet: 56(84) bytes of data.
64 bytes from bw-in-f103.1e100.net (74.125.43.103): icmp_req=1 ttl=52 time=108 ms
64 bytes from bw-in-f103.1e100.net (74.125.43.103): icmp_req=2 ttl=52 time=107 ms
64 bytes from bw-in-f103.1e100.net (74.125.43.103): icmp_req=3 ttl=52 time=107 ms
admin@webserver:~$ ping google.co.uk -I eth-internet
PING google.co.uk (74.125.43.99) from 94.73.206.241 eth-internet: 56(84) bytes of data.
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_req=1 ttl=52 time=109 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_req=2 ttl=52 time=108 ms
Не пинайте если что, я только учусь