Routing
Highlighted
Routing

Not able to put interface in logical-system

‎06-26-2019 02:04 AM

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?

15 REPLIES 15
Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 02:18 AM

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

Highlighted
Routing

Re: Not able to put interface in logical-system

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



Juniper Business Use Only
Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 02:23 AM
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
Thanks,
Nellikka
JNCIE x3 (SEC #321; SP #2839; ENT #790)
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 02:38 AM

Hi Nellikka,

 

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

 

 

Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 02:43 AM

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

Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 02:44 AM

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.

 

 

Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 02:48 AM

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!!!

 

Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 03:07 AM

Hi pradkm,

Getting error:

 

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

 

 

Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 03:13 AM
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
Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 03:14 AM

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

 

Thanks,
Nellikka
JNCIE x3 (SEC #321; SP #2839; ENT #790)
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Highlighted
Routing
Solution
Accepted by topic author xavierpaul
‎08-14-2019 08:39 PM

Re: Not able to put interface in logical-system

‎06-26-2019 03:34 AM

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

Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 03:53 AM

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

Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 06:43 AM

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 


Mengzhe Hu
JNCIE x 3 (SP DC ENT)
Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 07:25 PM

Thanks Nelikka, abhisek. It works.

Highlighted
Routing

Re: Not able to put interface in logical-system

‎06-26-2019 07:30 PM

Good to know, please accept as solution. Smiley Happy

 

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

 

tks,

Abhishek