Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jan 1998 17:00:14 -0500 (EST)
From:      Andrew Webster <andrew@guardian.fortress.org>
To:        Karl Pielorz <kpielorz@tdx.co.uk>
Cc:        isp@freebsd.org
Subject:   Re: Ifconfig & 2nd IP address - weird...
Message-ID:  <Pine.BSF.3.96.980105165929.8003D-100000@guardian.fortress.org>
In-Reply-To: <34B13CDA.AF845AFD@tdx.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Jan 1998, Karl Pielorz wrote:

> Hi All,
> 
> If I do the following on my BSD box (to serve as a secondary IP for a virtual
> web-server):-
> 
> ifconfig de0 192.168.100.2 alias
> 
> "ifconfig -a" then shows:-
> 
> de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.100.1 netmask 0xffffffe0 broadcast 192.168.100.31
>         inet 192.168.100.2 netmask 0xffffffe0 broadcast 192.168.100.31
>         ether 00:00:c0:eb:a3:0b

Use netmask 0xffffffff (255.255.255.255) for 2nd and additional addresses
on the same interface.


Regards,

Andrew Webster                              andrew@pubnix.net   
Key fingerprint =  CF E8 16 B8 A6 DB E3 C9  83 E7 96 24 25 58 15 6E
PubNIX Montreal    Connected to the world   Branche au monde
P.O. Box 147       Cote Saint Luc, Quebec   H4V 2Y3
tel 514.990.5911   http://www.pubnix.net    fax 514.990.9443




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980105165929.8003D-100000>