default virtual network interface

Posted by Zulakis on Server Fault See other posts from Server Fault or by Zulakis
Published on 2012-09-24T04:49:04Z Indexed on 2012/09/24 9:39 UTC
Read the original article Hit count: 244

Filed under:
|
|

I got a single ethernet connection to a network but need multiple ips.
Because of this, I am using virtual network interfaces like this:

auto intern
iface intern inet static
        address ...
        netmask ...
        gateway ...U

auto intern:1
iface intern:1 inet static
        address ...
        netmask ...
        gateway ...

I need to specify which IP should be used by default for outgoing traffic.

How can I do that?

© Server Fault or respective owner

Related posts about linux

Related posts about networking