Juniper 新增 VLAN

怕忘記紀錄一下。

#cli

set vlans [Name] vlan-id [N]

set interfaces ge-0/0/[N] unit 0 family ethernet-switching port-mode access vlan members vlan[N]

set interfaces ge-0/0/0 unit 0 family ethernet-switching port-mode trunk vlan members vlan[N]

set vlans vlan[N] interface ge-0/0/0.0

set vlans vlan[N] interface ge-0/0/[N].0

commit