Hirdetés

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

  • bviktor93

    tag

    Sziasztok

    Újra kérdeznék, ha lehet :))
    GNS3, adott egy IOSvL2 switch, bemásolom a parancsokat:
    Switch#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    Switch(config)#interface vlan1
    Switch(config-if)#ip address
    *May 10 14:45:47.102: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down 
    Switch(config-if)#ip address 10.0.0.1 255.255.255.0
    Switch(config-if)#no shut
    Switch(config-if)#exit
    Switch(config)#
    *May 10 14:46:33.729: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
    *May 10 14:46:34.729: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
    Switch(config)#ip default-gateway ?
      A.B.C.D  IP address of default gateway
    Switch(config)#ip default-gateway 10.0.0.254
    Switch(config)#end
    Switch#
    *May 10 14:46:56.721: %SYS-5-CONFIG_I: Configured from console by console
    Switch#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
    A lényeg: kreáltam egy management interface-t és beállítottam egy default gateway-t. Itt a default gateway-nek nem kellene megjelenni a "routing táblában"? Nyilván ip routing nincs engedélyezve, de úgy gondolom hogy a fenti paranccsal ennek ide be kellene kerülni, nem? (A Gateway of last resort is not set helyére.) Default gw.-t simán tudom pingelni:
    Switch#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 = 1/2/3 ms
    Bármi mást, ami más hálózat, és kellene hozzá a default gw. értelemszerűen nem megy:
    Switch#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)
    Ez is valami GNS3 bug lesz?

    Előre is köszi. :R

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