juniper交換機將多個接口加入同時到vlan中-創(chuàng)新互聯(lián)

[EX/QFX] Wildcard range commands for EX switches

創(chuàng)新互聯(lián)成立與2013年,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項目成都網(wǎng)站設(shè)計、網(wǎng)站制作網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元尋甸做網(wǎng)站,已為上家服務(wù),為尋甸各地企業(yè)和個人服務(wù),聯(lián)系電話:18980820575

  [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:

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

分享標題:juniper交換機將多個接口加入同時到vlan中-創(chuàng)新互聯(lián)
網(wǎng)站網(wǎng)址:http://muchs.cn/article48/cdcchp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)網(wǎng)站建設(shè)、App開發(fā)、App設(shè)計響應(yīng)式網(wǎng)站、手機網(wǎng)站建設(shè)品牌網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)