From owner-freebsd-questions Wed Apr 2 03:51:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA24671 for questions-outgoing; Wed, 2 Apr 1997 03:51:05 -0800 (PST) Received: from sam.networx.ie (ts07-08.dublin.indigo.ie [194.125.148.133]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA24666 for ; Wed, 2 Apr 1997 03:51:01 -0800 (PST) Received: from mip1.networx.ie (mip1.networx.ie [194.9.12.1]) by sam.networx.ie (8.6.12/8.6.12) with SMTP id MAA26434 for ; Wed, 2 Apr 1997 12:32:13 +0100 X-Organisation: I.T. NetworX Ltd X-Business: Network Consultancy and Training X-Address: 67 Merrion Square, Dublin 2, Ireland X-Voice: +353-1-676-8866 X-Fax: +353-1-676-8868 Received: from mike.networx.ie by mip1.networx.ie Date: Wed, 2 Apr 1997 12:30:53 GMT From: Michael Ryan Reply-To: mike@NetworX.ie Subject: Aliasing an IP address on 2.1R To: FreeBSD Support Message-Id: Priority: Normal Mime-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi folks, I know this has been discussed before, and I've looked at some archive mail and followed the instructions, but it doesn't work for me. Question 1 ----------------- I have two IP subnets on my LAN. The FBSD host is presently a member of one of these subnets. I want it to be reachable by hosts in the other subnet. I did the following: # ifconfig ep0 ep0: flags=8863 mtu 1500 inet 194.9.12.4 netmask 0xffffff00 broadcast 194.9.12.255 ether 00:00:c0:a3:5c:2d # ifconfig ep0 alias 10.1.0.4 netmask 255.255.255.255 At this point, I could ping 10.1.0.4 from the host itself, but not from other hosts on the 10.1.0.0 subnet. Next, I checked the arp cache. There was an entry there for 10.1.0.4 but it wasn't marked as published. I removed this entry and added it as a published entry: # arp -d 10.1.0.4 # arp -s 10.1.0.4 00:00:c0:a3:5c:2d pub Still no change in the situation. Next, I tried to delete the alias and start over. I typed: # ifconfig ep0 alias 10.1.0.4 delete Now, the network interface was completely frozen! I couldn't contact the machine using either 194.9.12.4 or 10.1.0.4. I had to reboot the machine. What am I doing wrong? Question 2 ----------------- The 10.0.0.0 network on my LAN is subnetted on a Class B boundary. The host above is in the 10.1.0.0 subnet. There is a router on the LAN which provides access to the other subnets (10.2.0.0, 10.3.0.0, etc.). Because, when setting an alias address, I must specify the netmask as 255.255.255.255, how does the FBSD box know that packets destined for another subnet (e.g. 10.2.0.0) must be forwarded to the router? Thanks for any help. Bye, Mike ---