三层交换机有 1 条路由看不明白

2015-01-13 14:03:23 +08:00
 webjin

<S9303>dis ip rou

Route Flags: R - relay, D - download to fib

Routing Tables: Public
Destinations : 11 Routes : 11

Destination/Mask Proto Pre Cost Flags NextHop Interface

0.0.0.0/0   Static  60   0          RD   121.13.38.17    Vlanif1

121.13.38.16/28 Direct 0 0 D 121.13.38.24 Vlanif1
121.13.38.24/32 Direct 0 0 D 127.0.0.1 Vlanif1
121.13.38.31/32 Direct 0 0 D 127.0.0.1 Vlanif1 #这条路由我一直想不明白是怎么回事。
121.13.83.32/28 Direct 0 0 D 121.13.83.33 Vlanif1 #121.13.38.32/28的网段是下发网关在我们交换机上
121.13.83.33/32 Direct 0 0 D 127.0.0.1 Vlanif1
121.13.83.47/32 Direct 0 0 D 127.0.0.1 Vlanif1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

<S9303>dis int vlan 1
Vlanif1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2014-11-24 22:54:08
Description:
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 121.13.38.24/28
Internet Address is 121.13.83.33/28 Sub
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is e468-a3a7-b732
Current system time: 2015-01-13 13:55:02
Input bandwidth utilization : --
Output bandwidth utilization : --

<S9303>arp ip 121.13.38.31
Error: Local IP Address!

<S9303>ping 121.13.38.31 #只有我们交换机内能ping通外界无法ping通这个IP
PING 121.13.38.31: 56 data bytes, press CTRL_C to break
Reply from 121.13.38.31: bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 121.13.38.31: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 121.13.38.31: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 121.13.38.31: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 121.13.38.31: bytes=56 Sequence=5 ttl=255 time=1 ms

--- 121.13.38.31 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/1 ms

2009 次点击
所在节点    问与答
8 条回复
mhycy
2015-01-13 15:28:35 +08:00
121.13.38.31/32 Direct 0 0 D 127.0.0.1 Vlanif1
不是转发到127.0.0.1么
webjin
2015-01-13 15:33:33 +08:00
哦有的人说那是广播地址。
mhycy
2015-01-13 15:41:49 +08:00
@webjin 127.0.0.1这个段什么时候成广播地址了?
bellchu
2015-01-13 15:42:55 +08:00
@webjin

Network: 121.13.38.16/28 01111001.00001101.00100110.0001 0000 (Class A)
Broadcast: 121.13.38.31
bellchu
2015-01-13 15:45:46 +08:00
其实就是一个简单的例行组织广播地址泛洪
bellchu
2015-01-13 15:46:02 +08:00
组织=阻止 笔误
invite
2015-01-13 17:05:26 +08:00
Internet Address is 121.13.38.24/28
Internet Address is 121.13.83.33/28 Sub <-- 你额外配置了一个SUB地址啊?
webjin
2015-01-14 00:22:25 +08:00
@mhycy 127.1本地还回地址

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/161719

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX