Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 1996 09:07:57 -0500
From:      gregkopp@en.com (Greg Kopp)
To:        questions@freebsd.org
Subject:   manual arp
Message-ID:  <v01530503ad58bf0020ac@[206.148.86.83]>

next in thread | raw e-mail | index | archive | help
I am trying to get my FreeBSD machine to accept IP requests from more than
one IP address. Here's what I'm doing.

ifconfig eg0 inet 192.168.1.1 .....
ifconfig eg0 alias inet 192.168.3.3 ...

Then I delete the network automatically added:

route delete -net 192.168.3 192.168.3.3

And add the host

route add -host 192.168.3.3 192.168.3.3

Now in order for the machine to recognize both IP addresses, I have to tie
that IP address to the same ethernet address:

arp -s 192.168.3.3 11:22:33:44:55:66 pub

Right?

When the arp command is executed from my netstart, I get an error:

writing to routing socket: No such process
192.168.3.3: No such process

And if I try and do this from root, I get:

cannot intuit interface index and type for 192.168.3.3

And if I try and ping 192.168.3.3 from the same host, I get:

Feb 26 05:28:33 kopp /kernel: arpresolve: can't allocate llinfo

I get no error messages when trying to set up the alias'd interface. Is
there a way for me to make sure that it worked? ifconfig eg0 doesn't tell
me anything other than the info about the first assignment to 192.168.1.1

Help?

--
******************************************************************
*             Greg Kopp - Garfield Heights, Ohio                 *
*  Gun Owner-Ham Radio Operator-Model Railroader-Graphic Artist  *
******************************************************************





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