05.11.2010 6:05, Тарас Перебейносов writes: > Нужна помощь. Не понимаю почему маршрут не прописывает... > > Вот так выглядят у меня подключения: > > ta...@taras-homepc:~/Music$ ifconfig > eth0 Link encap:Ethernet HWaddr 00:22:15:d6:21:b6 > inet addr:10.141.10.235 Bcast:10.141.15.255 > Mask:255.255.248.0 > inet6 addr: fe80::222:15ff:fed6:21b6/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:3492044 errors:0 dropped:0 overruns:0 frame:0 > TX packets:1664398 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:4449276910 (4.4 GB) TX bytes:131971039 (131.9 MB) > Interrupt:43 > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > inet6 addr: ::1/128 Scope:Host > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:125 errors:0 dropped:0 overruns:0 frame:0 > TX packets:125 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:10654 (10.6 KB) TX bytes:10654 (10.6 KB) > > ppp0 Link encap:Point-to-Point Protocol > inet addr:89.179.216.151 P-t-P:85.21.230.73 > Mask:255.255.255.255 > UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1 > RX packets:146897 errors:0 dropped:0 overruns:0 frame:0 > TX packets:100115 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:3 > RX bytes:171392499 (171.3 MB) TX bytes:10646122 (10.6 MB) > > ppp1 Link encap:Point-to-Point Protocol > inet addr:10.232.60.207 P-t-P:10.232.60.129 > Mask:255.255.255.255 > UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1 > RX packets:8 errors:0 dropped:0 overruns:0 frame:0 > TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:3 > RX bytes:80 (80.0 B) TX bytes:80 (80.0 B) > > > ------------------- > > а вот таблица маршрутизации: > > ta...@taras-homepc:~$ route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref > Use Iface > 85.21.72.83 10.141.8.1 255.255.255.255 UGH 0 0 > 0 eth0 > 85.21.230.73 10.141.8.1 255.255.255.255 UGH 0 0 > 0 eth0 > 85.21.230.73 10.141.8.1 255.255.255.255 UGH 0 0 > 0 eth0 > 195.14.50.21 10.141.8.1 255.255.255.255 UGH 0 0 > 0 eth0 > 195.14.50.26 10.141.8.1 255.255.255.255 UGH 0 0 > 0 eth0 > 89.179.135.67 10.141.8.1 255.255.255.255 UGH 0 0 > 0 eth0 > 84.47.142.15 0.0.0.0 255.255.255.255 UH 0 0 > 0 ppp0 > 195.14.40.141 10.141.8.1 255.255.255.255 UGH 0 0 > 0 eth0 > 195.14.50.93 10.141.8.1 255.255.255.255 UGH 0 0 > 0 eth0 > 85.21.72.80 10.141.8.1 255.255.255.240 UG 0 0 > 0 eth0 > 89.179.134.64 10.141.8.1 255.255.255.240 UG 0 0 > 0 eth0 > 85.21.138.208 10.141.8.1 255.255.255.240 UG 0 0 > 0 eth0 > 83.102.146.96 10.141.8.1 255.255.255.224 UG 0 0 > 0 eth0 > 192.168.117.0 0.0.0.0 255.255.255.0 U 0 0 > 0 vmnet1 > 194.67.1.0 10.141.8.1 255.255.255.0 UG 0 0 > 0 eth0 > 194.67.18.0 10.141.8.1 255.255.255.0 UG 0 0 > 0 eth0 > 217.118.84.0 10.141.8.1 255.255.255.0 UG 0 0 > 0 eth0 > 233.33.210.0 10.141.10.235 255.255.255.0 UG 0 0 > 0 eth0 > 85.21.90.0 10.141.8.1 255.255.255.0 UG 0 0 > 0 eth0 > 192.168.94.0 0.0.0.0 255.255.255.0 U 0 0 > 0 vmnet8 > 78.107.23.0 10.141.8.1 255.255.255.0 UG 0 0 > 0 eth0 > 85.21.79.0 10.141.8.1 255.255.255.0 UG 0 0 > 0 eth0 > 78.107.52.0 10.141.8.1 255.255.255.0 UG 0 0 > 0 eth0 > 10.141.8.0 0.0.0.0 255.255.248.0 U 1 0 > 0 eth0 > 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 > 0 eth0 > 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 > 0 ppp0 > > пытаюсь добавить маршруты: > > ta...@taras-homepc:~$ sudo route add -host 10.232.60.207 gw > 10.232.60.129 dev ppp1 > SIOCADDRT: No such process > > ta...@taras-homepc:~$ sudo route add -net 10.0.0.0 netmask 255.0.0.0 > gw 10.232.60.129 metric 5 dev ppp1 > SIOCADDRT: No such process > > Если прописывать без указания dev, то ошибки нет, маршрут > добавляется, но через ppp0, а мне нужно ppp1
Во второй команде не нужно указывать gw. Не понятен смысл первой команды. -- ubuntu-ru mailing list ubuntu-ru@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru