Hirdetés

Keresés

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

  • soma314

    tag

    válasz FecoGee #12328 üzenetére

    kipróbáltam a hairpin-t egy 3750-esen bekapcsolt STP-vel
    nem estek a portjai blocking state-be:

    konfiguráció

    SW_3750_1#sh run int fa 1/0/1
    Building configuration...

    Current configuration : 35 bytes
    !
    interface FastEthernet1/0/1
    end

    SW_3750_1#sh run int fa 1/0/17
    Building configuration...

    Current configuration : 86 bytes
    !
    interface FastEthernet1/0/17
    switchport access vlan 2
    switchport mode access
    end

    STP output:
    SW_3750_1#sh spanning-tree

    VLAN0001
    Spanning tree enabled protocol ieee
    Root ID Priority 32769
    Address 0023.3426.5780
    This bridge is the root
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

    Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
    Address 0023.3426.5780
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
    Aging Time 300 sec

    Interface Role Sts Cost Prio.Nbr Type
    ------------------- ---- --- --------- -------- --------------------------------
    Fa1/0/1 Desg FWD 19 128.3 P2p

    VLAN0002
    Spanning tree enabled protocol ieee
    Root ID Priority 32769
    Address 0023.3426.5780
    Cost 19
    Port 19 (FastEthernet1/0/17)
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

    Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
    Address 0023.3426.5780
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
    Aging Time 300 sec

    Interface Role Sts Cost Prio.Nbr Type
    ------------------- ---- --- --------- -------- --------------------------------
    Fa1/0/17 Root FWD 19 128.19 P2p

    az más kérdés, hogy a CDP hisztizik a tag-elés miatt:
    *Mar 1 00:11:14.402: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet1/0/1 (1), with SW_3750_1 FastEthernet1/0/17 (2).
    *Mar 1 00:11:14.410: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet1/0/17 (2), with SW_3750_1 FastEthernet1/0/1 (1).

    Pont azért nem gond az STP itt a hairpinnél, mert a Cisco-nál per vlan fut. Mivel a Cisco-nál nincs per vlan nélküli hagyományos RSTP vagy STP ezért MST-t állitottam be egyetlen instance-el, ennek hatására szépen BLK-ba is esik a 17-es port:

    SW_3750_1(config)#spanning-tree mode mst
    SW_3750_1(config)#end
    SW_3750_1#
    *Mar 1 00:14:38.010: %SYS-5-CONFIG_I: Configured from console by console
    SW_3750_1#sh spa
    SW_3750_1#sh spanning-tree

    MST0
    Spanning tree enabled protocol mstp
    Root ID Priority 32768
    Address 0023.3426.5780
    This bridge is the root
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

    Bridge ID Priority 32768 (priority 32768 sys-id-ext 0)
    Address 0023.3426.5780
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

    Interface Role Sts Cost Prio.Nbr Type
    ------------------- ---- --- --------- -------- --------------------------------
    Fa1/0/1 Desg FWD 200000 128.3 P2p
    Fa1/0/17 Back BLK 200000 128.19 P2p

    Ha a portokat trunk-ra hardkódolom, akkor persze logikus módon defaultban ugyanúgy a 17-es port lesz BLK mindkét vlan-re:
    SW_3750_1#sh spanning-tree

    VLAN0001
    Spanning tree enabled protocol rstp
    Root ID Priority 32769
    Address 0023.3426.5780
    This bridge is the root
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

    Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
    Address 0023.3426.5780
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
    Aging Time 300 sec

    Interface Role Sts Cost Prio.Nbr Type
    ------------------- ---- --- --------- -------- --------------------------------
    Fa1/0/1 Desg FWD 19 128.3 P2p
    Fa1/0/17 Back BLK 19 128.19 P2p

    VLAN0002
    Spanning tree enabled protocol rstp
    Root ID Priority 32770
    Address 0023.3426.5780
    This bridge is the root
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

    Bridge ID Priority 32770 (priority 32768 sys-id-ext 2)
    Address 0023.3426.5780
    Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
    Aging Time 300 sec

    Interface Role Sts Cost Prio.Nbr Type
    ------------------- ---- --- --------- -------- --------------------------------
    Fa1/0/1 Desg FWD 19 128.3 P2p
    Fa1/0/17 Back BLK 19 128.19 P2p

    Dehát ugye nem arról volt szó, hogy trunk port-ot csinálnánk "önmagába" hanem, hogy egy hairpin biztosit átjárást a két vlan között.

  • soma314

    tag

    válasz FecoGee #12328 üzenetére

    én nem Cisco eszközöknél láttam hasonlót, ahol RSTP futott volna, ha fut, nem PVRSTP+

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