Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества? Помогите нам с документацией!
0 Пользователей и 1 Гость просматривают эту тему.
#!/bin/bashfor r in $(cat local_route) do route add -net $r gw 10.18.39.254done
10.0.0.0/8172.16.0.0/1246.28.64.0/2191.204.132.0/2291.211.12.0/2294.124.160.0/21193.106.28.0/22193.106.60.0/22193.110.156.0/24193.238.152.0/22194.114.132.0/22195.144.14.0/24213.5.192.0/21217.12.192.0/19
]vadis@achtung:~$ netstat -nrТаблица маршутизации ядра протокола IPDestination Gateway Genmask Flags MSS Window irtt Iface193.178.228.140 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0193.178.228.140 0.0.0.0 255.255.255.255 UH 0 0 0 ppp110.10.124.0 0.0.0.0 255.255.254.0 U 0 0 0 eth20.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp10.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0vadis@achtung:~$ sudo /etc/init.d/networking restart[sudo] password for vadis: * Reconfiguring network interfaces... ppp1: error fetching interface information: Device not foundPlugin rp-pppoe.so loaded.RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5SIOCADDRT: File existsrun-parts: /etc/network/if-up.d/routes exited with return code 7SIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsrun-parts: /etc/network/if-up.d/routes exited with return code 7SIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsSIOCADDRT: File existsrun-parts: /etc/network/if-up.d/routes exited with return code 7 [ OK ]vadis@achtung:~$ netstat -nrТаблица маршутизации ядра протокола IPDestination Gateway Genmask Flags MSS Window irtt Iface10.3.2.1 10.10.124.1 255.255.255.255 UGH 0 0 0 eth2193.178.228.214 10.10.124.1 255.255.255.255 UGH 0 0 0 eth2193.178.228.1 10.10.124.1 255.255.255.255 UGH 0 0 0 eth2193.178.228.213 10.10.124.1 255.255.255.255 UGH 0 0 0 eth2193.178.228.140 0.0.0.0 255.255.255.255 UH 0 0 0 ppp010.10.124.0 0.0.0.0 255.255.254.0 U 0 0 0 eth2192.168.0.0 10.10.124.1 255.255.0.0 UG 0 0 0 eth210.0.0.0 10.10.124.1 255.0.0.0 UG 0 0 0 eth20.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
]#!/bin/bashroute add -net 10.0.0.0 netmask 255.0.0.0 gw 10.10.124.1 dev eth2route add -net 192.168.0.0 netmask 255.255.0.0 gw 10.10.124.1 dev eth2route add -host 193.178.228.1 gw 10.10.124.1 dev eth2route add -host 193.178.228.213 gw 10.10.124.1 dev eth2route add -host 193.178.228.214 gw 10.10.124.1 dev eth2route add -host 10.3.2.1 gw 10.10.124.1 dev eth2route add default dev ppp0
]eth2 Link encap:Ethernet HWaddr 6c:62:6d:53:0e:7d inet addr:10.10.125.163 Bcast:10.10.125.255 Mask:255.255.254.0 inet6 addr: fe80::6e62:6dff:fe53:e7d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:163673 errors:0 dropped:0 overruns:0 frame:0 TX packets:286636 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:19964861 (19.9 MB) TX bytes:403486603 (403.4 MB) Interrupt:27 Base address:0x4000 lo Link encap:Локальная петля (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:103 errors:0 dropped:0 overruns:0 frame:0 TX packets:103 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:11380 (11.3 KB) TX bytes:11380 (11.3 KB)ppp0 Link encap:Протокол PPP (Point-to-Point Protocol) inet addr:91.201.226.120 P-t-P:193.178.228.140 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:142771 errors:0 dropped:0 overruns:0 frame:0 TX packets:255362 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:13443179 (13.4 MB) TX bytes:362277609 (362.2 MB)
auto loiface lo inet loopbackauto dsl-provideriface dsl-provider inet ppppre-up /sbin/ifconfig eth2 up # line maintained by pppoeconfprovider dsl-providerauto eth1iface eth1 inet manualauto eth2iface eth2 inet manual
Страница сгенерирована за 0.072 секунд. Запросов: 25.