If I configure a second virtual ip address on a device, will it always send packets to the gateway configured, or to it's primary gateway. For example, two ISPs configured, two firewalls configured, gateway IP's 192.168.1.1 and .2. Internal server has IP 192.168.1.100 with gateway .1. Incoming packets that have been forwarded from outside, (for instance an SSH session), will be returned to .1 for routing back to the internet. If a virtual adapter is configured with ip 192.168.1.101 and a gateway of .2 will traffic that is destined to 101, always be returned .2???
Mr Gabriel wrote:> If a virtual adapter is configured with ip 192.168.1.101 and a gateway > of .2 will traffic that is destined to 101, always be returned .2???Not by default no, you can only have one gateway per network, if you want more than one then things can get complicated, look into iproute and "multi homing", lots of examples and docs out there. nate
nate wrote:> Not by default no, you can only have one gateway per network, if you > want more than one then things can get complicated, look into iproute > and "multi homing", lots of examples and docs out there.To clarify that I mean one default gateway (destination of 0.0.0.0/0), you can have multiple routes on the same network w/o resorting to the iproute stuff. nate