N5k port-profile change

Hi everyone,

What happens to an existing trunk port on a 2k fex that is part of a port-profile and you make a change to the port-profile such as "spanning-tree port type edge trunk" ?  Is there any disruption in traffic? I suspect there is not.  I am also going to verify in the lab.

 

Thanks,
Dan 

Comments

  • For the port profile the link doesn’t have to flap or reset when you change the profile. As far as I can tell it’s essentially the same as if you went to the interface and manually configured the command, so no it shouldn’t disrupt traffic unless the config change would already disrupt traffic on its own.

    For the fex port though you shouldn’t need to say “spanning-tree port type edge trunk” because it will always run as edge. Below you can see a fex port with just a default config as an access port in vlan 1:

    N5K1# sh run int e101/1/2

    !Command: show running-config interface Ethernet101/1/2
    !Time: Fri Nov 20 15:13:05 2009

    version 5.1(3)N1(1a)

    interface Ethernet101/1/2

    N5K1# show spanning-tree int e101/1/2

    Vlan Role Sts Cost Prio.Nbr Type
    ---------------- ---- --- --------- -------- --------------------------------
    VLAN0001 Desg FWD 2 128.1154 Edge P2p


    Note that the link is running as STP edge even though the command isn't configured. Now if I change it to a trunk the link flaps, and when it comes back it runs as edge trunk:


    N5K1# conf t
    Enter configuration commands, one per line. End with CNTL/Z.
    N5K1(config)# int e101/1/2
    N5K1(config-if)# switchport mode trunk
    2009 Nov 20 15:13:17 N5K1 %ETHPORT-5-IF_DOWN_CFG_CHANGE: Interface Ethernet101/1/2 is down(Config change)
    2009 Nov 20 15:13:17 N5K1 %LLDP-FEX101-5-SERVER_REMOVED: Server with Chassis ID d48c.b5bd.4609 Port ID d48c.b5bd.4609 on local port Eth101/1/2 has been removed
    2009 Nov 20 15:13:17 N5K1 %ETHPORT-5-SPEED: Interface Ethernet101/1/2, operational speed changed to 10 Gbps
    2009 Nov 20 15:13:17 N5K1 %ETHPORT-5-IF_DUPLEX: Interface Ethernet101/1/2, operational duplex mode changed to Full
    2009 Nov 20 15:13:17 N5K1 %ETHPORT-5-IF_RX_FLOW_CONTROL: Interface Ethernet101/1/2, operational Receive Flow Control state changed to off
    N5K1(config-if)# 2009 Nov 20 15:13:17 N5K1 %ETHPORT-5-IF_TX_FLOW_CONTROL: Interface Ethernet101/1/2, operational Transmit Flow Control state changed to on
    2009 Nov 20 15:13:17 N5K1 %ETHPORT-5-IF_UP: Interface Ethernet101/1/2 is up in mode trunk
    2009 Nov 20 15:13:19 N5K1 %LLDP-FEX101-5-SERVER_ADDED: Server with Chassis ID d48c.b5bd.4609 Port ID d48c.b5bd.4609 management address NIL discovered on local port Eth101/1/2 in vlan 0 with enabled capability None
    end
    N5K1# 2009 Nov 20 15:13:21 N5K1 %VSHD-5-VSHD_SYSLOG_CONFIG_I: Configured from vty by brian on [email protected]/0
    N5K1# show spanning-tree int e101/1/2

    Vlan Role Sts Cost Prio.Nbr Type
    ---------------- ---- --- --------- -------- --------------------------------
    VLAN0001 Desg FWD 2 128.1154 Edge P2p

    VLAN0010 Desg FWD 2 128.1154 Edge P2p

    VLAN0020 Desg FWD 2 128.1154 Edge P2p

    VLAN0030 Desg FWD 2 128.1154 Edge P2p

    VLAN0040 Desg FWD 2 128.1154 Edge P2p

    VLAN2010 Desg FWD 2 128.1154 Edge P2p

    N5K1# sh run int e101/1/2

    !Command: show running-config interface Ethernet101/1/2
    !Time: Fri Nov 20 15:13:29 2009

    version 5.1(3)N1(1a)

    interface Ethernet101/1/2
    switchport mode trunk


    Note though that it still doesn't have the command "spanning-tree port type edge trunk". You can still add it if you like but it's not needed:

    N5K1# conf t
    Enter configuration commands, one per line. End with CNTL/Z.
    N5K1(config)# int e101/1/2
    N5K1(config-if)# spanning-tree port type ?
    edge Consider the interface as edge port (enable portfast)
    network Consider the interface as inter-switch link
    normal Consider the interface as normal spanning tree port

    N5K1(config-if)# spanning-tree port type edge ?

    trunk Consider the interface as edge port (enable portfast) even in trunk mode

    N5K1(config-if)# spanning-tree port type edge trunk
    Warning: Edge port type (portfast) should only be enabled on ports connected to a single
    host. Connecting hubs, concentrators, switches, bridges, etc... to this
    interface when edge port type (portfast) is enabled, can cause temporary bridging loops.
    Use with CAUTION

    N5K1(config-if)# sh run int e101/1/2

    !Command: show running-config interface Ethernet101/1/2
    !Time: Fri Nov 20 15:15:49 2009

    version 5.1(3)N1(1a)

    interface Ethernet101/1/2
    switchport mode trunk
    spanning-tree port type edge trunk

    N5K1(config-if)#





    HTH,

    Brian McGahan, CCIE #8593 (R&S/SP/Security)
    [email protected]
     
    Internetwork Expert, Inc.
    http://www.INE.com
    Online Community: http://www.IEOC.com
    CCIE Blog: http://blog.INE.com

    From: [email protected] [mailto:[email protected]] On Behalf Of accely
    Sent: Tuesday, February 05, 2013 8:57 AM
    To: Brian McGahan
    Subject: [CCIE DC] N5k port-profile change

    Hi everyone,
    What happens to an existing trunk port on a 2k fex that is part of a port-profile and you make a change to the port-profile such as "spanning-tree port type edge trunk" ?  Is there any disruption in traffic? I suspect there is not.  I am also going to verify in the lab.
     
    Thanks,
    Dan 



    INE - The Industry Leader in CCIE Preparation
    http://www.INE.com

    Subscription information may be found at:
    http://www.ieoc.com/forums/ForumSubscriptions.aspx
Sign In or Register to comment.