网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

juniper交换机将多个接口加入同时到vlan中

[EX/QFX] Wildcard range commands for EX switches

成都创新互联公司专业为企业提供瑞安网站建设、瑞安做网站、瑞安网站设计、瑞安网站制作等企业网站建设、网页设计与制作、瑞安企业网站模板建站服务,10多年瑞安做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

   [KB23789] Show KB Properties

SUMMARY:

This article provides information about the wildcard range commands for EX switches.

PROBLEM OR GOAL:

The wildcard range option enables you to configure multiple interface configuration statements by using a single set command; instead of configuring each of them individually for interfaces. The range option with the wildcard command enables you to specify ranges in activate, deactivate, delete, protect, set, show, and unprotect commands.

CAUSE:

SOLUTION:

VLAN output before applying configuration:

{master:0}[edit]

root@dnd-26-plz# run show vlans

Name Tag Interfaces

default        ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0, ge-0/0/8.0,

                    ge-0/0/9.0, ge-0/0/11.0, ge-0/0/12.0, ge-0/0/13.0,

                    ge-0/0/14.0, ge-0/0/15.0, ge-0/0/16.0, ge-0/0/17.0,

                    ge-0/0/18.0, ge-0/0/19.0, ge-0/0/20.0, ge-0/0/21.0,

                    ge-0/0/22.0, ge-0/0/23.0, ge-0/0/24.0, ge-0/0/25.0,

                    ge-0/0/26.0, ge-0/0/27.0, ge-0/0/28.0, ge-0/0/29.0,

                    ge-0/0/30.0, ge-0/0/31.0, ge-0/0/32.0, ge-0/0/33.0,

                    ge-0/0/34.0, ge-0/0/35.0, ge-0/0/36.0, ge-0/0/37.0,

                    ge-0/0/38.0, ge-0/0/39.0, ge-0/0/40.0, ge-0/0/41.0,

                    ge-0/0/42.0, ge-0/0/43.0, ge-0/0/44.0, ge-0/0/45.0,

                    ge-0/0/46.0, ge-0/0/47.0

tes110 110 ge-0/0/1.0

test100 100 ge-0/0/0.0

test127 127 ge-0/0/2.0

test254 254 ge-0/0/3.0, ge-0/0/4.0, ge-0/0/10.0

v500 500 None

Command issued to add a group of interfaces to a VLAN:

root@dnd-26-plz# wildcard range set interfaces ge-0/0/[11-13,16,23,45] unit 0 family ethernet-switching vlan members v500

VLAN output after applying the configuration:

{master:0}[edit]

root@dnd-26-plz# run show vlans

Name Tag Interfaces

default         ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0, ge-0/0/8.0, ge-0/0/9.0, ge-0/0/14.0, ge-0/0/15.0, ge-0/0/17.0, ge-0/0/18.0, ge-0/0/19.0,

                     ge-0/0/20.0, ge-0/0/21.0, ge-0/0/22.0, ge-0/0/24.0, ge-0/0/25.0, ge-0/0/26.0, ge-0/0/27.0, ge-0/0/28.0, ge-0/0/29.0, ge-0/0/30.0,

                     ge-0/0/31.0, ge-0/0/32.0, ge-0/0/33.0, ge-0/0/34.0, ge-0/0/35.0, ge-0/0/36.0, ge-0/0/37.0, ge-0/0/38.0, ge-0/0/39.0, ge-0/0/40.0,

                     ge-0/0/41.0, ge-0/0/42.0, ge-0/0/43.0, ge-0/0/44.0, ge-0/0/46.0, ge-0/0/47.0

tes110 110  ge-0/0/1.0

test100 100 ge-0/0/0.0

test127 127 ge-0/0/2.0

test254 254 ge-0/0/3.0, ge-0/0/4.0, ge-0/0/10.0

v500      500 ge-0/0/11.0, ge-0/0/12.0, ge-0/0/13.0, ge-0/0/16.0, ge-0/0/23.0, ge-0/0/45.0

//下面的配置效果和上面的一样

The end result is that the same configuration is applied to all of the above interfaces:

root@dnd-26-plz# set interfaces ge-0/0/11 unit 0 family ethernet-switching vlan members v500

root@dnd-26-plz# set interfaces ge-0/0/12 unit 0 family ethernet-switching vlan members v500

root@dnd-26-plz# set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members v500

root@dnd-26-plz# set interfaces ge-0/0/16 unit 0 family ethernet-switching vlan members v500

root@dnd-26-plz# set interfaces ge-0/0/23 unit 0 family ethernet-switching vlan members v500

root@dnd-26-plz# set interfaces ge-0/0/45 unit 0 family ethernet-switching vlan members v500

The same can be used for the following purposes - active, deactivate, delete, protect, set, show, and unprotect configuration commands.

This new option is documented in the Release Notes (including the link). For more information, refer to the following configuration example: 

http://www.juniper.net/techpubs/en_US/junos/topics/example/junos-cli-wildcard-range-configuring.html

PURPOSE:

Configuration

Implementation

RELATED LINKS: 


标题名称:juniper交换机将多个接口加入同时到vlan中
标题链接:http://bjjierui.cn/article/ipdpdi.html

其他资讯