You are on page 1of 6

Nexus Technology Labs Classical Ethernet Switching

STP Edge Ports


Last updated: April 11, 2013

Task
Configure the links between N7K1, N5K1, and N5K2 as follows: Configure the lowest-numbered port between N7K1 and N5K1 as an 802.1q trunk. Configure the lowest-numbered port between N7K1 and N5K2 as an 802.1q trunk. Configure these links as STP Network Ports. Disable all links between the switches. Configure VLANs between N7K1, N5K1, and N5K2 as follows: Create VLAN 10 on these three switches. Configure N5K1's link to Server 1 as an access port in VLAN 10. Configure Server 1 with the IP address 10.0.0.1/24 on this link. Configure N5K2's link to Server 2 as an access port in VLAN 10. Configure Server 2 with the IP address 10.0.0.2/24 on this link. Configure N5K1 and N5K2's links to the servers as STP Edge Ports. When complete, Server 1 & 2 should have IP reachability to each other, and should not be subject to the STP forwarding delay if one of their links flap.

Configuration

FEEDBACK

N 5 K 1 : v l a n1 0 ! i n t e r f a c eE t h e r n e t 1 / 1 s p e e d1 0 0 0 s w i t c h p o r tm o d ea c c e s s s w i t c h p o r ta c c e s sv l a n1 0 s p a n n i n g t r e ep o r tt y p ee d g e ! i n t e r f a c eE t h e r n e t 1 / 6 s w i t c h p o r tm o d et r u n k s p a n n i n g t r e ep o r tt y p en e t w o r k N 5 K 2 : v l a n1 0 ! i n t e r f a c eE t h e r n e t 1 / 2 s p e e d1 0 0 0 s w i t c h p o r tm o d ea c c e s s s w i t c h p o r ta c c e s sv l a n1 0 s p a n n i n g t r e ep o r tt y p ee d g e ! i n t e r f a c eE t h e r n e t 1 / 8 s w i t c h p o r tm o d et r u n k s p a n n i n g t r e ep o r tt y p en e t w o r k N 7 K 1 : v l a n1 0 ! i n t e r f a c eE t h e r n e t 2 / 3 s w i t c h p o r tm o d et r u n k s p a n n i n g t r e ep o r tt y p en e t w o r k ! i n t e r f a c eE t h e r n e t 2 / 5 s w i t c h p o r tm o d et r u n k s p a n n i n g t r e ep o r tt y p en e t w o r k

Verification
Rapid STP Edge Ports are the logical equivalent of the previously Cisco proprietary PortFast feature. Syntax-wise, the spanning-tree port type edge is the equivalent of Catalyst IOS spanning-tree portfast. Like PortFast ports, STP Edge Ports are not subject to the STP Forwarding Delay, because they are the leaf nodes of the tree. The end result of using Edge Ports is two-fold. The first is that when an edge port comes up, it immediately transitions to the forwarding state without having to wait the default 30-second forwarding delay. Second, if the link goes down, a Topology Change Notification (TCN) is not generated. TCNs in RSTP means that the CAM table must immediately be flushed. Frequent TCN generation in RSTP could mean a lot of inefficient flooding in the network, as MAC

addresses would constantly have to be re-learned if TCNs are causing the CAM table to flush. To prevent this, all links that go to non-STP devices, such as end servers, storage arrays, etc., should run as STP edge ports. Verification that a link is running as edge is shown below.

N 5 K 2 #s h o ws p a n n i n g t r e ei n t e r f a c ee 1 / 2 V l a n V L A N 0 0 1 0 D e s gF W D4 1 2 8 . 1 3 0 E d g eP 2 p R o l eS t sC o s t P r i o . N b rT y p e

------

The default behavior is that all ports run as STP port type normal, as seen by the Type P2p from the show spanning-tree output below.

N 5 K 1 #s h o ws p a n n i n g t r e ei n t e r f a c ee 1 / 1 V l a n V L A N 0 0 1 0 D e s gF W D4 1 2 8 . 1 2 9 P 2 p R o l eS t sC o s t P r i o . N b rT y p e

------

When normal ports are activated, RSTP initiates the sync process to attempt rapid convergence. Because the device on the other end of the link, a server in this case, is not running RSTP, no sync response is received. The result is that RSTP must fall back to legacy STP rules and wait for the forward delay to expire before the link can transition to forwarding state. From the debug output and the timestamps below, we see that the link is activated at 16:52:44 and begins in the blocking state, transitions to learning, and then finally to forwarding at 16:53:14, which is 30 seconds after the link up event.

N 5 K 1 #d e b u gs p a n n i n g t r e ee v e n ti n t e r f a c ee 1 / 1 N 5 K 1 #c o n ft E n t e rc o n f i g u r a t i o nc o m m a n d s ,o n ep e rl i n e . E n dw i t hC N T L / Z . N 5 K 1 ( c o n f i g ) #i n te 1 / 1 N 5 K 1 ( c o n f i g i f ) #s h u t N 5 K 1 ( c o n f i g i f ) #n os h u t 2 0 1 3M a r 21 6 : 5 2 : 3 9N 5 K 1% E T H P O R T 5 I F _ A D M I N _ U P :I n t e r f a c eE t h e r n e t 1 / 1i s a d m i nu p. N 5 K 1 ( c o n f i g i f ) #2 0 1 3M a r 21 6 : 5 2 : 4 4N 5 K 1% E T H P O R T 5 S P E E D :I n t e r f a c eE t h e r n e t 1 / 1 ,o p e r a t i o n a ls p e e dc h a n g e dt o1G b p s 2 0 1 3M a r 21 6 : 5 2 : 4 4N 5 K 1% E T H P O R T 5 I F _ D U P L E X :I n t e r f a c eE t h e r n e t 1 / 1 ,o p e r a t i o n a ld u p l e xm o d ec h a n g e dt oF u l l 2 0 1 3M a r 21 6 : 5 2 : 4 4N 5 K 1% E T H P O R T 5 I F _ R X _ F L O W _ C O N T R O L :I n t e r f a c eE t h e r n e t 1 / 1 ,o p e r a t i o n a lR e c e i v eF l o wC o n t r o ls t a t ec h a n g e dt oo f f 2 0 1 3M a r 21 6 : 5 2 : 4 4N 5 K 1% E T H P O R T 5 I F _ T X _ F L O W _ C O N T R O L :I n t e r f a c eE t h e r n e t 1 / 1 ,o p e r a t i o n a lT r a n s m i tF l o wC o n t r o ls t a t ec h a n g e dt oo f f 2 0 1 3M a r 21 6 : 5 2 : 4 4N 5 K 1% E T H P O R T 5 I F _ U P :I n t e r f a c eE t h e r n e t 1 / 1i su pi nm o d ea c c e s s 2 0 1 3M a r 21 6 : 5 2 : 4 4 . 8 2 4 1 5 0s t p :s t p _ i m _ l 2 _ p r o t o c o l _ s t a t e _ c h a n g e ( 3 4 1 ) :I M L 2P o r tP r o t oU PN o t i f:p o r t _ m o d e0 x 8 0 0 0 0 ,s p e e d1 0 0 0 ,d u p l e x2 ,p r i m a r y 1 ,p o r tE t h 1 / 1 ,( U P )v l a n s1 0 , 2 0 1 3M a r 21 6 : 5 2 : 4 4 . 8 2 4 4 8 4s t p :s t p _ m c s _ s e t _ s l a v e _ m c e c _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 9 2 8 ) :I g n o r e-N o tav P CM a s t e r 2 0 1 3M a r 21 6 : 5 2 : 4 4 . 8 2 4 5 1 4s t p :v b _ v l a n _ s h i m _ s e t _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 2 7 3 8 ) :R e q( t y p e = 9 )t oP I X Mv d c1 ,i n s t0 ,n u mp o r t s1 ,s t a t eB L K [ E t h 1 / 1 v1 0 ] 2 0 1 3M a r 21 6 : 5 2 : 4 4 . 8 2 4 7 0 0s t p :S u c c e s s :p i x m _ s e n d _ s e t _ m u l t _ c b l _ v l a n s _ f o r _ m u l t i p l e _ p o r t s ,n u mp o r t s1V D C1 ,s t a t eB L K ,r r _ t o k e n0 x 1 f 6 5 a fm s g _ s i z e5 4 4 2 0 1 3M a r 21 6 : 5 2 : 5 9 . 7 6 5 6 5 5s t p :s t p _ m c s _ s e t _ s l a v e _ m c e c _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 9 2 8 ) :I g n o r e-N o tav P CM a s t e r 2 0 1 3M a r 21 6 : 5 2 : 5 9 . 7 6 5 7 0 1s t p :v b _ v l a n _ s h i m _ s e t _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 2 7 3 8 ) :R e q( t y p e = 9 )t oP I X Mv d c1 ,i n s t0 ,n u mp o r t s1 ,s t a t eL R N [ E t h 1 / 1 v1 0 ] 2 0 1 3M a r 21 6 : 5 2 : 5 9 . 7 6 5 9 0 1s t p :S u c c e s s :p i x m _ s e n d _ s e t _ m u l t _ c b l _ v l a n s _ f o r _ m u l t i p l e _ p o r t s ,n u mp o r t s1V D C1 ,s t a t eL R N ,r r _ t o k e n0 x 1 f 6 6 8 6m s g _ s i z e5 4 4 2 0 1 3M a r 21 6 : 5 3 : 1 4 . 7 6 6 6 3 2s t p :s t p _ m c s _ s e t _ s l a v e _ m c e c _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 9 2 8 ) :I g n o r e-N o tav P CM a s t e r 2 0 1 3M a r 21 6 : 5 3 : 1 4 . 7 6 6 6 7 6s t p :v b _ v l a n _ s h i m _ s e t _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 2 7 3 8 ) :R e q( t y p e = 9 )t oP I X Mv d c1 ,i n s t0 ,n u mp o r t s1 ,s t a t eF W D [ E t h 1 / 1 v1 0 ] 2 0 1 3M a r 21 6 : 5 3 : 1 4 . 7 7 2 1 7 4s t p :S u c c e s s :p i x m _ s e n d _ s e t _ m u l t _ c b l _ v l a n s _ f o r _ m u l t i p l e _ p o r t s ,n u mp o r t s1V D C1 ,s t a t eF W D ,r r _ t o k e n0 x 1 f 6 7 4 1m s g _ s i z e5 4 4 2 0 1 3M a r 21 6 : 5 3 : 1 4 . 7 7 2 2 9 6s t p :s t p _ s e n d _ p v l a n _ p o r t _ s t a t e _ c h a n g e _ n o t i f [ 4 2 2 4 ] : i d x = 0 : s t a t e = 4 : i f _ i n d e x = E t h e r n e t 1 / 1 : p r i m a r y _ v l a n _ b m p =

When the link is configured as edge, the transition from down to forwarding happens immediately, as shown below.

N 5 K 1 #d e b u gs p a n n i n g t r e ee v e n ti n t e r f a c ee 1 / 1 N 5 K 1 #c o n ft E n t e rc o n f i g u r a t i o nc o m m a n d s ,o n ep e rl i n e . E n dw i t hC N T L / Z . N 5 K 1 ( c o n f i g ) #i n te 1 / 1 N 5 K 1 ( c o n f i g i f ) #s h u t N 5 K 1 ( c o n f i g i f ) #s p a n n i n g t r e ep o r tt y p ee d g e W a r n i n g :E d g ep o r tt y p e( p o r t f a s t )s h o u l do n l yb ee n a b l e do np o r t sc o n n e c t e dt oas i n g l e h o s t .C o n n e c t i n gh u b s ,c o n c e n t r a t o r s ,s w i t c h e s ,b r i d g e s ,e t c . . .t ot h i s i n t e r f a c e w h e ne d g ep o r tt y p e( p o r t f a s t )i se n a b l e d ,c a nc a u s et e m p o r a r y b r i d g i n gl o o p s . U s ew i t hC A U T I O N E d g eP o r tT y p e( P o r t f a s t )h a sb e e nc o n f i g u r e do nE t h e r n e t 1 / 1b u tw i l lo n l y h a v ee f f e c tw h e nt h ei n t e r f a c ei si nan o n t r u n k i n gm o d e . N 5 K 1 ( c o n f i g i f ) #n os h u t 2 0 1 3M a r 21 7 : 0 7 : 4 4N 5 K 1% E T H P O R T 5 I F _ A D M I N _ U P :I n t e r f a c eE t h e r n e t 1 / 1i s a d m i nu p. 2 0 1 3M a r 21 7 : 0 7 : 4 9N 5 K 1% E T H P O R T 5 S P E E D :I n t e r f a c eE t h e r n e t 1 / 1 ,o p e r a t i o n a ls p e e dc h a n g e dt o1G b p s 2 0 1 3M a r 21 7 : 0 7 : 4 9N 5 K 1% E T H P O R T 5 I F _ D U P L E X :I n t e r f a c eE t h e r n e t 1 / 1 ,o p e r a t i o n a ld u p l e xm o d ec h a n g e dt oF u l l 2 0 1 3M a r 21 7 : 0 7 : 4 9N 5 K 1% E T H P O R T 5 I F _ R X _ F L O W _ C O N T R O L :I n t e r f a c eE t h e r n e t 1 / 1 ,o p e r a t i o n a lR e c e i v eF l o wC o n t r o ls t a t ec h a n g e dt oo f f 2 0 1 3M a r 21 7 : 0 7 : 4 9N 5 K 1% E T H P O R T 5 I F _ T X _ F L O W _ C O N T R O L :I n t e r f a c eE t h e r n e t 1 / 1 ,o p e r a t i o n a lT r a n s m i tF l o wC o n t r o ls t a t ec h a n g e dt oo f f 2 0 1 3M a r 21 7 : 0 7 : 4 9 . 5 1 6 5 5 2s t p :s t p _ i m _ l 2 _ p r o t o c o l _ s t a t e _ c h a n g e ( 3 4 1 ) :I M L 2P o r tP r o t oU PN o t i f:p o r t _ m o d e0 x 8 0 0 0 0 ,s p e e d1 0 0 0 ,d u p l e x2 ,p r i m a r y 1 ,p o r tE t h 1 / 1 ,( U P )v l a n s1 0 , 2 0 1 3M a r 21 7 : 0 7 : 4 9 . 5 1 6 8 8 2s t p :s t p _ m c s _ s e t _ s l a v e _ m c e c _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 9 2 8 ) :I g n o r e-N o tav P CM a s t e r 2 0 1 3M a r 21 7 : 0 7 : 4 9 . 5 1 6 9 1 2s t p :v b _ v l a n _ s h i m _ s e t _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 2 7 3 8 ) :R e q( t y p e = 9 )t oP I X Mv d c1 ,i n s t0 ,n u mp o r t s1 ,s t a t eB L K [ E t h 1 / 1 v1 0 ] 2 0 1 3M a r 21 7 : 0 7 : 4 9 . 5 1 7 1 0 5s t p :S u c c e s s :p i x m _ s e n d _ s e t _ m u l t _ c b l _ v l a n s _ f o r _ m u l t i p l e _ p o r t s ,n u mp o r t s1V D C1 ,s t a t eB L K ,r r _ t o k e n0 x 1 f b 7 d 4m s g _ s i z e 5 4 4 2 0 1 3M a r 21 7 : 0 7 : 4 9N 5 K 1% E T H P O R T 5 I F _ U P :I n t e r f a c eE t h e r n e t 1 / 1i su pi nm o d ea c c e s s 2 0 1 3M a r 21 7 : 0 7 : 4 9 . 5 2 5 4 7 1s t p :s t p _ m c s _ s e t _ s l a v e _ m c e c _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 9 2 8 ) :I g n o r e-N o tav P CM a s t e r 2 0 1 3M a r 21 7 : 0 7 : 4 9 . 5 2 5 5 4 0s t p :v b _ v l a n _ s h i m _ s e t _ v l a n s _ m u l t i _ p o r t _ s t a t e ( 2 7 3 8 ) :R e q( t y p e = 9 )t oP I X Mv d c1 ,i n s t0 ,n u mp o r t s1 ,s t a t eF W D [ E t h 1 / 1 v1 0 ] 2 0 1 3M a r 21 7 : 0 7 : 4 9 . 5 2 5 7 1 5s t p :S u c c e s s :p i x m _ s e n d _ s e t _ m u l t _ c b l _ v l a n s _ f o

r _ m u l t i p l e _ p o r t s ,n u mp o r t s1V D C1 ,s t a t eF W D ,r r _ t o k e n0 x 1 f b 7 d bm s g _ s i z e5 4 4

^ back to top

Disclaimer (http://www.ine.com/feedback.htm) | Privacy Policy (http://www.ine.com/resources/) Inc., All Rights Reserved (http://www.ine.com/about-us.htm)

2013 INE

You might also like