1834774 Members
3164 Online
110070 Solutions
New Discussion

ifconfig -remove ???

 
Keith Floyd
Advisor

ifconfig -remove ???

Hi All

This works fine

ifconfig lan3 10.0.0.1 netmask 255.0.0.0 up

How do I remove an ip adress on command line

Thanks

Keith
5 REPLIES 5
Dan Am
Frequent Advisor

Re: ifconfig -remove ???

one thing works:
overwrite with new adress.
if no ip wanted do
"ifconfig lan0 down"


do what you can. don't if you can't.
Keith Floyd
Advisor

Re: ifconfig -remove ???

Dan

Thanks

But I want to remove IP address - and then be able to ifconfig lan3 and see
"no such interface"

This can be done from SAM - I am looking for command line

Keith
Dan Am
Frequent Advisor

Re: ifconfig -remove ???

since I am a bit short on time:

you can check out samlog ( Options --> View
SAM LOG ) on what sam is doing.

a good way to pick up nifty commandlines :-)
do what you can. don't if you can't.
Berlene Herren
Honored Contributor

Re: ifconfig -remove ???

I agree with Dan.
#ifconfig lan3 down

Also, remove it from /etc/rc.config.d/netconf and run /sbin/init.d/net stop then /sbin/init.d/net start.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Berlene Herren
Honored Contributor

Re: ifconfig -remove ???

Keith, at 11.0 you can also use "unplumb"

#ifconfig lan3 unplumb

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm