Juniper Switch VLAN, Management VLAN, TRUNK Configuration

  • by

Juniper Switch VLAN, Management VLAN, TRUNK Configuration

1. Create a vlan with the name “test1” and assign a vlan id of 10
Create a vlan with the name “test2” and assign a vlan id of 20
# set vlans test1 vlan-id 10

# set vlans test2 vlan-id 20

2. Assign two interfaces (Gigabit Ports) to the “test1” vlan
#set interface ge-0/0/0 unit 0 family ethernet-switching port-mode access
#set interface ge-0/0/0 unit 0 family ethernet-switching vlan members test1

->To set a trunk port to pass only test1 and test2 vlan traffics.
#set interface ge-0/0/5 unit 0 family ethernet-switching port mode trunk vlan member test1
#set interface ge-0/0/5 unit 0 family ethernet-switching port mode trunk vlan member test2

->To set a trunk port to pass all vlan traffics.
#set interface ge-0/0/6 unit 0 family ethernet-switching port mode trunk vlan member all

 

Leave a Reply