This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new!

you mean you have to tell it where you are?

Posted by: Anonymous [ip:] on October 22, 2007 07:02 PM
With networking as pervasive as it is, why on earth do you need to tell the machine where you are? If the machine configures with DHCP, then there are 3 things that should always uniquely identify any place you are.

1) the IP address you are given (not always too helpful, but it can sometimes be the lone identifier -- ps. you always have to use the net mask to filter off the machine specific part of the address because some DHCP servers do not even try to give you the same IP address every time you connect)

2) the IP address of the default gateway (again, not always unique, but many times it would be)

3) the Ethernet hardware address of the gateway. Granted, this may change from time to time, and the ability to attach a profile to the new address could be quite useful. I have also had to manually override an ID on a network card because I ended up with 2 cards with identical IDs, but that is quite rare.

Way back in the Red Hat 6 era I hacked a shell script together to do this, and once it was put together I seldom had to worry about what resources were available -- it just connected the way it was supposed to.


Return to Going places with openSUSE's SCPM