SUMMARY: Mulitple IPs one Interface - How?

From: loi huynh <lhuynh_at_newscorp.com.au>
Date: Fri, 09 May 1997 10:33:06 +1000

Thank you to all for such a quick response.

To configure multiple IP on one interface, use ifconfig with alias
switch.

Example, tu0 has an existing ip of 165.69.1.21 to add another ip to tu0
where the network mask is 255.255.255.0 do:

#ifconfig tu0 alias 165.69.1.22 netmask 255.255.255.0

To turn the alias off, do:

#ifconfig tu0 -alias 165.69.1.22 netmask 255.255.255.0


Reading the man page on ifconfig for more info.


Once again, thanks you.


Loi Huynh


-- 
~~~~~~~~~~~~~~~~~~~~~~o~0~o~~~~~~~~~~~~~~~~~~~~~~~
News Interactive               (PH)+61-2-9288-3635
2 Holt Street Surry Hills      (FX)+61-2-9288-3171
NSW Australia 2010            http://www.ni.com.au
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Fri May 09 1997 - 03:05:05 NZST

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