My Blog List

  • Majeshir Anupras Alankar - मराठी भाषा सौंदर्याने नटलेली आहे. तिला अनेक अलंकार प्राप्त आहेत. त्यापैकी अनुप्रास हा एक शब्दालंकार. एखाद्या वाक्यात किंवा कवितेच्या चरणामध्ये जेव्हा एका...
    3 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