Basic routing for subnets between two routers
I want to route subnet x.x.15.x traffic from one router(1), which physically sets next to router(2). Like wise.. want to route traffic from router(2) subnet x.x.200.x to router(1).
I know this basic stuff… but I am an application software programmer.. filling in for our network engineer .. that is no longer here <sigh>
All Replies
-
What routers do you have?
Some ways to go about this like site to site VPN but for a non-VPN setup I show you that way
Not sure why you x out the IP unless they are real WAN IP subnets and not like 192.168.15.0/24 ?
Depending on the model USG you have you want the connect two routers in a external or general interface type link but this this might be done under internal but I do it this way.
So USG 1
LAN port with 192.168.15.0/24
on another port not shared with your LAN port check your port role setup this depends on your USG model
so on LAN2 make a VLAN say 99 external with a subnet 192.168.99.1 255.255.255.252 gateway 192.168.99.2
you can make a zone like uplink for this VLAN and interface name uplinkon USG 2
LAN port with 192.168.200.0/24
on another port not shared with your LAN port check your port role setup this depends on your USG model
so on LAN2 (base port depending on model) make a VLAN say 99 external with a subnet 192.168.99.2 255.255.255.252 gateway 192.168.99.1
you can make a zone like uplink for this VLAN and interface name uplinkOn USG1 go to routing static routes with the following
IP 192.168.200.0
subnet 255.255.255.0 I'm guessing this is the right subnet?
Gateway 192.168.99.2On USG2 go to routing static routes with the following
IP 192.168.15.0
subnet 255.255.255.0 I'm guessing this is the right subnet?
Gateway 192.168.99.1firewall rule on both ends
from LAN
to uplinkand
from uplink
to LANdepending on traffic flow
I don't think you need to do routing rules but here they are
On USG1
incoming LAN for 192.168.15.0/24
destination 192.168.200.0/24
next hop gateway 192.168.99.2
Source network address translation noneOn USG2
incoming LAN for 192.168.200.0/24
destination 192.168.15.0/24
next hop gateway 192.168.99.1
Source network address translation noneYou say the two USG are physically next to each other so be such to link then together without going by a switch as the uplink is by VLAN unless you setup a switch to tag VLAN99 but I'm guessing you have no need to do this.
0
Categories
- All Categories
- 439 Beta Program
- 2.8K Nebula
- 201 Nebula Ideas
- 126 Nebula Status and Incidents
- 6.3K Security
- 501 USG FLEX H Series
- 324 Security Ideas
- 1.6K Switch
- 84 Switch Ideas
- 1.3K Wireless
- 49 Wireless Ideas
- 6.8K Consumer Product
- 287 Service & License
- 458 News and Release
- 89 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 4.3K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 96 Security Highlight
Freshman Member
Guru Member