Routing

Expand all | Collapse all

error: Value 0 is not within range (1..4094) on QFX device

Jump to Best Answer
  • 1.  error: Value 0 is not within range (1..4094) on QFX device

    Posted 06-22-2020 06:29

    Hi,

     

    Tried to conifgure an inet interface with vlan-tagging enabled. Since it is necessary to associate the unit with a vlan-id if vlan-tagging is enabled, tried to bind it to vlan 0. However, got the messgage- error: Value 0 is not within range (1..4094). I found that vlan 0 is a reserved vlan, but if the same steps are peformed on an MX box, the commit goes through successfully. Any idea what could be the reason behind different behaviour on different devices? Will the MX device with vlan-id 0 work?

     

    QFX:

    ====

    elit3-sys# show interfaces
    xe-0/0/18:2 {
    vlan-tagging;
    unit 0 {
    family inet {
    address 40.0.0.1/24;
    }
    }
    }

    {master:0}[edit interfaces xe-0/0/18:2]
    elit3-sys# set unit 0 vlan-id 0
    error: Value 0 is not within range (1..4094)

     

    MX:

    ===

    nickelbase# show interfaces
    xe-4/1/16 {
    vlan-tagging;
    unit 0 {
    vlan-id 0;
    }
    }



  • 2.  RE: error: Value 0 is not within range (1..4094) on QFX device

    Posted 06-22-2020 06:37

    Hi vinaypillutla,

     

    The error is because you have configured vlan with vlan-id 0.

     

    For aggregated Ethernet, 4-port, 8-port, and 12-port Fast Ethernet PICs, and for management and internal Ethernet interfaces, 1 through 1023. In Junos OS Evolved vlan-id 0 is not supported. For 48-port Fast Ethernet and Gigabit Ethernet PICs, 1 through 4094.

    VLAN ID 0 is reserved for tagging the priority of frames used in Junos OS. In Junos OS Evolved vlan-id 0 is not supported.

     

    Detailed links:

    https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/vlan-id-edit-interfaces.html

    https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/vlan-id-range-edit-interfaces.html

     

    Also, please refer to this old link for more details around this:

    https://forums.juniper.net/t5/Ethernet-Switching/vlan-tagging-unit-0-vlan-id-0-losing-ping-after-sub-interface/td-p/329169

     

    Hope this helps 🙂

     

    Please mark "Accepted Solution" if this helps you.

    Kudos are always appreciated!



  • 3.  RE: error: Value 0 is not within range (1..4094) on QFX device
    Best Answer

     
    Posted 06-22-2020 08:33

    Hi vinaypillutla,

     

    Juniper reserves vlan-id 0 and 4095 for internal use. These vlans are not available for use by customers. Other vlan 1 to 4094 can be used by customers. A physical interface can have 4094 sub-interfaces for 4094 (1-4094) vlans.

     

    https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/vlan-id-range-edit-interfaces.html

     

    however it may work some times on legacy cards on MX routers.

     

    If this solves your problem, please mark this post as "Accepted Solution."