From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,97cb917204857e17 X-Google-Attributes: gidfee84,public From: Kok Fock seng Subject: Re: How can I delete a secondary IP address on an interface? Date: 1996/11/12 Message-ID: <32892363.37AF@silicon.net.my>#1/1 X-Deja-AN: 195963709 references: <5633eq$1em@verdi.nethelp.no> content-type: text/plain; charset=us-ascii organization: Silicon Navigator Sdn Bhd mime-version: 1.0 reply-to: fskok@silicon.net.my newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0 (Win95; I) Steinar Haug wrote: > > 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 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 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? You should use : ifconfig tu0 -alias ^ > > Steinar Haug, Nethelp consulting, sthaug@nethelp.no