network config with two network cards as route to gateway

John Abreau jabr at blu.org
Wed Jul 7 23:58:01 EDT 2004


On Wed, 2004-07-07 at 07:31, Jerry Feldman wrote:

> I actually have that situation on my laptop where I plug in at home with
> a static IP, or I use wireless, or I'm at NEU where I use DHCP ...
> The first thing I did was to set up profiles. You can do this through
> YaST or use scpm(8) from the command line. I also have Grub configured
> to load the appropriate profile on startup. 

I used to do something similar, although I had rolled my own scripts 
for switching realms. But now I don't bother. Rather than configure 
my laptop with a static address when I'm at home, I just added the 
MAC address of my pcmcia ethernet card to /etc/dhcpd.conf and assigned 
it a static address there, so my dhcp server at home always gives my 
laptop that same address. This completely eliminates the hassle. 

-- 
John Abreau / Executive Director, Boston Linux & Unix
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <http://lists.blu.org/pipermail/discuss/attachments/20040707/0dbb3d6c/attachment.sig>


More information about the Discuss mailing list