Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 1997 12:30:53 GMT
From:      Michael Ryan <mike@NetworX.ie>
To:        FreeBSD Support <questions@freebsd.org>
Subject:   Aliasing an IP address on 2.1R
Message-ID:  <ECS9704021253C@NetworX.ie>

next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> 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
<mike@NetworX.ie>
---






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ECS9704021253C>