1834149 Members
2319 Online
110064 Solutions
New Discussion

disable interface

 
Reinhard Bayer
Occasional Contributor

disable interface

Hi folks

There is one phy. interface with two IP-Addresses assigned but sometimes I need to disable one of these locigal interface on my HP-UX 11.00 box. I did an "ifconfig lan0:1 down" and than an "ifconfig lan0:1" for verification purpose. The result looks fine:

ifconfig lan0:1
lan0:1: flags=842

but the ping on that interface still works.

ping x.x.x.x
PING x.x.x.x: 64 byte packets
64 bytes from x.x.x.x: icmp_seq=0. time=0. ms

traceroute x.x.x.x
traceroute to x.x.x.x (x.x.x.x), 30 hops max, 20 byte packets
1 x.x.x.x (x.x.x.x) 0 ms 0 ms 0 ms

Traceroute shows me also that the interface on the local system is used.

How can disable the Interface?? And how can i prevent the internal use ( internal means, from the box itself)

Thanks in advance

Reinhard

5 REPLIES 5
linuxfan
Honored Contributor

Re: disable interface

Hi Reinhard,


Just issue
ifconfig lan0:1 0

That will remove the additional ip address configure (check with netstat -ain). You don't need to issue ifconfig lan0:1 down to remove it.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
MANOJ SRIVASTAVA
Honored Contributor

Re: disable interface

Hi Reinhard Bayer

To disable interface

ifconfig lan0:1 0



or if you still are not staisfied , discoonect the lan cable to the interface physically.


Manoj Srivastava
PIYUSH D. PATEL
Honored Contributor

Re: disable interface

Hi,

#ifconfig lan0:1 0

Piyush
Reinhard Bayer
Occasional Contributor

Re: disable interface

Hi

Ok all your solutions are working fine. Thanks
But there is one question left.
How to enable the interface with the old configuration. ??

Thanks in advance

Reinhard

Re: disable interface

I have lan0 disabled:
Name Mtu Network Address Ipkts Opkts
lan1 1500 10.0.8.0 Entwickl 871594 821648
lan0* 1500 none none 0 0
lo0 4136 127.0.0.0 localhost 30318 30318

For what is the * after lan 0 ?