[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to reconfigure network settings easily?



On Wed, 2003-06-04 at 06:13, Jon Ramsey wrote:
> On Wed, Jun 04, 2003 at 03:14:37AM -0700, Paul Johnson wrote:
> > On Wed, Jun 04, 2003 at 10:46:56AM +0100, Jon Ramsey wrote:
> > > I'm running a testing/unstable system on a new machine for home. I set
> > > up the machine at work with a static ip, gateway and dns for our work
> > > network. I've now moved the machine home and I just got cable
> > > broadband so I need to change the network settings to use dhcp - whats
> > > the best way to make the changes? 
> > 
> > By hand.
> > 
> > Make sure you have a DHCP client installed before doing all this.  In
> > /etc/network/interfaces, you should see a section similar to this:
> > 
> > auto eth0
> > iface eth0 inet static
> > 	address 192.168.0.4
> > 	netmask 255.255.255.0
> > 	network 192.168.0.0
> > 	broadcast 192.168.0.255
> > 	gateway 192.168.0.1
> > 
> > Change it to this:
> > 
> > auto eth0
> > iface eth0 inet dhcp
> > 
> > Your resolv.conf will be updated automatically by your DHCP client in
> > most cases, consult your DHCP client's documentation for it's exact
> > behavior.
> > 
> > Hope this helps.
> 
> Thanks Paul, this seems great (if almost too simple... ;)). 
> 
> Now for another stupid question... Given that the installation network
> setup allows me to choose to use dhcp am I likely to have a client
> already? (i'm at work so i can't check at the moment)
> 
> The reason I ask is that I don't have network access for the machine
> thru linux until I set this up... potentially a bit of a catch
> 22. It's a dual boot machine, so I guess I could try and track down
> the necessary debs through windows if not.

If you can mount any of the FAT drives on Linux (should be able to),
you can grab the deb and the copy from there to the linux partition.

There are 2 dhcp clients: pump (from Red Hat) and dhcp-client.  Most
people use dhcp-client, I think.

-- 
+-----------------------------------------------------------+
| Ron Johnson, Jr.     Home: ron.l.johnson@cox.net          |
| Jefferson, LA  USA   http://members.cox.net/ron.l.johnson |
|                                                           |
| Regarding war zones: "There's nothing sacrosanct about a  |
| hotel with a bunch of journalists in it."                 |
|     Marine Lt. Gen. Bernard E. Trainor (Retired)          |
+-----------------------------------------------------------+



Reply to: