|
|
- router2 ~ # /etc/init.d/net.eth0 restart
- * Stopping eth0
- * Bringing down eth0
- * Removing VLAN 2 from eth0
- * Bringing down eth0.2
- * Shutting down eth0.2 ... [ ok ]
- * Removing VLAN 3 from eth0
- * Bringing down eth0.3
- * Shutting down eth0.3 ... [ ok ]
- * Removing VLAN 4 from eth0
- * Bringing down eth0.4
- * Shutting down eth0.4 ... [ ok ]
- * Removing VLAN 5 from eth0
- * Bringing down eth0.5
- * Shutting down eth0.5 ... [ ok ]
- * Shutting down eth0 ... [ ok ]
- * Starting eth0
- * Bringing up eth0
- * 192.168.0.254/24 [ ok ][color=red]
- * Adding routes
- * 124.193.140.107 via 192.168.2.254 ...
- RTNETLINK answers: No such process [ !! ][/color]
- * Adding VLAN 2 to eth0 [ ok ]
- * Bringing up eth0.2
- * 192.168.1.254/24 [ ok ]
- * Adding VLAN 3 to eth0 [ ok ]
- * Bringing up eth0.3
- * 10.168.1.254/24 [ ok ]
- * Adding VLAN 4 to eth0 [ ok ]
- * Bringing up eth0.4
- * 192.168.2.254/24 [ ok ]
- * Adding VLAN 5 to eth0 [ ok ]
- * Bringing up eth0.5
- * 192.168.3.254/24 [ ok ]
复制代码
以下是我手工添加的结果
- router2 ~ # ip ro add 124.193.140.107 via 192.168.2.254
- router2 ~ #
复制代码
以下是我的net文件
- config_eth0=( "192.168.0.254/24" )
- vlans_eth0=( "2 3 4 5" )
- config_eth0_2=( "192.168.1.254/24" )
- config_eth0_3=( "10.168.1.254/24" )
- config_eth0_4=( "192.168.2.254/24" )
- config_eth0_5=( "192.168.3.254/24" )
- config_eth1=( "124.193.140.105/29
- 172.30.30.26/30" )
- routes_eth0=( "124.193.140.107 via 192.168.2.254" )
- routes_eth1=( "default via 172.30.30.25 src 124.193.140.105" )
复制代码
不知道为什么就是加不上。很奇怪!
高手指点一下 |
|