How can I delete a secondary IP address on an interface?

From: <sthaug_at_nethelp.no>
Date: Sun, 10 Nov 1996 00:12:36 +0100

Scenario: Alpha 4/100 system running 3.2G. I added a secondary address
(on the same subnet) to the Ethernet interface by doing:

        ifconfig tu0 <new IP address> netmask 0xffffff00 alias

This worked just fine, I could access the new address from the machine
itself and from the outside.

However, having tested my software, I attempted to delete the secondary
address again with

        ifconfig tu0 <new IP address> delete

To my horror, the secondary address I had added *and* the primary IP
address were deleted. This was reported by ifconfig, and then I lost
contact with the machine (of course), since I was logged in over the
net :-(

So my question is: How can I delete *only* the secondary address?

Steinar Haug, Nethelp consulting, sthaug_at_nethelp.no
Received on Sun Nov 10 1996 - 00:24:20 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT