Hello,
Struggling to understand how I can use my MX40 to route a subnet through a serial to my ISP. Specially:
Serial: 65.156.39.84/30 (my IP: 65.156.39.86, GW (ISP): 65.156.39.85)
Subnet that I was given for use: 66.155.178.160/29 (using 66.155.178.161 as default GW for subnet)
On my MX40, I have two ports I am using:
xe-0/0/0 <--- Interface for ISP connection, serial IP of 65.156.39.86 for interface IP addr, directly connected to ISP.
xe-0/0/1 <--- Interface for subnet 66.155.178.160/29, using 66.155.178.161 for interface IP addr, connected to a switch with other devices attached
I have been trying to use "logical-systems" believing that is the way this should work, however, I am struggling with getting the subnet to work. I can successfully setup my end of the serial and ping out to the world and the world can ping my IP (65.156.39.86) on the router. However, the subnet I setup on xe-0/0/1 is clearly completely wrong as it can not ping any address nor can it be pinged even with devices are attached to the same switch as its plugged into.
Here is my relevant configuration section:
logical-systems {
LS1 {
interfaces {
xe-0/0/0 {
unit 0 {
description "GW to ISP - 86";
family inet {
address 65.156.39.86/30;
}
family iso;
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 65.156.39.85;
}
}
}
LS2 {
interfaces {
xe-0/0/1 {
unit 0 {
description "Internal GW - 161";
family inet {
address 66.155.178.161/29;
}
family iso;
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 65.156.39.86;
}
}
}
}
I have tried all sorts of permutations on the above configuration to no avail. I can see that there is no route setup for that 66.155.178.160/30 subnet (LS2), that is, it doesn't have a static route for next hop even though I defined one (see above):
show route logical-system all
logical-system: LS2
inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
66.155.178.160/29 *[Direct/0] 01:22:32
> via xe-0/0/1.0
66.155.178.161/32 *[Local/0] 01:22:32
Local via xe-0/0/1.0
inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
ff02::2/128 *[INET6/0] 01:22:32
MultiRecv
-----
logical-system: LS1
inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Static/5] 00:59:05
> to 65.156.39.85 via xe-0/0/0.0
65.156.39.84/30 *[Direct/0] 01:27:13
> via xe-0/0/0.0
65.156.39.86/32 *[Local/0] 01:27:13
Local via xe-0/0/0.0
inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
ff02::2/128 *[INET6/0] 01:27:13
MultiRecv
-----