V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
webjin
V2EX  ›  问与答

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

  •  
  •   webjin · Jan 13, 2015 · 2436 views
    This topic created in 4136 days ago, the information mentioned may be changed or developed.

    <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

    8 replies    2015-01-14 00:22:25 +08:00
    mhycy
        1
    mhycy  
       Jan 13, 2015
    121.13.38.31/32 Direct 0 0 D 127.0.0.1 Vlanif1
    不是转发到127.0.0.1么
    webjin
        2
    webjin  
    OP
       Jan 13, 2015
    哦有的人说那是广播地址。
    mhycy
        3
    mhycy  
       Jan 13, 2015
    @webjin 127.0.0.1这个段什么时候成广播地址了?
    bellchu
        4
    bellchu  
       Jan 13, 2015   ❤️ 1
    @webjin

    Network: 121.13.38.16/28 01111001.00001101.00100110.0001 0000 (Class A)
    Broadcast: 121.13.38.31
    bellchu
        5
    bellchu  
       Jan 13, 2015   ❤️ 1
    其实就是一个简单的例行组织广播地址泛洪
    bellchu
        6
    bellchu  
       Jan 13, 2015   ❤️ 1
    组织=阻止 笔误
    invite
        7
    invite  
       Jan 13, 2015
    Internet Address is 121.13.38.24/28
    Internet Address is 121.13.83.33/28 Sub <-- 你额外配置了一个SUB地址啊?
    webjin
        8
    webjin  
    OP
       Jan 14, 2015 via Android
    @mhycy 127.1本地还回地址
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3436 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 11:27 · PVG 19:27 · LAX 04:27 · JFK 07:27
    ♥ Do have faith in what you're doing.