HPE 9000 and HPE e3000 Servers
1825789 Members
2240 Online
109687 Solutions
New Discussion

Re: How to remove lan interface forcefully???

 
Selvaraj
Advisor

How to remove lan interface forcefully???

Dear Experts,

By mistake my colleague typed :
ifconfig lan5 10.127.161.25 255.255.255.0 down
==============================================
Ouput looks like this:
ifconfig lan5
lan5: flags=850
inet 10.127.161.25 --> 10.127.161.25 netmask ffffff00
==============================================

We did unplumb, again plumbed and reconfigured that network interface. But we are keep seeing in the first line output. We are unable to remove the interface. Or we can say unable to configure properly after that. All we tried to modify /etc/rc.config.d/netconf file and re-ran /sbin/init.d/net script.
We got the following error (both command line and net script give the same error).

==============================================
ifconfig lan5 10.127.161.25 netmask 255.255.255.0 broadcast 10.127.161.255 up
ifconfig: %s: bad value
: bad value
============================================

Either we need to remove clearly or re-configure it properly without reboot.

The correct output should be like this: ( we got this ouput after reboot ).

==============================================
ifconfig lan5
lan5: flags=843
inet 10.127.161.25 netmask ffffff00 broadcast 10.127.161.255
==============================================

Thanks in advance for all your help.
You can do it man !
6 REPLIES 6
Sudalaimani
Frequent Advisor

Re: How to remove lan interface forcefully???

Hi friends,

Any "ifconfig" configuration will be finished only after the reboot.. .ie just reboot aftter running the command like this,

ifconfig lan5 10.127.161.25 netmask 255.255.255.0 broadcast 10.127.161.255 up

1. if you have edited the netconf file check this lins i ="up",

INTERFACE_STATE[2]=up

etc.,

Best of luck..

Make sure to reboo the system to get the configuration effective..

Sudalaimani


A Long Journey Starts with Single Foot Step
Selvaraj
Advisor

Re: How to remove lan interface forcefully???

Mani,

THanx for your info. Infact our need is to reconfigure without reboot (atleast temporarily). In Sun-Solaris we do have that facility but unable to do so in HP.
You can do it man !
Steve Labar
Valued Contributor

Re: How to remove lan interface forcefully???

What type of NIC do you have installed? The NIC should control the encapsulation for that interface. If you do a "lanscan" what is the MAC type?

Good Luck.

Steve
Steve Labar
Valued Contributor

Re: How to remove lan interface forcefully???

Also, ifconfig should change the LAN card "on the fly" the only thing to be careful of is to make sure you update your /etc/rc.config.d/netconf file to match the changes to what you had in ifconfig for your next reboot.

Good Luck

Steve
Selvaraj
Advisor

Re: How to remove lan interface forcefully???

Hi All,

Thanks for you responses.

Our NIC is standard ethernet card only. IF you want to see this kind of error, just type in your test machine as follows:

#ifconfig lan5 10.127.161.25 255.255.255.0 0

You will see error message like what I have posted in my mail. Then try to change back to original status without reboot. If you get any resolution, please reply.
You can do it man !
Selvaraj
Advisor

Re: How to remove lan interface forcefully???

Hi experts,

Can anyone of you answer to my question. I need to findout some solution for this asap. Please send me additional info.

Thanks in advance,
Selvaraj
You can do it man !