Ethernet Switching
Highlighted
Ethernet Switching

Using configuration group to apply configuration to ports across linecards?

‎01-05-2018 10:19 AM

Hey all,

 

I'm looking for a way to get Juniper to recognize wildcards properly across linecards and ports. I looked at the document here:

 

https://www.juniper.net/documentation/en_US/junos/topics/concept/junos-cli-wildcard-characters-confi...

 

But apparently things get hairy if you attempt to use more than 1 set of brackets? So say I have 12 linecards, and I want to apply the same configuration to ports 35 and 36 across fpc 0 through 10 - the following doesn't work:

 

<ge-[0-10]/0/[35-36]>

 

Anybody know the solution to keep this configuration simple? It's applying the configuration to unwanted ports. Maybe I'm just doing it wrong, but the document doesn't really give me the information I need to know where it's wrong.

 

Any insight would be great.

 

Thanks!

1 REPLY 1
Highlighted
Ethernet Switching
Solution
Accepted by topic author jardoin1
‎01-05-2018 10:35 AM

Re: Using configuration group to apply configuration to ports across linecards?

[ Edited ]
‎01-05-2018 10:34 AM

Ugh. After reading around a bit more I came across this:

 

https://forums.juniper.net/t5/Ethernet-Switching/Groups-applying-configuration-to-wrong-interfaces/m...

 

so apparently this is expected. Lame.

 

 

 

Update:

 

Hold the phone. The command I actually wanted is not an apply group, but the wildcard range command:


https://www.juniper.net/documentation/en_US/junos/topics/example/junos-cli-wildcard-range-configurin...

 

So much better than interface-range. To hit the linecards I wanted, it looks like this:

 

wildcard range set interfaces ge-[0-8]/0/[35,36] unit 0 family ethernet-switching vlan members VLAN

 

Where VLAN  is the VLAN (or whatever) I wanted to apply.