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

Re: change the ip address without rebooting



Thanks, that is all I need.

Robert Maynard Rhyu [bob@maydesign.net] wrote:
> Hello,
> 
> On Mon, 13 Sep 1999, Shao Zhang wrote:
> 
> > hi,
> > 	How do I change the ip address of my machine without rebooting?
> > 
> > 	I did an 
> > 
> > 	ifconfig eth0 xxx.xxx.xxx.xx netmask 255.255.255.0 broadcast
> > 	xxx.xxx.xxx.255
> > 
> > 	But it does not seem to be enough. After the above command, I
> > 	cannot telnet to anywhere unless I do a reboot...
> > 
> > 	Can someone please help me??
> 
> You must take down the interface prior to assigning it a new IP address:
> 
> # ifconfig eth0 down
> 
> Check the output of ifconfig (without arguments) to ensure the interface
> is down...
> 
> Then bring up the interface with the new IP address as you've outlined
> above.
> 
> Check the output of ifconfig (again, without arguments) to ensure the
> interface is up and has the proper IP address/netmask/etc.
> 
> Be sure to edit /etc/init.d/network and /etc/hosts to reflect your
> changes if you intend to keep your new IP address.
> 
> HTH,
> Robert.
> bob@maydesign.net
> 
> 
> 
> > 
> > Shao.
> > 
> > -- 
> > ____________________________________________________________________________
> > Shao Zhang - Running Debian 2.1  ___ _               _____
> > Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
> > University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
> > Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
> > Email: shao@cia.com.au                                                  |___/ 
> > _____________________________________________________________________________
> > 
> > 
> > -- 
> > Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> > 
> > 
> 
> 

-- 
____________________________________________________________________________
Shao Zhang - Running Debian 2.1  ___ _               _____
Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: shao@cia.com.au                                                  |___/ 
_____________________________________________________________________________


Reply to: