I've got a Juniper SRX220 that I'm trying to connect between our existing network and the new networks on the Juniper side. However, no matter what static route I try and set, traffic doesn't cross between them.
What I'm trying to achieve is routing traffic from one of the wireless vlans onto the existing corporate network, but not route between the guest wireless and corporate network.
The Juniper is connected to
- 2 x AX411 Access Points (with various working SSIDs on different sub-nets)
- Our external internet connection
Each of the SSIDs are on different vlans, and connected to the external internet fine (i.e. zones/policies etc are working ok for the new network).
I've configured the default vlan to be 192.168.110.0 so it doesn't clash with our existing network which is 192.168.1.0.
Now, I'm trying to connect the 2 networks together via ge-0/0/6 so that I can route traffic to the 192.168.1.0 network via that interface onto our existing network.
For that, i've got the configuration:
ge-0/0/6 {
unit 0 {
family inet {
address 192.168.111.1/32;
}
}
}
To route between the two, I thought I'd only have to add a static route:
set routing-options static route 192.168.1.0/24 next-hop 192.168.111.1
because the cable is connected from the juniper directly into a switch on the other network.
However, looking at the route information, i don't see anything referring to 192.168.1.0:
....
192.168.110.0/24 *[Direct/0] 04:45:41
> via vlan.0
192.168.110.1/32 *[Local/0] 04:45:41
Local via vlan.0
192.168.111.1/32 *[Direct/0] 02:14:54
> via ge-0/0/6.0
[Local/0] 02:14:54
Local via ge-0/0/6.0
I tried adding resolve
to the static route definition, and this does show the network in the route information
show route
....
192.168.1.0/24 *[Static/5] 00:01:26, metric2 0
> to 192.168.111.1 via ge-0/0/6.0
but the forwarding-table doesn't show anything, and I can't ping the 192.168.1.0 network.
Am i missing something fundamental here? Every example I find on adding a static route simply does it with a command similar to the one I've tried.