22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Kenya(config-if)# switchport trunk allowed vlan add 5<br />

Kenya(config-if)# switchport trunk allowed vlan remove 15<br />

Kenya(config-if)# sho run interface ethernet 2/11<br />

!Comm<strong>and</strong>: show running-config interface Ethernet2/11<br />

!Time: Thu Oct 29 18:27:10 2009<br />

version 4.2(2a)<br />

interface Ethernet2/11<br />

switchport<br />

switchport mode trunk<br />

switchport trunk allowed vlan 5,10-14,16-20<br />

spanning-tree port type network<br />

no shutdown<br />

Verifying VLAN Configuration<br />

You can view the configured VLANs <strong>and</strong> the interfaces assigned to them with the show vlan<br />

comm<strong>and</strong>, as shown in Example 2-16.<br />

Example 2-16. View Configured LANs <strong>and</strong> Interfaces<br />

Click here to view code image<br />

Kenya# show vlan<br />

VLAN Name Status Ports<br />

---- -------------------------------- --------- ----------<br />

---------------------<br />

1 default active Eth2/12,<br />

Eth2/40<br />

2 VLAN0002 active Eth2/12<br />

3 VLAN0003 active Eth2/12<br />

4 VLAN0004 active Eth2/12<br />

5 VLAN0005 active Eth2/11,<br />

Eth2/12<br />

6 VLAN0006 active Eth2/12<br />

7 VLAN0007 active Eth2/12<br />

8 VLAN0008 active Eth2/12<br />

9 VLAN0009 active Eth2/12<br />

10 VLAN0010 active Eth2/11,<br />

Eth2/12, Eth2/20<br />

11 VLAN0011 active Eth2/11,<br />

Eth2/12<br />

12 VLAN0012 active Eth2/11,<br />

Eth2/12<br />

13 VLAN0013 active Eth2/11,<br />

Eth2/12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!