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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Congo(config-vlan)# name VLAN100-PRIMARY<br />

Congo(config-vlan)# private-vlan primary<br />

Congo(config-vlan)# private-vlan association add 101-103<br />

Congo(config-vlan)# exit<br />

Example 2-19 shows how to define a Layer 3 switched virtual interface (SVI) <strong>and</strong> associate<br />

secondary Layer 2 VLANs.<br />

Example 2-19. Creating an SVI for the Primary VLAN<br />

Click here to view code image<br />

Congo(config)# interface vlan 100<br />

Congo(config-if)# ip address 192.168.100.1/24<br />

Congo(config-if)# private-vlan mapping add 101-103<br />

Congo(config-if)# exit<br />

Congo(config)#<br />

Example 2-20 shows how to define the PVLAN configuration on the access switch <strong>and</strong><br />

assign the h<strong>os</strong>t ports into the appropriate secondary VLANs.<br />

Example 2-20. Private VLAN Access Switch Configuration<br />

Click here to view code image<br />

Kenya(config)# feature private-vlan<br />

Kenya(config)# vlan 101<br />

Kenya(config-vlan)# name VLAN100-ISOLATED<br />

Kenya(config-vlan)# private-vlan isolated<br />

Kenya(config-vlan)# vlan 102<br />

Kenya(config-vlan)# name VLAN100-COMMUNITY1<br />

Kenya(config-vlan)# private-vlan community<br />

Kenya(config-vlan)# vlan 103<br />

Kenya(config-vlan)# name VLAN100-COMMUNITY2<br />

Kenya(config-vlan)# private-vlan community<br />

Kenya(config-vlan)# vlan 100<br />

Kenya(config-vlan)# name VLAN100-PRIMARY<br />

Kenya(config-vlan)# private-vlan primary<br />

Kenya(config-vlan)# private-vlan association add 101-103<br />

Kenya(config-vlan)#<br />

Kenya(config)# interface ethernet2/21<br />

Kenya(config-if)# description HOST1<br />

Kenya(config-if)# switchport

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

Saved successfully!

Ooh no, something went wrong!