Juniper!commands!
1. Define VLANs v2001 through v2004 with VLAN IDs of 2001 through 2004
respectively:
admin@EX9208> config
admin@EX9208# set vlans v2001 vlan-id 2001
admin@EX9208# set vlans v2002 vlan-id 2002
admin@EX9208# set vlans v2003 vlan-id 2003
admin@EX9208# set vlans v2004 vlan-id 2004
admin@EX9208# set vlans v2005 vlan-id 2005
2. Define a VLAN trunk port that allows tagged traffic from VLANs v2001 and v2002
and untagged traffic from VLAN v2003:
admin@EX9208# set interfaces xe-5/0/5 description "VLAN trunk to Nexus 7010
e3/9"
admin@EX9208# set interfaces xe-5/0/5 unit 0 family ethernet-switching vlan
members v2001
admin@EX9208# set interfaces xe-5/0/5 unit 0 family ethernet-switching
interface-mode trunk
admin@EX9208# set interfaces xe-5/0/5 unit 0 family ethernet-switching vlan
members v2001
admin@EX9208# set interfaces xe-5/0/5 unit 0 family ethernet-switching vlan
members v2002
admin@EX9208# set interfaces xe-5/0/5 unit 0 family ethernet-switching vlan
members v2003
3. On the VLAN trunk port, allow native untagged traffic from VLAN v2003. Note that
the native-vlan-id command takes the VLAN ID and not the VLAN name as an
argument:
admin@EX9208# set interfaces xe-5/0/5 native-vlan-id 2003
4. Define access-mode interfaces allowing untagged traffic from VLANs v2001 through
v2004:
admin@EX9208# set interfaces ge-2/0/0 description "to stc v2001"
admin@EX9208# set interfaces ge-2/0/0 unit 0 family ethernet-switching
interface-mode access
admin@EX9208# set interfaces ge-2/0/0 unit 0 family ethernet-switching vlan
members v2001
admin@EX9208# set interfaces ge-2/0/1 description "to stc v2002"
admin@EX9208# set interfaces ge-2/0/1 unit 0 family ethernet-switching
interface-mode access
admin@EX9208# set interfaces ge-2/0/1 unit 0 family ethernet-switching vlan
members v2002
admin@EX9208# set interfaces ge-2/0/2 description "to stc v2003"
admin@EX9208# set interfaces ge-2/0/2 unit 0 family ethernet-switching
interface-mode access
admin@EX9208# set interfaces ge-2/0/2 unit 0 family ethernet-switching vlan
members v2003
admin@EX9208# set interfaces ge-2/0/3 description "to stc v2004"
admin@EX9208# set interfaces ge-2/0/3 unit 0 family ethernet-switching
interface-mode access
Comentarios a estos manuales