ITPub博客

首页 > 应用开发 > IT综合 > 配置route

配置route

原创 IT综合 作者:mckobe23 时间:2007-05-14 16:51:32 0 删除 编辑

1.查看当前路由状态

# route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.2 192.168.1.1 255.255.255.255 UGH 0 0 0 eth3
192.168.1.3 * 255.255.255.0 U 0 0 0 eth3

2.添加路由

# route add -net 192.168.1.4 netmask 255.255.0.0 gw 192.168.1.5

[@more@]系统reboot后会恢复路由原始状态,如果不想每次重新配置的话,可以将添加路由的命令加到启动脚本里面.

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

下一篇: JProfiler安装配置
请登录后发表评论 登录
全部评论

注册时间:2009-06-12

  • 博文量
    40
  • 访问量
    587271