From owner-freebsd-questions Fri Mar 7 19:50:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA15260 for questions-outgoing; Fri, 7 Mar 1997 19:50:50 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA15244 for ; Fri, 7 Mar 1997 19:50:47 -0800 (PST) Received: from dns.pinpt.com (dns.pinpt.com [205.179.195.1]) by who.cdrom.com (8.8.5/8.6.11) with SMTP id PAA01636 for ; Fri, 7 Mar 1997 15:53:55 -0800 (PST) Received: from rover4 (gatemaster.pinpt.com [205.179.195.65]) by dns.pinpt.com (8.6.12/8.6.12) with SMTP id PAA13795 for ; Fri, 7 Mar 1997 15:51:02 -0800 Date: Fri, 7 Mar 97 15:34:04 Pacific Standard Time From: "Sean J. Schluntz" Subject: ifconfig alias problem/question. To: questions@freebsd.org X-Mailer: Chameleon ATX 6.0, Standards Based IntraNet Solutions, NetManage Inc. X-Priority: 3 (Normal) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 mtu 1500 inet xxx.xxx.xxx.aaa netmask 0xffffffc0 broadcast xxx.xxx.xxx.zzz ether 00:a0:24:8f:55:1e lo0: flags=8049 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 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 ----------------------------------------------------------------------