From owner-freebsd-hackers Sun Aug 27 13:12:16 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id NAA02332 for hackers-outgoing; Sun, 27 Aug 1995 13:12:16 -0700 Received: from mail.htp.com (mail.htp.com [199.171.4.2]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id NAA02322 for ; Sun, 27 Aug 1995 13:12:13 -0700 Received: from et.htp.com (et.htp.com [199.171.4.228]) by mail.htp.com (8.6.5/8.6.5) with SMTP id QAA20654; Sun, 27 Aug 1995 16:12:24 -0400 Date: Sun, 27 Aug 1995 16:12:24 -0400 Message-Id: <199508272012.QAA20654@mail.htp.com> X-Sender: dennis@mail.htp.com X-Mailer: Windows Eudora Version 2.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: John Capo From: dennis@et.htp.com (dennis) Subject: Re: alias ( secondary IP ) for Ethernet Ifaces in FreeBSD Cc: hackers@freebsd.org, gated-alpha@cornell.edu Sender: hackers-owner@freebsd.org Precedence: bulk >dennis writes: >> >> John Capo writes.. >> >> >> >> For example , I have ep0 iface and I want to assign the >> >> >> secondary( alias) IP address to it . >> >> >> What command should be issued ? >> >> >> >> >> >> ifconfig ep0 alias 199.199.199.22 >> >> > >> >> >> >> I've read several messages in this thread and can't get it to work. >> >> SOMETHING shows up with netstat -in but I can't ping it. I've tried >> >> >> >> >> >> ifconfig ed0 204.141.95.2 alias (This takes but doesn't work) >> >> >> >> and >> >> >> >> ifconfig ed0 alias 204.141.95.2 (I get "File Exists" here) >> >> >> > >> >Try ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff >> > >> >> This still doesn't work. When I do it, I can ping the primary address but >> not the secondary. If I try to ping the secondary address the machine sends >> an ARP. >> >> What should the route look like (in netstat/ifconfig) if it works? >> > >Strange... I aliased one of my systems to 204.141.95.2 and everything >looks OK. > [info listings deleted] AHA! It seems that it works ok when I run routed, but not with gated..I'm running gated with rip only on this machine. If I do the alias when running gated I get the wrong entry in my routing table (a link# entry as the gateway). This implies that gated is adding the entry when it does its "interface scan" and not getting the information that it expects, or that it doesn't support aliasing. Is anyone using alias addressing in Freebsd and gated successfully? Dennis