spanning-tree edgeport 
 
   
  Enables the edge port on an interface to allow the interface to quickly transition to the forwarding state. 
  
 Syntax
 
	  
	  
	  
		spanning-tree edgeport 
		 
		  [ 
		  bpdu-guard 
		  ] 
	 
 
	  
		no spanning-tree edgeport 
		[ 
		  bpdu-guard 
		  ] 
	 
 
	 Command Default
 
		 Edge port is disabled. 
		
 
	 
 
	 Parameters
 
		 
		   
		   
			 -  
				 
				  bpdu-guard 
				 
			 
  
			 - Guards the port against the reception of BPDUs. 
			 
  
		   
		
 
	 
 
	 Modes
 
		 Interface subtype configuration mode 
		
 
	 
 
	 Usage Guidelines
 
		 This command is only for RSTP and MSTP. Use the 
		  spanning-tree portfast command for STP 
		
 
		 
		Note the following details about edge ports and their behavior: 
		
 
		  -  A port can become an edge port if no BPDU is received. 
		  
  
		  -  A port must become an edge port before it receives a BPDU. 
		  
  
		  -  When an edge port receives a BPDU, it becomes a normal spanning-tree port and is no longer an edge port. 
		  
  
		  -  Because ports directly connected to end stations cannot create bridging loops in the network, edge ports directly transition to the forwarding state, and skip the listening and learning states 
		  
  
		
 
		 
 
	 
 Examples
 
	  
	  
		 To enable a port to quickly transition to the forwarding state: 
		
 
		
device# configure terminal
device(config)# interface ethernet 1/5 
device(conf-if-eth-1/5)# spanning-tree edgeport 
 
		 To guard the port against reception of BPDUs: 
		
 
		
device# configure terminal
device(config)# interface ethernet 1/5 
device(conf-if-eth-1/5)# spanning-tree edgeport 
device(conf-if-eth-1/5)# spanning-tree edgeport bpdu-guard