Red Hat 下 route 静态路由 设置
三种方式:
eth0.route redhat 新推的格式 比较傻瓜一些
route-eth0 redhat 的老的格式 对专业人士很好
static-routes
/etc/sysconfig/network-scripts/eth0.route
ADDRESS0=192.168.0.0
NETMASK0=255.255.0.0
GATEWAY0=10.1.1.254
ADDRESS1=172.16.0.0
NETMASK1=255.240.0.0
GATEWAY1=10.1.1.254
/etc/sysconfig/network-scripts/route-eth0
192.168.0.0/16 via 10.1.1.254
172.16.0.0/12 via 10.1.1.254
/etc/sysconfig/static-routes
eth0 net 192.168.0.0 netmask 255.255.0.0 gw 10.1.1.254
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/20695384/viewspace-689353/ ,如需转载,请注明出处,否则将追究法律责任。