Switching

 View Only
last person joined: 22 hours ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Using configuration group to apply configuration to ports across linecards?

    Posted 01-05-2018 10:19

    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-configuration-groups-usage.html

     

    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!



  • 2.  RE: Using configuration group to apply configuration to ports across linecards?
    Best Answer

    Posted 01-05-2018 10:35

    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-p/282271#M13118

     

    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-configuring.html

     

    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.