Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
https://forum.ivorde.com/

Junos: GRE interface in VR with local tunnel endpoint in main routing instance
https://forum.ivorde.com/junos-gre-interface-in-vr-with-local-tunnel-endpoint-in-main-routing-instance-t14181.html
Page 1 of 1

Author:  mandrei99 [ Thu May 23, 2013 9:33 am ]
Post subject:  Junos: GRE interface in VR with local tunnel endpoint in main routing instance

When Junos places a GRE interface into a custom virtual router, the VR routing table needs a static route for the remote tunnel endpoint (external host) towards the main routing instance (inet.0).

Below is a GRE tunnel between local IP 1.1.1.1 from interface ge-1/0/1.0 placed in inet.0 and some host on the internet: 2.2.2.2.

The GRE interface (gr-0/0/0.0) is placed in the "CUSTOM-VR" virtual router and a static route for 2.2.2.2 towards inet.0 is also designated.

Code:
user@junos# top show interfaces gr-0/0/0.0
clear-dont-fragment-bit;
point-to-point;
tunnel {
    source 1.1.1.1;
    destination 2.2.2.2;
    allow-fragmentation;
}
family inet {
    mtu 1500;
    address 172.16.0.34/30;
}

[edit routing-instances CUSTOM-VR]
user@junos# show
instance-type virtual-router;
interface gr-0/0/0.0;
routing-options {
    static {
        route 2.2.2.2/32 next-table inet.0;
    }
    autonomous-system 65520;
    instance-import CUSTOM-VR-VR-direct;
}

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/