Junos OS

 View Only

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



  • 1.  EX4200 - OS15.1R7 : Override VLAN setting in Interface Range returns error

    Posted 12-08-2021 05:37
    On EX4200 OS15, we are using Interface Range to configure ports. However configure Vlan setting for port ge-0/0/1 failed with errors. 

    Here are the sample configurations,
    1.   The Interface Range settings:
    interface-range my_range {
         member ge-0/0/20;
         member ge-0/0/1;
         unit 0 {
            family ethernet-switching {
                vlan { 
                     members 103;
               }
           }
        }
    }

    admin@Juniper_ex4200> show vlans
    Name       Tag          Interfaces
    vlan103  103
                                          ge-0/0/1.0*, ge-0/0/20.0, ge-0/0/23.0*

    All look good so far.

    2. Then tried to move port ge-0/0/1 from vlan 103 to vlan 104, and errors returned.
    admin@Juniper_ex4200# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members 104
    {master:0}[edit]
    admin@Juniper_ex4200# commit
    error: Access interface <ge-0/0/1.0> has more than one vlan member: <vlan104> and <vlan103>
    error: configuration check-out failed

    From website, "Foreground interface configuration takes priority compared to configuration inherited by the interface through the interface-range."
    Then how to do the override?

    Great thanks,
    Jeff



    ------------------------------
    Jeff Lewis
    ------------------------------


  • 2.  RE: EX4200 - OS15.1R7 : Override VLAN setting in Interface Range returns error

     
    Posted 12-09-2021 05:53
    The issue is that vlan is an object that does allow multiple entries so there is no override on this parameter.  You will need to remove the port from the range when it is access and can only have one vlan.

    See this older thread for a discussion on using regex to build ranges if your scenario is one where you need a lot of interfaces and to exclude a few.
    https://community.juniper.net/communities/community-home/digestviewer/viewthread?MID=64465

    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
    http://puluka.com/home
    ------------------------------