3
I have a fairly vanilla home LAN with an Internet provider-supplied router providing DHCP. The router uses many of its default settings unmodified. The home network is 192.168.1.0/24 and the router itself is known internally as 192.168.1.1.
I need to configure several similar routers to change their default settings. One of my computers (running FreeBSD) has a spare Ethernet interface (bce0
) and I connected one of these additional routers to it. As expected, this router also uses 192.168.1.1. The machine now has two "configured" interfaces:
bce1
-- 192.168.1.8, which is connected to the "real" router, connecting it to the Internet and the rest of the home LANbce0
-- 192.168.1.5, which is connected to the second router, which I need to change to use different network settings
How can I reach this second router without breaking the machine's connectivity with the LAN and the Internet? Simply trying to reach 192.168.1.1 goes through bce1
and reaches my normal router...
Can ipfw(8)
somehow force certain packets to go out using bce0
instead of bce1
? Preferably, without the use of "fib", because adding one requires a reboot...
1Two identical subnets on different interfaces both getting addresses via DHCP will be a pain no matter what you do. Configure one of your routers for a different subnet, e.g. 192.168.2.0/24. All routers I've seen can be configured that way. – dirkt – 2016-10-26T04:54:25.480
Of course, it will be a pain. But that's the default setting for these routers after a reset... And I don't want to reconfigure my entire home LAN for this one task. If there is no way to do it, I'll pick one computer, disconnect it from the LAN (and the Internet) and work with that. But I was hoping to avoid that... – Mikhail T. – 2016-10-26T14:20:41.117