From owner-freebsd-questions Tue Nov 14 07:56:30 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id HAA14608 for questions-outgoing; Tue, 14 Nov 1995 07:56:30 -0800 Received: from txcc.net (txcc.net [205.218.183.157]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id HAA14593 for ; Tue, 14 Nov 1995 07:56:27 -0800 Received: by txcc.net (4.1/SMI-4.1) id AA26474; Tue, 14 Nov 95 09:55:03 PST Date: Tue, 14 Nov 1995 09:55:03 -0800 (PST) From: TAL To: Justin Seger Cc: freebsd-questions@freebsd.org Subject: Re: How do I setup IP aliases? In-Reply-To: <199511132338.SAA18438@iii1.iii.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Mon, 13 Nov 1995, Justin Seger wrote: > I want to setup multiple IP addresses for one ethernet card, specifically: > 199.232.47.49, 199.232.47.52, 199.232.47.53, 199.232.47.54 > > My default is to ifconfig le0 to 199.232.47.49. I tried doing this: > ifconfig le0 alias 199.232.47.52 then setting up an arp entry: > arp -s 199.232.47.52 ethernetaddress pub > > I then try to ping 199.232.47.52 and get no response. Could someone tell me > what I'm doing wrong? Thanks in advance. > -Justin Seger- > I have found a little bug (For lack of better term) in setting up aliases.. first off you will need to do an alias for the netcard if you were doing ip 199.232.47.52 it would look like this.. ifconfig le0 199.232.47.52 netmask 255.255.255.255 alias but here is the "BUG" (NOTE: the reason i am calling it a bug is because everyone i have spoken with says that the netmask should not effect it in this way..) check the netmask of the first le0 and make sure that the IP is with in your bounds.. example off my system my ep0 is 206.218.183.158 with a net mask of 255.255.255.224 that is 6 subnets and 30 hosts per subnet (I Think.. I dont have my chart handy) the first system on the subnet is 206.218.183.128 and the last system on the subnet is 206.218.183.158. This makes a 30 number difference between the two numbers.. if i try to alias an ip outside of 128 to 158 (such as 180) the network locks up.. not right away.. it waits an hour or so.. and there are many other symptioms like some systems on the net can telnet to the host and others cant etc.. My soulation.. well i added a full class C as a secondary IP Set to the Ethernet adapter at the router and gave it a netmask of 255.255.255.0 any ip i alias i put in this set.. thus no problems...