Setting Up VLAN for ToR Switch (Junos)

1. Set up all VLANs and assign VLAN to access port

set vlan VLAN01 vlaid-id 1000
set vlan VLAN01 interface ge-0/0/0

2. Set the Trunk Port

set interfaces ge-0/1/3 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/1/3 unit 0 family ethernet-switching vlan member [ VLAN01 VLAN02 VLAN03 ]

3. Add a description to each ports

set interface ge-0/0/0 description "Server Name A"
set interface ge-0/0/1 description "Server Name B"

4. Set the port speed and duplex mode

set interfaces ge-0/0/0 ether-options speed 100m
set interfaces ge-0/0/0 ether-options link-mode full-duplex

 

Tags