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

Re: change the ip address without rebooting



chances are good you need to ifconfig eth0 down first.

After ifconfig eth0 blah blah up you will probably need to add default
routes to your gateway, as well as to your network, etc.

Oh yes, I think the "dynamic IP patch" comes into play for this situation:

echo "1" > /proc/sys/net/ipv4/ip_dynaddr

(Is this located anywhere by default on a debian system?)

have fun :)

On Mon, Sep 13, 1999 at 03:36:28PM +1000, 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??
> 
> 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

-- 
Seth Arnold | http://www.willamette.edu/~sarnold/
Hate spam? See http://maps.vix.com/rbl/ for help
Hi! I'm a .signature virus! Copy me into
your ~/.signature to help me spread!


Reply to: