From owner-freebsd-questions Thu Oct 22 03:05:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA16661 for freebsd-questions-outgoing; Thu, 22 Oct 1998 03:05:27 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from unix.stylo.it (unix.stylo.it [193.76.98.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA16654 for ; Thu, 22 Oct 1998 03:05:22 -0700 (PDT) (envelope-from ATuretta@stylo.it) Received: from styloserver.stylo.it (styloserver.stylo.it [193.76.98.3]) by unix.stylo.it (8.9.1/8.9.1) with ESMTP id MAA28460 for ; Thu, 22 Oct 1998 12:04:45 +0200 (CEST) (envelope-from ATuretta@stylo.it) Received: by styloserver.stylo.it with Internet Mail Service (5.0.1457.3) id <4D6B1XJR>; Thu, 22 Oct 1998 12:03:21 +0200 Message-ID: <210F5CDE0707D211B4BD00062905C8420775@styloserver.stylo.it> From: Angelo Turetta To: "'freebsd-questions'" Subject: Help needed: Routing problem adding alias to ep0 Date: Thu, 22 Oct 1998 12:03:19 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1457.3) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi everybody, Please send replies directly to my address too, as I'm not subscribed to this list. We run virtual servers (http/ftp) for some of our clients, and I configure them by entering a command like the following in /etc/start_if.ep0: ifconfig ep0 alias 193.76.98.248 netmask 0xffffffff The server (FreeBSD 2.2.6) has a default root pointing to our main router, and is running 'routed -q' from rc.conf. The problem rises when I run the command above from the command prompt: the newly added alias is not routed correctly, and I cannot ping the new IP from the local machine (it seems to work from the network) Here is an excerpt from the routing table after running the command above: 193.76.98.248 193.76.98.248 UH 0 4 ep0 => 193.76.98.248/32 link#3 UC 0 0 193.76.98.249 0:a0:24:72:7e:5c UHLW 0 17793 lo0 => 193.76.98.249/32 link#3 UC 0 0 .249 is another alias added with a similar command from start_if.ep0 Once I reboot the server, both aliases are routed through the loopback interface, and anything is fine. Can you explain why this is happening, and how can I avoid rebooting my server every time I add an alias (had that been my goal, I would have used NT 4.0 instead of FreeBSD :-) Thanks for any help Angelo Turetta RainbowNet - Italy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message