1753792 Members
7105 Online
108799 Solutions
New Discussion юеВ

Re: Unconfigure PPP

 
SOLVED
Go to solution
Frank Fitch_1
Advisor

Unconfigure PPP

I mistyped an ifconfig command by not including the keyword "netmask" in the command. My original intent was to change a NICs subnet mask. Now, I have ifconfig output of

# ifconfig lan3
lan3: flags=852
inet xxx.xxx.xxx.xxx --> 255.255.255.0 netmask fffffc00

How do I undo this, short of performing a reboot?

Thanks in advance.

Frank
5 REPLIES 5
Jeff_Traigle
Honored Contributor

Re: Unconfigure PPP

Presumably you didn't change the /etc/rc.config.d/netconf file. Check it for what the IP address was, if you didn't make note of it before you changed it at the command line. Then issue the ifconfig command to change it back to what it was with the new subnet mask you wanted.
--
Jeff Traigle
Frank Fitch_1
Advisor

Re: Unconfigure PPP

Thanks, Jeff.... I did not edit the netconf file, I shot myself in the foot using the ifconfig command.

I have tried re-entering the command correctly, but the "pointopoint" stuff is still shows in the ifconfig output.

My intent was to change the netmask from 255.255.252.0 to 255.255.255.0

Specifically, the sequence of commands that I entered were:

# ifconfig lan3
lan3: flags=843
inet xxx.xxx.xxx.xxx netmask fffffc00 broadcast xxx.xxx.xxx.255
# ifconfig lan3 xxx.xxx.xxx.xxx 255.255.255.0 up
# ifconfig lan3
lan3: flags=852
inet xxx.xxx.xxx.xxx --> 255.255.255.0 netmask fffffc00
# ifconfig lan3 down
# ifconfig lan3 xxx.xxx.xxx.xxx netmask 255.255.255.0 up
# ifconfig lan3
lan3: flags=852
inet xxx.xxx.xxx.xxx --> 255.255.255.0 netmask ffffff00

Frank
Jeff_Traigle
Honored Contributor
Solution

Re: Unconfigure PPP

Hmm... I see now. Don't recall ever seeing that before. Maybe try to unplumb and plumb the interface before setting the proper IP address back.

ifconfig lan3 unplumb
ifconfig lan3 plumb
ifconfig lan3 xxx.xxx.xxx.xxx netmask 255.255.255.0 up
--
Jeff Traigle
Frank Fitch_1
Advisor

Re: Unconfigure PPP

Thanks Jeff !!!! That did the trick !!!

Frank
Mozhdeh
Occasional Contributor

Re: Unconfigure PPP

Hi
Thank you very much. Your answer helped me to solve my problem too.
Good luck