対象機器:EX4300,QFX5100
memo:EX4300及びQFX5100はEnhanced Layer 2 Softwareとなり、EX4200等の従来のJUNOSとはVlanの設定が一部異なります。
URL:https://www.juniper.net/documentation/en_US/junos14.2/topics/task/configuration/getting-started-els.html
1.accessの設定
■設定例
interfaces {
ge-0/0/0 {
unit 0 {
family ethernet-switching {
port-mode access;
vlan {
members vlan100;
}
}
}
}
}
vlans {
vlan100 {
vlan-id 100;
}
}
2.untagとtag vlanを混在させる場合
■設定例
interfaces {
ge-0/0/0 {
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members [ vlan100 vlan101 vlan102 ];
}
native-vlan-id vlan1;
}
}
}
}
vlans {
vlan1 {
vlan-id 1;
}
vlan100 {
vlan-id 100;
}
vlan101 {
vlan-id 101;
}
vlan102 {
vlan-id 102;
}
}
■確認例
JUNOS# run show vlans detail
VLAN: default, 802.1Q Tag: Untagged, Admin State: Enabled
VLAN: vlan1, 802.1Q Tag: 1, Admin State: Enabled
Number of interfaces: 1 (Active = 0)
Untagged interfaces: ge-0/0/0.0
VLAN: vlan100, 802.1Q Tag: 100, Admin State: Enabled
Number of interfaces: 1 (Active = 0)
Tagged interfaces: ge-0/0/0.0
VLAN: vlan101, 802.1Q Tag: 101, Admin State: Enabled
Number of interfaces: 1 (Active = 0)
Tagged interfaces: ge-0/0/0.0
VLAN: vlan102, 802.1Q Tag: 102, Admin State: Enabled
Number of interfaces: 1 (Active = 0)
Tagged interfaces: ge-0/0/0.0