> > I have two questions: > > > > 1. Is it feasible to have both Ethernets connect, directly or indirectly, > to the same DSL modem/router? (Adam seemed to imply that he operates this > way). The device is a Billion Bipac 8900AX R2, which can segregate LAN > ports, but as far as I can see it can't assign different IP addresses to > them. >
What are you trying to achieve with that setup? In the general case, you wouldn't do that. > > > 2. How should I set up routing on the web server so that outgoing traffic > from itself is routed as follows: > > > > (i) if the destination is in the 192.168.1.0/24 subnet, the packet should > go out through enp2s0, and > > (ii) traffic to all other destinations goes out through enp1s0? > If server has an address on 192.168.1.0/24, then it has a "connected" route automatically created by the OS, and that will be preferred over other routes. No change required. If the server is not directly connected to 192.168.1.0/24, then you will need a static route to get to it. The gateway for that route will be an IP address on a subnet that both the server and the router have an address on. The router will also have an address on 192.168.1.0/24. For (ii) you set the default route out that interface.