Date: Fri, 7 Mar 97 15:34:04 Pacific Standard Time From: "Sean J. Schluntz" <schluntz@pinpt.com> To: questions@freebsd.org Subject: ifconfig alias problem/question. Message-ID: <Chameleon.857778750.List@rover4>
next in thread | raw e-mail | index | archive | help
I recently added a second IP address to my system for use with Apache for
another domain.
xxx.xxx.xxx.aaa Main
xxx.xxx.xxx.bbb Alias
All of the other systems can get to it just fine, though anything (Web, FTP,
Telnet etc) but I am unable to connect to it from the system it's on. I can
connect to myself using my main address and localhost.
I'm running FBSD 2.1.5-R
Any ideas?
I have the three standard lines in sysconfig for the names, ep0 and lo0 and
have added a line to netstart which does the alias (see below for the
examples) When I boot I get these messages:
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.xxx.aaa netmask 0xffffffc0 broadcast xxx.xxx.xxx.zzz
ether 00:a0:24:8f:55:1e
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
add net default: gateway xxx.xxx.xxx.yyy
writing to routing socket: Invalid argument
add net 224.0.0.0: Unvalid argument
writing to routing socket: Invalid argument
add host localhost: Incalid argument
starting routing daemon: routed.
My /etc/sysconfig for this part is:
network_interfaces="ep0 lo0"
ifconfig_ep0="inet xxx.xxx.xxx.aaa netmask 255.255.255.192"
ifconfig_lo0="inet localhost"
My /etc/netstart for this part is:
# Set up all the network interfaces, calling startup scripts if needed
for ifn in ${network_interfaces}; do
if [ -e /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn} ${ifn}
fi
eval ifconfig_args=\$ifconfig_${ifn}
ifconfig ${ifn} ${ifconfig_args}
ifconfig ${ifn}
done
ifconfig ep0 inet xxx.xxx.xxx.bbb alias
if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
static_routes="default ${static_routes}"
route_default="default ${defaultrouter}"
fi
# Set up any static routes. This should be done before router discovery.
if [ "x${static_routes}" != "x" ]; then
for i in ${static_routes}; do
eval route_args=\$route_${i}
route add ${route_args}
done
fi
if [ "x$gateway" != "xNO" ]; then
echo 'configuring host as a gateway.'
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
fi
if [ "x$router" != "xNO" ] ; then
echo -n starting routing daemon:
echo -n " ${router}"; ${router} ${routerflags}
echo '.'
fi
----------------------------------------------------------------------
Sean J. Schluntz <schluntz@pinpt.com>
Manager, Support Services ph. 408.997.6900 x222
PinPoint Software Corporation fx. 408.323.2300
6155 Almaden Expressway, Suite 100
San Jose, CA. 95120 http://www.pinpt.com/
Local Time Sent: 03/07/97 15:34:04
----------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Chameleon.857778750.List>
