ip0: 192.168.33.10
ip1: xx.154.249.158 gw:xx.154.249.157
ip2: xx.215.239.174 gw:xx.215.239.173
ip route add default via xx.154.249.157 dev eth1 table ChinaM ip route add default via xx.215.239.173 dev eth2 table ChinaT ip rule add from xx.154.249.158 table ChinaM ip rule add from xx.215.239.174 table ChinaT cat /etc/iproute2/rt_tables # # reserved values # 255 local 254 main 253 default 0 unspec # # local # #1 inr.ruhep 249 ChinaM 239 ChinaT [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:xx.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:xx.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)
发表评论