标签:local vim route add conf rip linux系统 oca net shell
Linux系统中如何添加及删除网关1.临时添加网关
route add default gw x.x.x.x 临时加网关,马上生效
2.永久添加网关:
vim /etc/sysconfig/network-scripts/ifcfg-eth0
GATEWAY=x.x.x.x
或者
vim /etc/rc.local
..
route add default gw x.x.x.x
注意:
route del default gw x.x.x.x 临时删网关,马上生效
标签:local vim route add conf rip linux系统 oca net shell
原文地址:https://blog.51cto.com/9664355/2457907