#set vlan vlan名稱 vlan-id id l3-interface l3名稱.邏輯號碼 set vlan vlan10 vlan-id 10 l3-interface vlan.10 set vlan vlan20 vlan-id 20 l3-interface vlan.20
#set interface vlan unit 號碼 family inet address 管理IP/mask set interfaces vlan unit 10 family inet address 192.168.1.1/24 set interfaces vlan unit 20 family inet address 192.168.1.2/24
#set interfaces interface-range range名稱 member-range 起始介面卡 to 尾段介面卡 set interfaces interface-range range1 member-range ge-0/0/1 to ge-0/0/11 set interfaces interface-range range2 member-range ge-0/0/12 to ge-0/0/23
#set interfaces interface-range range名稱 unit 號碼 family ethernet-switching port-mode 模式 vlan member vlan名稱 set interfaces interface-range range1 unit 0 family ethernet-switching port-mode access vlan member vlan10 set interfaces interface-range range2 unit 0 family ethernet-switching port-mode access vlan member vlan20
確認完,沒錯誤就提交吧
參考資料:
http://kb.juniper.net/InfoCenter/index?page=content&id=KB16354