添加永久路由的方法
配置文件配置路由的方法:
直接編輯/etc/sysconfig/static-routes:
vim /etc/sysconfig/static-routes?
?
根據(jù)需要配置,比如:
192.168.90.52增加一條路由 172.0.0.0\8 ?指向 192.168.91.12 默認網(wǎng)關不變,增加的路由,要確保重啟后,仍然生效
則需要添加:
any net 172.0.0.0/8 ?gw 192.168.91.12
?
保存退出后,用命令 service network restart 重啟網(wǎng)絡即可。
總結(jié)
- 上一篇: Oracle 内核参数
- 下一篇: Android之反编译