cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

hardware:junos:vlan.html



Junos VLAN Configuration Examples

Checking Junos VLAN Configuration

Operation Command
Check VLAN > show vlan
> show vlan brief ← economy
lab@srx1> show vlans
Name     Tag   Interfaces
VLAN10   10    fe-0/0/2.0, fe-0/0/3.0
blue     20    fe-0/0/4.0, fe-0/0/5.0*
default  1     None
purple   30    fe-0/0/6.0*
lab@srx1> show vlans brief
                                        Ports
Name       Tag     Primary Address      Active/Total
VLAN10     10                           0/2
blue       20                           1/2
default    1
purple     30                           1/1


Access Port

# set vlans VLAN-NAME vlan-id VLAN-ID
# set interfaces INTERFACE unit 0 family ethernet-switching vlan members VLAN-NAME
# set vlans vlan10 vlan-id 10
# set interfaces ge-0/0/1 unit 0 family ethernet-switching
# set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode access
# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members vlan10
# set interfaces irb unit 10 family inet address 192.168.10.1/24


Tagging Port

# set vlans V10 vlan-id 10
# set vlans V20 vlan-id 20

# set interfaces ge-0/0/1 unit 0 family ethernet-switching
# set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode trunk
# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members V10
# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members V20
# set interfaces ge-0/0/1 unit 0 family ethernet-switching native-vlan-id 1


Routed VLAN Interface(RVI)




hardware/junos/vlan.html.txt · Last modified: 2019/06/06 by admin

Page Tools