免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1917 | 回复: 2
打印 上一主题 下一主题

请教一个 solaris路由添加和删除的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-03-13 10:15 |只看该作者 |倒序浏览
为什么我使用了route add -host 132.119.250.100  192.168.100.2 -interface ce1命令以后,路由表自动添加了一条路由,但并不是到主机132.119.250.100而是到网络0.2.24.0
现在想删掉删不掉,有人能帮忙解决一下不?




-bash-3.00# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              59.36.0.81           UG        1     550689           
0.2.40.0             192.168.100.2        U         1         20 ce1      
59.0.0.0             59.36.0.82           U         1     225388 ce0      
192.168.1.0          192.168.1.8          U         1         11 ce0:1     
192.168.100.0        192.168.100.2        U         1        124 ce1      
224.0.0.0            59.36.0.82           U         1          0 ce0      
127.0.0.1            127.0.0.1            UH        3    4087292 lo0      
-bash-3.00# route add -host 132.119.250.100 192.168.100.1 -interface ce1
add net 132.119.250.100: gateway 192.168.100.1: Network is unreachable
-bash-3.00# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              59.36.0.81           UG        1     550691           
0.2.40.0             192.168.100.2        U         1         20 ce1      
59.0.0.0             59.36.0.82           U         1     225388 ce0      
192.168.1.0          192.168.1.8          U         1         11 ce0:1     
192.168.100.0        192.168.100.2        U         1        124 ce1      
224.0.0.0            59.36.0.82           U         1          0 ce0      
127.0.0.1            127.0.0.1            UH        3    4087300 lo0      
-bash-3.00# ping 132.119.126.130
no answer from 132.119.126.130
-bash-3.00# route add -host 132.119.250.100 192.168.100.2 -interface ce1
add net 132.119.250.100: gateway 192.168.100.2
-bash-3.00# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              59.36.0.81           UG        1     550693           
0.2.40.0             192.168.100.2        U         1          0 ce1      
0.2.40.0             192.168.100.2        U         1         20 ce1      
59.0.0.0             59.36.0.82           U         1     225388 ce0      
192.168.1.0          192.168.1.8          U         1         11 ce0:1     
192.168.100.0        192.168.100.2        U         1        124 ce1      
224.0.0.0            59.36.0.82           U         1          0 ce0      
127.0.0.1            127.0.0.1            UH        6    4087353 lo0      
-bash-3.00#
-bash-3.00#

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2012-03-13 22:35 |只看该作者
route add 132.230.10.0 -netmask 255.255.255.0 192.169.1.254

论坛徽章:
7
双子座
日期:2013-09-09 15:55:31CU大牛徽章
日期:2013-09-18 15:22:06CU大牛徽章
日期:2013-09-18 15:22:20CU大牛徽章
日期:2013-09-18 15:22:26CU大牛徽章
日期:2013-09-18 15:22:31CU大牛徽章
日期:2013-09-18 15:22:37CU大牛徽章
日期:2013-09-18 15:22:46
3 [报告]
发表于 2012-03-14 11:21 |只看该作者
-host,host前没“-"吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP