首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux停路由负载均衡

2013-08-14 
linux下路由负载均衡vi /etc/iproute2/rt_tables 200 Service 100 Tech ip route add 192.168.100.0/24 de

linux下路由负载均衡

vi /etc/iproute2/rt_tables 200 Service 100 Tech ip route add 192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.200.8 table Tech ip route add 202.127.124.0/28 dev eth1 proto kernel scope link src 202.127.124.1 table Tech ip route add default via 202.127.124.2 dev eth1 ip route add 192.168.200.0/24 dev eth0 proto kernel scope link src 192.168.100.8 table Service ip route add 219.236.153.0/28 dev eth2 proto kernel scope link src 219.236.153.1 table Service ip route add default via 219.236.153.2 dev eth2 ip rule list ip rule add from 192.168.100.6 to Tech ip rule add from 192.168.100.7 to Service iptables -t nat -A POSTROUTING -s 192.168.100.6 -j MASQUERADE iptables -t nat -A POSTROUTING -s 192.168.100.7 -j MASQUERADE sysctl -A | grep net.ipv4.ip_forward route print

热点排行