admin@EX9208# set interfaces ge-2/0/3 unit 0 family ethernet-switching vlan
members v2004
admin@EX9208# commit
Cisco!commands!
1. Define VLANs 2001 through 2004:
Nexus7010# configure terminal
Nexus7010(config)# vlan 2001-2004
Nexus7010(config-vlan)# exit
2. Define a VLAN trunk port that allows tagged traffic from VLANs 2001 and 2002 and
native untagged traffic from VLAN 2003:
Nexus7010(config)# interface Ethernet3/9
Nexus7010(config-if)# description VLAN trunk to EX9208 xe-5/0/5
Nexus7010(config-if)# switchport
Nexus7010(config-if)# switchport mode trunk
Nexus7010(config-if)# switchport trunk native vlan 2003
Nexus7010(config-if)# switchport trunk allowed vlan 2001-2003
Nexus7010(config-if)# no shutdown
Nexus7010(config-if)# exit
Note that Cisco Nexus 7000 switches require the explicit “no shutdown” command to
enable interfaces. This command is not required in Cisco Catalyst switches.
3. Define access-mode interfaces allowing untagged traffic from VLANs 2001 through
2003:
Nexus7010(config)# interface Ethernet3/13
Nexus7010(config-if)# description to stc vlan 2001
Nexus7010(config-if)# switchport
Nexus7010(config-if)# switchport access vlan 2001
Nexus7010(config-if)# no shutdown
Nexus7010(config)# interface Ethernet3/14
Nexus7010(config-if)# description to stc vlan 2002
Nexus7010(config-if)# switchport
Nexus7010(config-if)# switchport access vlan 2002
Nexus7010(config-if)# no shutdown
Nexus7010(config)# interface Ethernet3/15
Nexus7010(config-if)# description to stc vlan 2003
Nexus7010(config-if)# switchport
Nexus7010(config-if)# switchport access vlan 2003
Nexus7010(config-if)# no shutdown
Nexus7010(config)# interface Ethernet3/16
Nexus7010(config-if)# description to stc vlan 2004
Nexus7010(config-if)# switchport
Nexus7010(config-if)# switchport access vlan 2004
Nexus7010(config-if)# no shutdown
Nexus7010(config-if)# end
Cisco Catalyst switches also will require the “switchport mode access”
command on each access-mode interface.
Comentarios a estos manuales