Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2003 21:43:53 -0800 (PST)
From:      Josh Brooks <user@mail.econolodgetulsa.com>
To:        freebsd-questions@freebsd.org
Subject:   adding some new IPs from a different subnet
Message-ID:  <20030110213621.W78856-100000@mail.econolodgetulsa.com>

next in thread | raw e-mail | index | archive | help

Hi,

I have a rc.conf that looks like:

defaultrouter="10.10.10.1"
ifconfig_fxp0="inet 10.10.10.2 netmask 255.255.255.0"
ifconfig_fxp0_alias0="inet 10.10.10.3 netmask 255.255.255.0"

Ok, easy enough - one interface, one default router, and two IPs on that
subnet.

BUT - as it happens, 10.10.10.1 is _also_ the default router for
192.168.0.0/24 ... it has the IP 192.168.0.1, but it also has the IP of
10.10.10.1 - it is the same default router, but with a few different
subnets on it.

So, I went and added one of the 192 addresses to my system:

defaultrouter="10.10.10.1"
ifconfig_fxp0="inet 10.10.10.2 netmask 255.255.255.0"
ifconfig_fxp0_alias0="inet 10.10.10.3 netmask 255.255.255.0"
ifconfig_fxp0_alias1="inet 192.168.0.2 netmask 255.255.255.0"

And this works great - it works because 10.10.10.1 is also the default
router for 192.168.0.0/24.  BUT, even though the network works great and
that IP and everything else is fine, I am getting my log files full of:

/kernel: arplookup 192.168.0.1 failed: host is not on local network

Note that the error is about the gateway - 192.168.0.1 is the IP on the
gateway that this system uses.  So, at the end of the day, everything
works great, but the system doesn't like the config and is complaining in
the logs.

---------

What is the best way to make these log errors stop occurring ?  I hate to
be a pain, but not only do I need to know what to put in rc.conf, but I
cannot reboot the system so I need to know what commands will implement it
on the fly as well.

many thanks!


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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