1. 程式人生 > >ip 轉發(排程器的路由轉發)

ip 轉發(排程器的路由轉發)

臨時開啟

[[email protected] ~]# echo 1 > /proc/sys/net/ipv4/ip_forward

永久開啟

[[email protected] ~]# vim /etc/sysctl.conf
net.ipv4.ip_forward = 1

 

修改閘道器

[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-ethn
GATEWAY=192.168.2.5
[[email protected] ~]# vim /etc/sysconfig/network
GATEWAY=192.168.2.5