ITPub博客

首页 > 应用开发 > IT综合 > 静态路由添加

静态路由添加

原创 IT综合 作者:fjzcau 时间:2015-03-09 21:24:01 0 删除 编辑

AIX:
chdev -l inet0 -a route='net,-hopcount,0,,,,,,-static,40.1.18.0,40.1.243.254'

redhat linux:
route add -net 40.1.18.0/24 gw 40.1.243.254 dev eth1
echo "route add -net 40.1.18.0/24 gw 40.1.243.254 dev eth1" >> /etc/rc.local
 
suse linux: 
route add -net 40.1.18.0/24 gw 40.1.243.254 dev eth1
echo "40.1.18.0 40.1.243.254 255.255.255.0 eth1" >> /etc/sysconfig/network/routes
 
windows :
route add 40.1.18.0 mask 255.255.255.0 40.1.243.254 -p 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22661144/viewspace-1454025/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: db2_backup_log.sh
请登录后发表评论 登录
全部评论

注册时间:2011-04-03

  • 博文量
    208
  • 访问量
    547155