My Blog List

  • अधिकमास - अधिकमासाविषयी संपुर्ण माहिती... दिनांक १६/०५/२०१८ रोज बुधवार पासुन अधिक ज्येष्ठ मास आरंभ... आजच्या तरुणाईला अधिक महिन्यासंबंधीची, त्यामागच्या तर्कशुद्ध मा...
    6 years ago

Friday, October 29, 2010

Understanding Nexus -- Part 9 -- L2 Interface Configs

After the interface Parameters, it’s time to see the L2 configuration. In this post we will discuss about the L2 configuration on an interface… like Access ports, Host ports and Trunk ports.


Layer 2 Access Port

If you want to configure the access port… then it is just like your normal access port on IOS.


 
switch# configure terminal 
switch(config)# interface ethernet 3/1
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan 5



Host Ports

The Host Port is same as a host port in IOS. For those who don’t understand the host port, it is a port which is connected to a PC or a Server. STP on this interface is disabled. Just like how we configure the port-fast on interface. 

 
switch# configure terminal 
switch(config)# interface ethernet 3/1
switch(config-if)# switchport host

Sets the interface to be an access host port, which immediately moves to the spanning tree forwarding state and disables port channeling on this interface.
Apply this command only to end stations.


Trunk Ports
 
The Trunk Port also is same just as in IOS.



switch# configure terminal 
switch(config)# interface ethernet 3/1
switch(config-if)# switchport mode trunk
switch(config-if)# switchport trunk native vlan 5
switch(config-if)# switchport trunk allowed vlan 15-20
switch(config-if)# exit
switch(config)# vlan dot1q tag native

If you enable 802.1Q tagging on one device and disable it on another device, all traffic is dropped on the device with this feature disabled. You must configure this feature identically on each device.

No comments:

Post a Comment