Hirdetés

Új hozzászólás Aktív témák

  • bviktor93

    tag

    válasz crok #16492 üzenetére

    Mégegyszer átnézve mindent rájöttem, mi volt a hiba: valóban a switch default gateway-ével volt a probléma. Amit én nyilván nem tudtam/nem ellenőriztem az IOSvL2 switchen alapból enabled az ip routing, így az ip default-gateway 10.0.0.254 parancs nem is jut érvényre, amit a show ip route -ból látszik is, csak én azt hittem ez bug. A no ip routingparancs után rendben működik minden:

    Switch#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    Switch(config)#int vlan1
    Switch(config-if)#ip addre
    *May 11 08:31:41.149: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to downss
    Switch(config-if)#ip address 10.0.0.1 255.255.255.0
    Switch(config-if)#no shut
    Switch(config-if)#exit
    *May 11 08:31:56.352: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
    *May 11 08:31:57.354: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to uplt
    Switch(config)#ip default-gateway 10.0.0.254
    Switch(config)#do ping 10.0.0.254
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 10.0.0.254, timeout is 2 seconds:
    .!!!!
    Success rate is 80 percent (4/5), round-trip min/avg/max = 2/2/4 ms
    Switch(config)#do ping 192.168.1.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
    .....
    Success rate is 0 percent (0/5)
    Switch(config)#do show ip route
    Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
           D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
           N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
           E1 - OSPF external type 1, E2 - OSPF external type 2
           i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
           ia - IS-IS inter area, * - candidate default, U - per-user static route
           o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
           a - application route
           + - replicated route, % - next hop override
    Gateway of last resort is not set
          10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
    C        10.0.0.0/24 is directly connected, Vlan1
    L        10.0.0.1/32 is directly connected, Vlan1
    Switch(config)#no ip routing
    Switch(config)#do show ip route
    Default gateway is 10.0.0.254
    Host               Gateway           Last Use    Total Uses  Interface
    ICMP redirect cache is empty
    Switch(config)#do ping 192.168.1.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 2/203/1005 ms
    Switch(config)#
    Amúgy ilyen egyszerű a topológia, a fontosabb dolgokat ráírtam: [kép]
    A tanulság: default route != default gateway, ha az ip routing enabled akkor az ip default-gateway parancsot hülyeség használni.

Új hozzászólás Aktív témák