[NTLUG:Discuss] Multiple Ethernet Config Question

Chris Cox cjcox at acm.org
Wed Oct 10 10:07:23 CDT 2001


In general to move around.... procedure is similar to the following
(assumes one ethernet interface eth0).  IP in this case is 192.168.1.20,
netmask is a full class-C (/24) net.  The gateway to other nets
by default in this case is 192.168.1.1.  DNS is whatever you were
told to use on the particular net.  These procedures assume
a pretty "normal" situation... you'll have to check with your
network administrator for additional route info and netmask, etc.

You could make this into a script and name your resolv.conf's
to be identifiable by the net you want to attach to and just
copy them into place.


ifconfig eth0 down
ifconfig eth0 192.168.1.20 netmask 255.255.255.0
route add default gw 192.168.1.1
vi /etc/resolv.conf # switch to your new nameserver

Stephen Davidson wrote:

> Hi David.
> 
> Agreed on DHCP, but one of the networks is not going to support this.
> Where do I find network scripts?
> If I have to create them, what would a sample one look like?
> 
> -Steve
> 
> David Stokes wrote:
> 
>> Yup.  One way is to have seperate network scripts for each network. 
>> But DHCP would be much easier to implement and maintain.
>>
>> --- Stephen Davidson <gorky at freenet.carleton.ca> wrote:
>>
>>> Greetings.
>>>
>>> Is it possible to have multiple Ethernet configurations available
>>> for a single network card?
>>>
>>> I want to be able to switch my configuration depending on which
>>> network I am plugged into at any given time.
>>>
>>> My OS is Suse 7.0.
>>>
>>> Thanks,
>>> Steve
>>>
>> =====
>> -David Stokes-
>> david_stokes at yahoo.com
>>
>> There are three kinds of lies: Lies, damned lies, and computer manuals.
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Make a great connection at Yahoo! Personals.
>> http://personals.yahoo.com
>> _______________________________________________
>> http://www.ntlug.org/mailman/listinfo/discuss
> 
> 
> 
> 





More information about the Discuss mailing list