Date: Tue, 14 Nov 1995 09:55:03 -0800 (PST) From: TAL <litteken@txcc.net> To: Justin Seger <shorty@iii.net> Cc: freebsd-questions@freebsd.org Subject: Re: How do I setup IP aliases? Message-ID: <Pine.SUN.3.91.951114094112.26374A-100000@txcc.net> In-Reply-To: <199511132338.SAA18438@iii1.iii.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.951114094112.26374A-100000>