From owner-freebsd-questions Mon Mar 18 13:30:50 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA20054 for questions-outgoing; Mon, 18 Mar 1996 13:30:50 -0800 (PST) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA20042 for ; Mon, 18 Mar 1996 13:30:47 -0800 (PST) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA25978; Mon, 18 Mar 1996 16:30:27 -0500 Date: Mon, 18 Mar 1996 16:30:27 -0500 From: "Garrett A. Wollman" Message-Id: <9603182130.AA25978@halloran-eldar.lcs.mit.edu> To: Robert Du Gaue Cc: David Brockus , FreeBSD questions Subject: Re: IP aliasing In-Reply-To: References: Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk < said: >> network_interfaces="ep0 lo0" >> ifconfig_ep0="inet xxx.xxx.xxx.131 netmask 255.255.255.224" >> ifconfig_lo0="inet localhost" >> ifconfig_ep0="alias xxx.xxx.xxx.132 netmask 255.255.255.224" >> >> Is this the correct syntax and location to add the alias? >> >> And where do I need to add a route to the second IP number? > You also need to add a default route of that IP to localhost. > route add -host xxx.xxx.xxx.132 127.0.0.1 No. Don't do this. The original poster's settings are wrong. The netmask of aliases on the same subnet MUST be set to 255.255.255.255 or lots of incorrect things will happen. -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant