ge-0/0/11 {
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members 20;
}
}
}
}
}
vlans {
employee-vlan {
vlan-id 20;
}
}
Configuring a VLAN and Interfaces on Switch 2
To configure the VLAN and interfaces on Switch 2:
CLI Quick
Configuration
To quickly configure the VLAN and interfaces on Switch 2, copy the following commands
and paste them into the switch terminal window:
[edit]
set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/11 unit 0 family ethernet-switching port-mode trunk
set vlans employee-vlan vlan-id 20
Step-by-Step
Procedure
To configure the VLAN and interfaces on Switch 2:
Configure an interface on Switch 2 as a trunk interface:
1.
[edit interfaces]
user@switch2#
set ge-0/0/11 unit 0 ethernet-switching port-mode trunk
2.
Associate the VLAN with interfaces
ge-0/0/1
and
ge-0/0/11
:
[edit interfaces]
user@switch2#
set ge-0/0/1 unit 0 family ethernet-switching vlan members 20
user@switch2#
set ge-0/0/11 unit 0 family ethernet-switching vlan members 20
Results
Display the results of the configuration:
[edit]
user@switch2# show
interfaces {
ge-0/0/1 {
unit 0 {
family ethernet-switching {
vlan {
members 20;
}
}
}
}
ge-0/0/11 {
Copyright © 2010, Juniper Networks, Inc.
2878
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...