linux三个网段的路由添加
时间:2009-07-23 来源:yjxaiwxw
linux三个网段的路由添加
1.ifconfig eth0 192.168.1.1 up
ruote add default gw 192.168.1.1
2.ifconfig eth0 192.168.1.2 up
ifconfig eth0:0 192.168.2.1 up
打开包转发功能
echo 1 >/proc/ysy/net/ipv4/ip_forwoavd
3.ifconfig eth0 192.168.2.2 up
ruote add default gw 192.168.2.2
1.ifconfig eth0 192.168.1.1 up
ruote add default gw 192.168.1.1
2.ifconfig eth0 192.168.1.2 up
ifconfig eth0:0 192.168.2.1 up
打开包转发功能
echo 1 >/proc/ysy/net/ipv4/ip_forwoavd
3.ifconfig eth0 192.168.2.2 up
ruote add default gw 192.168.2.2
相关阅读 更多 +