Say I need to route traffic for a subnet (111.111.111.0/24) using two routers (router1: 111.111.111.1; router2:111.111.111.2). Don’t ask me why I need two routers; it’s just because.
router1 leads out to the internet. router2 is actually a firewall and handles all the internal traffic for the network. I don’t have direct control over router1, and I need to get it to pass traffic to router2 with as few phone calls to the harried network guy as possible.
Would the following routing statements be correct?
router1 @ 111.111.111.1 (external):
Dest Gateway Mask Interface
111.111.111.0 111.111.111.2 255.255.255.0 whatever
router2 @ 111.111.111.2 (internal):
Dest Gateway Mask Interface
111.111.111.1 * 255.255.255.255 eth0
* 111.111.111.1 * eth0
111.111.111.0 * 255.255.255.0 eth1
I don’t see why not, but I’ve got a nagging feeling that I’m missing something important.
Thanks.
PS: This question is not for homework. I’m just trying to avoid looking like a dumbass.