Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 36.154.249.156 0.0.0.0 255.255.255.252 U 0 0 0 eth1 58.215.239.172 0.0.0.0 255.255.255.252 U 0 0 0 eth2 192.168.33.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 1004 0 0 eth2 0.0.0.0 58.215.239.173 0.0.0.0 UG 0 0 0 eth2 ip route add default via 36.154.249.157 dev eth1 table ChinaM ip route add default via 58.215.239.173 dev eth2 table ChinaT ip rule add from 36.154.249.158 table ChinaM ip rule add from 58.215.239.174 table ChinaT [1]+ Stopped vi /etc/rc.local [root@pbx ~]# ifconfig eth0 Link encap:Ethernet HWaddr 40:8D:5C:23:C8:39 inet addr:192.168.33.10 Bcast:192.168.33.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) eth1 Link encap:Ethernet HWaddr 50:E5:49:CE:C4:2C inet addr:36.154.249.158 Bcast:36.154.249.159 Mask:255.255.255.252 inet6 addr: fe80::52e5:49ff:fece:c42c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:290 errors:0 dropped:0 overruns:0 frame:0 TX packets:436 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:40004 (39.0 KiB) TX bytes:506160 (494.2 KiB) eth2 Link encap:Ethernet HWaddr 90:2B:34:CB:E2:77 inet addr:58.215.239.174 Bcast:58.215.239.175 Mask:255.255.255.252 inet6 addr: fe80::922b:34ff:fecb:e277/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3991 errors:0 dropped:0 overruns:0 frame:0 TX packets:7182 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1139627 (1.0 MiB) TX bytes:2435332 (2.3 MiB) 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:4480 errors:0 dropped:0 overruns:0 frame:0 TX packets:4480 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1202828 (1.1 MiB) TX bytes:1202828 (1.1 MiB)
发表评论