0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Juniper(EX及びQFX series)でのvlan設定

Last updated at Posted at 2015-03-19

対象機器: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

0
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?