Quantcast
Channel: All Ethernet Switching posts
Viewing all articles
Browse latest Browse all 10307

Re: How to add or remove multiple VLANs from few interfaces without using full VLAN name?

$
0
0

You could just name the vlan with their id, only constraint is that there has to be at least one character. Then use the description to show what the vlan is for. Then you can refer to a number.

 

jh@fw# show vlans
v100 {
    description "test vlan";
    vlan-id 100;
}

jh@fw# show interfaces ge-0/0/4.0
family ethernet-switching {
    vlan {
        members v100;
    }
}

As 

 

jh@fw# edit interfaces

[edit interfaces]
jh@fw# show ge-0/0/4.0
family ethernet-switching {
    vlan {
        members v100;
    }
}

[edit interfaces]
jh@fw# replace pattern "v100" with "v200"

[edit interfaces]
jh@fw# show ge-0/0/4.0
family ethernet-switching {
    vlan {
        members v200;
    }
}

[edit interfaces]
jh@fw#

Viewing all articles
Browse latest Browse all 10307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>