How to configure PC for wired/static and wired/DHCP networks?

Tom H tomh0665 at
Wed Oct 27 15:57:10 UTC 2010

On Wed, Oct 27, 2010 at 10:16 AM, Christopher Chan
<christopher.chan at> wrote:
> On Wednesday, October 27, 2010 09:11 PM, Tom H wrote:
>> On Wed, Oct 27, 2010 at 8:43 AM, Christopher Chan
>> <christopher.chan at>  wrote:
>>> On Wednesday, October 27, 2010 07:57 PM, Tapas Mishra wrote:
>>>> I want my netbook to connect automatically to both the office
>>>> wired/static network and to the usual wired/DHCP networks.
>>> Not possible unless you have two interfaces. How is the software
>>> supposed to know when to load the office network and when not to?
>> If this is in different locations rather than simultaneous, ifupdown
>> provides to be used in "/etc/network/interfaces" to
>> determine which configuration to use.
> wonders whether making another alias to use on the other
> subnet for simultaneous connections to two subnets would be fun to automate.
> This is getting way out of end user range.

There's an "/etc/network/interfaces" example supplied with

mapping eth0
script /path/to/
map home
map work-wireless
map work-static
iface home inet dhcp
iface work-wireless bootp
iface work-static static

More information about the ubuntu-users mailing list