InS7
12.10.2008, 21:59
есть сервант, на нем две сетевки (где это я уже говорил)
поднимаются такие маршруты:
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.20.165.252
netmask 255.255.255.0
#dns-nameservers 194.185.172.133 217.77.52.252
auto eth1
iface eth1 inet static
hwaddress ether 00:80:AD:79:1D:70
address 195.209.249.149
netmask 255.255.255.252
gateway 195.209.249.150
dns-nameservers 192.168.30.249 194.85.172.133
up route add -net 172.16.0.0 netmask 255.240.0.0 gw 172.20.165.254
up route add -net 195.218.227.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 195.190.117.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 81.211.111.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 84.204.137.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 195.161.25.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 195.161.38.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 217.106.115.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 217.107.58.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 217.107.180.0 netmask 255.255.252.0 gw 172.20.165.254
up route add -net 217.107.240.0 netmask 255.255.252.0 gw 172.20.165.254
up route add -net 195.161.136.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 195.161.147.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 213.59.10.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 217.107.182.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 217.107.241.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 62.33.22.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 62.33.26.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 62.33.18.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 172.16.0.0 netmask 255.240.0.0 gw 172.20.165.254
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 172.20.165.254
up route add -net 213.232.246.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 213.232.246.248 netmask 255.255.255.252 gw 172.20.165.254
up route add -net 193.232.254.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 194.85.172.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 195.209.248.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 217.107.242.0 netmask 255.255.254.0 gw 172.20.165.254
смотрим route -n
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
195.209.249.148 0.0.0.0 255.255.255.252 U 0 0 0 eth1
195.161.25.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
84.204.137.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
195.190.117.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
217.106.115.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
81.211.111.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
172.20.165.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
62.33.22.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
195.218.227.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
217.107.241.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
213.59.10.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
195.161.147.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
195.161.38.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
217.107.182.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
62.33.26.0 172.20.165.254 255.255.254.0 UG 0 0 0 eth0
195.161.136.0 172.20.165.254 255.255.254.0 UG 0 0 0 eth0
217.107.58.0 172.20.165.254 255.255.254.0 UG 0 0 0 eth0
62.33.18.0 172.20.165.254 255.255.254.0 UG 0 0 0 eth0
217.107.240.0 172.20.165.254 255.255.252.0 UG 0 0 0 eth0
217.107.180.0 172.20.165.254 255.255.252.0 UG 0 0 0 eth0
172.16.0.0 172.20.165.254 255.240.0.0 UG 0 0 0 eth0
0.0.0.0 195.209.249.150 0.0.0.0 UG 0 0 0 eth1
как видно некоторых маршрутов нет, например
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 172.20.165.254
подскажите почему так
Добавлено через 3 минуты
зы. главное все работает, пингуется на локальный адрес из 10.0.0.0/8
поднимаются такие маршруты:
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.20.165.252
netmask 255.255.255.0
#dns-nameservers 194.185.172.133 217.77.52.252
auto eth1
iface eth1 inet static
hwaddress ether 00:80:AD:79:1D:70
address 195.209.249.149
netmask 255.255.255.252
gateway 195.209.249.150
dns-nameservers 192.168.30.249 194.85.172.133
up route add -net 172.16.0.0 netmask 255.240.0.0 gw 172.20.165.254
up route add -net 195.218.227.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 195.190.117.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 81.211.111.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 84.204.137.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 195.161.25.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 195.161.38.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 217.106.115.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 217.107.58.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 217.107.180.0 netmask 255.255.252.0 gw 172.20.165.254
up route add -net 217.107.240.0 netmask 255.255.252.0 gw 172.20.165.254
up route add -net 195.161.136.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 195.161.147.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 213.59.10.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 217.107.182.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 217.107.241.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 62.33.22.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 62.33.26.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 62.33.18.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 172.16.0.0 netmask 255.240.0.0 gw 172.20.165.254
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 172.20.165.254
up route add -net 213.232.246.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 213.232.246.248 netmask 255.255.255.252 gw 172.20.165.254
up route add -net 193.232.254.0 netmask 255.255.255.0 gw 172.20.165.254
up route add -net 194.85.172.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 195.209.248.0 netmask 255.255.254.0 gw 172.20.165.254
up route add -net 217.107.242.0 netmask 255.255.254.0 gw 172.20.165.254
смотрим route -n
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
195.209.249.148 0.0.0.0 255.255.255.252 U 0 0 0 eth1
195.161.25.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
84.204.137.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
195.190.117.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
217.106.115.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
81.211.111.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
172.20.165.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
62.33.22.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
195.218.227.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
217.107.241.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
213.59.10.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
195.161.147.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
195.161.38.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
217.107.182.0 172.20.165.254 255.255.255.0 UG 0 0 0 eth0
62.33.26.0 172.20.165.254 255.255.254.0 UG 0 0 0 eth0
195.161.136.0 172.20.165.254 255.255.254.0 UG 0 0 0 eth0
217.107.58.0 172.20.165.254 255.255.254.0 UG 0 0 0 eth0
62.33.18.0 172.20.165.254 255.255.254.0 UG 0 0 0 eth0
217.107.240.0 172.20.165.254 255.255.252.0 UG 0 0 0 eth0
217.107.180.0 172.20.165.254 255.255.252.0 UG 0 0 0 eth0
172.16.0.0 172.20.165.254 255.240.0.0 UG 0 0 0 eth0
0.0.0.0 195.209.249.150 0.0.0.0 UG 0 0 0 eth1
как видно некоторых маршрутов нет, например
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 172.20.165.254
подскажите почему так
Добавлено через 3 минуты
зы. главное все работает, пингуется на локальный адрес из 10.0.0.0/8