Wednesday, November 17, 2021

Issues with JunOS virtual router

I'm stuck with the following issue and need to solve it urgently

I received a public IPv4 /24 subnet at location A and want to use a part of it at location B. Locations have no private interconnection.

My approach was the following:

Create a GRE tunnel between location A (10.0.240.10/30) and B (10.0.240.9/30) --> works

Create a static route on A for the public subnet to point to B (route add x.x.x.32/28 next-hop 10.0.240.9 )

Here comes my -relevant- configuration at B.

I can ping the public x.x.x.33 from outside successfully, but no other hosts behind ae0.0 (e.g. x.x.x.34)

As the GRE tunnel works, I might miss something else. Any hints?

gr-0/0/10 {

unit 0 {

tunnel {

source B_PUBLIC_IP;

destination A_PUBLIC_IP;

}

family inet {

address 10.0.240.9/30;

}

}

}

ae0 {

aggregated-ether-options {

minimum-links 1;

link-speed 1g;

}

unit 0 {

family inet {

address x.x.x.33/28;

}

}

}

routing-instances {

offsite_access {

instance-type virtual-router;

routing-options {

router-id x.x.x.33;

static {

route A_PUBLIC_IP/24 next-table inet.0;

route 0.0.0.0/0 next-hop 10.0.240.10

}

}

interface gr-0/0/10.0;

interface ae0.0;

}

}



No comments:

Post a Comment