Routing

Expand all | Collapse all

Not able to put interface in logical-system

Jump to Best Answer
  • 1.  Not able to put interface in logical-system

    Posted 06-26-2019 02:05

    Hi Team,

    I am unable to put interface in logical-system EDGE-2, i have working logical-system EDGE-1


    xpaul@H1-EDGE-re0> show configuration logical-systems EDGE-1 |display set
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0

    xpaul@H1-EDGE-re0> show configuration interfaces xe-1/0/0 |display set
    set interfaces xe-1/0/0 vlan-tagging
    set interfaces xe-1/0/0 unit 0 vlan-id 2500
    set interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 virtual-address 1.1.1.1
    set interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 priority 110
    set interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 preempt
    set interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 accept-data

    xpaul@H1-EDGE-re0> show vrrp logical-system EDGE-1

    Not seeing VRRP output? why?

    xpaul@H1-EDGE-re0# set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0

    [edit]
    xpaul@H1-EDGE-re0# show interfaces xe-1/1/1
    ##
    ## inactive: interfaces xe-1/1/1
    ##
    vlan-tagging;
    unit 0 {
    vlan-id 2500;
    family inet {
    address 1.1.1.3/24 {
    vrrp-group 4 {
    virtual-address 1.1.1.1;
    priority 150;
    preempt;
    accept-data;
    }
    }
    }
    }

    [edit]
    xpaul@H1-EDGE-re0# activate interfaces xe-1/1/1

    [edit]
    xpaul@H1-EDGE-re0# commit
    [edit interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24]
    'vrrp-group 4'
    Duplicate virtual-ip : 1.1.1.1 detected on interface: xe-1/1/1 unit: 0 vrrp-group: 4 for address: 1.1.1.3 on logical-system default routing-instance default
    error: configuration check-out failed

    Why does this detect duplicate when i have trying these two in different logical-systems?



  • 2.  RE: Not able to put interface in logical-system

     
    Posted 06-26-2019 02:18

    What happens when you have deleted the interface configurations and do a commit. And after that you create a logical-system EDGE-2 with the interface?

     

    tks,

    Abhishek



  • 3.  RE: Not able to put interface in logical-system

    Posted 06-26-2019 02:43

    Hi abhisg,

     

    Deleting the interface puts it in the logical system but then interface is not getting configured. Getting same duplicate interface error.

     

    [edit]
    xpaul@H1-EDGE-re0# show interfaces xe-1/1/1

    [edit]
    xpaul@H1-EDGE-re0# set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0

    [edit]
    xpaul@H1-EDGE-re0# commit
    commit complete

    [edit]
    xpaul@H1-EDGE-re0# set interfaces xe-1/1/1 vlan-tagging

    [edit]
    xpaul@H1-EDGE-re0# set interfaces xe-1/1/1 unit 0 vlan-id 2500

    [edit]
    xpaul@H1-EDGE-re0# ...amily inet address 1.1.1.3/24 vrrp-group 4 virtual-address 1.1.1.1

    [edit]
    xpaul@H1-EDGE-re0# ...amily inet address 1.1.1.3/24 vrrp-group 4 priority 150

    [edit]
    xpaul@H1-EDGE-re0# ...amily inet address 1.1.1.3/24 vrrp-group 4 preempt

    [edit]
    xpaul@H1-EDGE-re0# ...amily inet address 1.1.1.3/24 vrrp-group 4 accept-data

    [edit]
    xpaul@H1-EDGE-re0# commit
    [edit interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24]
    'vrrp-group 4'
    Duplicate virtual-ip : 1.1.1.1 detected on interface: xe-1/1/1 unit: 0 vrrp-group: 4 for address: 1.1.1.3 on logical-system default routing-instance default
    error: configuration check-out failed



  • 4.  RE: Not able to put interface in logical-system

     
    Posted 06-26-2019 02:20
    can you delete interface from default instance and commit.
    Then add it to logical system and check?



    Juniper Business Use Only


  • 5.  RE: Not able to put interface in logical-system

    Posted 06-26-2019 02:24
    You have configured both interfaces in root logical system. The interfaces should be configured under the logical-system EDGE-2 lie below:

    set logical-systems EDGE-2 interfaces xe-1/1/0 unit 0 vlan-id 2500

    set logical-systems EDGE-2 interfaces xe-1/1/0 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 virtual-address 1.1.1.1
    set logical-systems EDGE-2 interfaces xe-1/1/0 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 priority 150
    set logical-systems EDGE-2 interfaces xe-1/1/0 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 preempt
    set logical-systems EDGE-2 interfaces xe-1/1/0 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 accept-data

    set interfaces xe-1/1/0 vlan-tagging



    Juniper Business Use Only


  • 6.  RE: Not able to put interface in logical-system

    Posted 06-26-2019 02:39

    Hi Nellikka,

     

    please see my config has EDGE-2 as logical system.

     

     



  • 7.  RE: Not able to put interface in logical-system

     
    Posted 06-26-2019 02:44

    Hi Xavier,

     

    The entire configuration for the interfaces should be under the logical-systems hierarchy, not just binding the interface

     

    Please use the below config for EDGE-1 and EDGE-2:

     

    set logical-systems EDGE-1 interfaces xe-1/0/0 vlan-tagging
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 vlan-id 2500
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 virtual-address 1.1.1.1
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 priority 110
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 preempt
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 accept-data


    set logical-systems EDGE-2 interfaces xe-1/1/1 vlan-tagging
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 vlan-id 2500
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 virtual-address 1.1.1.1
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 priority 110
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 preempt
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 accept-data

     

    Hope this helps.

     

    Regards,

    Pradeep.

     

     



  • 8.  RE: Not able to put interface in logical-system

     
    Posted 06-26-2019 02:49

    Correction for interface vlan-tagging, use this:

     

    set interfaces xe-1/0/0 vlan-tagging
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 vlan-id 2500
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 virtual-address 1.1.1.1
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 priority 110
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 preempt
    set logical-systems EDGE-1 interfaces xe-1/0/0 unit 0 family inet address 1.1.1.2/24 vrrp-group 4 accept-data


    set interfaces xe-1/1/1 vlan-tagging
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 vlan-id 2500
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 virtual-address 1.1.1.1
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 priority 110
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 preempt
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 accept-data

     

    Thanks,
    Pradeep
    Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!

     



  • 9.  RE: Not able to put interface in logical-system

    Posted 06-26-2019 03:08

    Hi pradkm,

    Getting error:

     

    xpaul@H1-EDGE-re0# set logical-systems EDGE-2 interfaces xe-1/1/1 vlan-tagging
    ^
    syntax error.

     

     



  • 10.  RE: Not able to put interface in logical-system

     
    Posted 06-26-2019 03:14
    HI Xavier,

    As already corrected, use " set interfaces xe-1/0/0 vlan-tagging" only for the vlan-tagging configuration, Rest under Logical system hierarchy.

    Thanks,
    Pradeep,

    Juniper Business Use Only


  • 11.  RE: Not able to put interface in logical-system

    Posted 06-26-2019 03:15

    vlan-tagging should be enabled under root logical system. Not under EDGE-2 logical system. Remaining interface configuration should be under EDGE-2 logical system

     

    set interfaces xe-1/1/1 vlan-tagging

    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 vlan-id 2500
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 virtual-address 1.1.1.1
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 priority 150
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 preempt
    set logical-systems EDGE-2 interfaces xe-1/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 accept-data

     



  • 12.  RE: Not able to put interface in logical-system
    Best Answer

     
    Posted 06-26-2019 03:35

    Hi xavierpaul,

     

    Nellikka's observations are correct. You need to have the interface vlan-id assignment in the logical-system EDGE-2, but the vlan-tagging config has to be globally. Please see the output below from a MX, I am using xe-5/1/1 in my case :

     

    labroot@jtac-mx480-r2001-re0# show interfaces xe-5/1/1 | display set

    [edit]
    labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 vlan-id 2500

    [edit]
    labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 virtual-address 1.1.1.1

    [edit]
    labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 priority 150

    [edit]
    labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 preempt

    [edit]
    labroot@jtac-mx480-r2001-re0# set logical-systems EDGE-2 interfaces xe-5/1/1 unit 0 family inet address 1.1.1.3/24 vrrp-group 4 accept-data

    [edit]
    labroot@jtac-mx480-r2001-re0# set interfaces xe-5/1/1 vlan-tagging

    [edit]
    labroot@jtac-mx480-r2001-re0# show | compare
    [edit logical-systems EDGE-2 interfaces xe-5/1/1 unit 0]
    + vlan-id 2500;
    + family inet {
    + address 1.1.1.3/24 {
    + vrrp-group 4 {
    + virtual-address 1.1.1.1;
    + priority 150;
    + preempt;
    + accept-data;
    + }
    + }
    + }
    [edit interfaces]
    + xe-5/1/1 {
    + vlan-tagging;
    + }

    [edit]
    labroot@jtac-mx480-r2001-re0# commit check
    configuration check succeeds

    [edit]
    labroot@jtac-mx480-r2001-re0#

    labroot@jtac-mx480-r2001-re0# commit
    commit complete

    [edit]
    labroot@jtac-mx480-r2001-re0# show logical-systems EDGE-2
    interfaces {
    xe-5/1/1 {
    unit 0 {
    vlan-id 2500;
    family inet {
    address 1.1.1.3/24 {
    vrrp-group 4 {
    virtual-address 1.1.1.1;
    priority 150;
    preempt;
    accept-data;
    }
    }
    }
    }
    }
    }

    [edit]

     

    tks,

    Abhishek



  • 13.  RE: Not able to put interface in logical-system

     
    Posted 06-26-2019 03:54

    In fact you can go for a routing-instance type virtual-router and put the interface in that routing instance to save yourself from this trouble. All the configuartions for the interface will be globally on the interface.

     

    tks,

    Abhishek



  • 14.  RE: Not able to put interface in logical-system

    Posted 06-26-2019 19:26

    Thanks Nelikka, abhisek. It works.



  • 15.  RE: Not able to put interface in logical-system

     
    Posted 06-26-2019 19:30

    Good to know, please accept as solution. 🙂

     

    Did you also tryout the routing-instance type virtual router.

     

    tks,

    Abhishek



  • 16.  RE: Not able to put interface in logical-system

     
    Posted 06-26-2019 06:44

    Examples have been given by other experts. Here's the rule. 

    1. Everything for physical interface, put in global instance 

    2. Everything for logical interface, (after unit x), put in logical interface