From owner-freebsd-questions Sat Aug 31 13:49:43 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA10866 for questions-outgoing; Sat, 31 Aug 1996 13:49:43 -0700 (PDT) Received: from yoss.canweb.net (root@yoss.canweb.net [207.0.185.8]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA10861 for ; Sat, 31 Aug 1996 13:49:40 -0700 (PDT) From: satan@yoss.canweb.net Received: (from satan@localhost) by yoss.canweb.net (8.6.12/8.6.12) id QAA20674 for questions@freebsd.org; Sat, 31 Aug 1996 16:40:46 -0400 Date: Sat, 31 Aug 1996 16:40:46 -0400 Message-Id: <199608312040.QAA20674@yoss.canweb.net> To: questions@freebsd.org Subject: ip aliasing does not work Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ip aliasing does not seem to work when the primary ip is on a different subnet than the aliased ips. Here is what I have. The ed0 interface is configured for 152.160.182.16, netmask 255.255.255.0. I want to add ip aliases like 152.160.5.2. I do ifconfig ed0 inet 152.160.5.2 alias route add 152.160.5.2 localhost This does NOT work. NOTE that the added alias is on a different subnet than then original ip. I have tried various masks for ifconfig, no luck. Moreover, the route command usually produces errors like writing to routing socket: File exists or writing to routing socket: No such process I cant seem to add the proper OR modify the route added by ifconfig. --Stan