当前位置:首页 > JUNIPER_EX3200交换机配置
2.11配置VLAN
初始化配置时候,所有端口属于default VLAN,default vlan 的默认ID是0 user@host# set interfaces name unit 0 family ethernet-switching port-mode access #配置端口的access模式,默认端口就是access模式。 user@host#set vlans vlan-name vlan-id number #配置VLAN分配vlan ID
EX支持2种方式来配置access接口分配到VLAN,采用其中一种就可以实现端口VLAN的划分。
方式一:
user@host#set vlans vlan-name interface interface_name 直接在VLAN中添加多个物理端口 方式二:
或是在物理接口下:
user@host#set interfaces interface-name unit 0 family ethernet-switching vlan members
vlan-name or vlan-id #添加端口到特定VLAN
user@host# show vlans vlan-name detail #查看VLAN信息 Example(例如): root@host> edit
Entering configuration mode [edit]
root@host# set vlans sales vlan-id 100 [edit]
root@host# set vlans sales interface ge-0/0/1 #或者可以如下配置,实现相同的配置效果 [edit]
root@host# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members sales
2.12配置Vlan trunk
配置端口作trunk端口,支持802.1Q的标准封装。
user@host# set interfaces name unit 0 family ethernet-switching port-mode trunk #配置端口的VLAN模式为trunk模式
user@host# set interfaces name unit 0 family ethernet-switching vlan members all|number
#配置trunk端口的允许通过的VLAN,9.1版本目前不支持vlan-range,预期在9.2版本支持。
Example: root@host> edit
Entering configuration mode [edit]
root@host#show interfaces { ge-0/0/3 { unit 0 {
family ethernet-switching { port-mode trunk; vlan {
members [ orange blue ]; } } } } ge-0/0/4 { unit 0 {
family ethernet-switching { port-mode trunk; vlan {
members [ 100 200 ]; }
} } } }
2.13配置 native-vlan-id
EX在trunk端口下支持native-vlan 的配置: root@host> edit
Entering configuration mode [edit]
root@host# set interface ge-0/0/8 unit 0 family Ethernet-switch native-vlan-id purple [edit]
root@host#show interface ge-0/0/8 { unit 0 {
family ethernet-switching { port-mode trunk; vlan {
members [ orange blue purple ]; }
native-vlan-id purple; } }
2.14 静态路由协议
手工添加到路由表 下一跳必须有效
所以的配置在routing-options 级别 Syntax(语法):
[edit]
routing-options { static { defaults { static-options; }
route destination-prefix { next-hop next-hop;
qualified-next-hop address { metric metric;
preference preference; }
static-options; } } }
Example(例如): [edit]
user@host# show routing-options { static {
route 0.0.0.0/0 next-hop 192.168.0.1; } } 2.15 OSPF
单区域 [edit]
user@host# set protocols ospf area 0 interface ge-0/0/0 [edit]
user@host# show protocols ospf
共分享92篇相关文档