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

Re: interface-range config inheritance change

$
0
0

No problem - this is from a 4200-VC I have handy, but the principle is the same.

 

I've created an interface-range with an access VLAN specified (remember this is slightly different to 4300 config):

 

{master:0}[edit]
root@clx-lab-42vc# show interfaces 
interface-range DESKTOP-PORTS {
    unit 0 {
        family ethernet-switching {
            port-mode access;
vlan { members v100-DESKTOP; } } } }

Now I'll add all RJ45 ports on a two member VC to my DESKTOP-PORTS interface-range:

 

root@clx-lab-42vc# wildcard range set interfaces interface-range DESKTOP-PORTS member ge-[0-1]/0/[0-47]
/

I end up with:

 

{master:0}[edit]
root@clx-lab-42vc# show interfaces    
interface-range DESKTOP-PORTS {
    member ge-0/0/0;
    member ge-0/0/1;
    member ge-0/0/2;
    member ge-0/0/3;
...
    member ge-1/0/46;
    member ge-1/0/47;
    unit 0 {
        family ethernet-switching {
            port-mode access;
            vlan {
                members v100-DESKTOP;
            }
        }
    }
}

 

Now if you need to move any ports from the DESKTOP-PORTS interface-range to (say) a SERVER-PORTS interface-range you can just do:

 

{master:0}[edit]
root@clx-lab-42vc# delete interfaces interface-range DESKTOP-PORTS member ge-0/0/37

{master:0}[edit]
root@clx-lab-42vc# set interfaces interface-range SERVER-PORTS member ge-0/0/37

{master:0}[edit]
root@clx-lab-42vc# 

It's easy to fall into the trap of using the member-range option in your interface-range for lots of ports, but it becomes really convoluted to remove individual ports out of the middle of a defined range - you have to delete the original range (eg: member-range ge-0/0/0 to ge-0/0/47) and add in two ranges that exclude the port you're moving (eg: member-range ge-0/0/0 to ge-0/0/36 and then member-range ge-0/0/38 to ge-0/0/47).

 

Hope this helps


Viewing all articles
Browse latest Browse all 10307

Trending Articles



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