1. 程式人生 > >ifcfg命令--route命令

ifcfg命令--route命令

pro pre 8.0 刪除 ddr mas 添加 text 目標

1. route命令:路由管理命令
(1) 查看:route -n
技術分享圖片

(2)添加
route add [-net|-host] target [netmask Nm] [gw Gw] [[dev] If]
上面名詞解釋
target the destination network or host. You can provide IP addresses in dotted decimal or
host/network names.
-net the target is a network.
-host the target is a host.

 示例:
   1). 目標主機地址:192.168.85.134 網關:202.195.160.97(本地網關必須與本地主機在同一網絡地址)

技術分享圖片
2).目標網絡地址:192.168.0.0 網關:202.195.160.97
技術分享圖片

(3)刪除:route del
route del [-net|-host] target [netmask Nm] [gw Gw] [[dev] If]

  • 名詞解釋同上*
    示例:目標:192.168.85.34 網關:202.195.160.97
    技術分享圖片

ifcfg命令--route命令