From owner-freebsd-questions Tue Jan 22 22:29:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (oe24.pav2.hotmail.com [64.4.36.81]) by hub.freebsd.org (Postfix) with ESMTP id 2103637B402 for ; Tue, 22 Jan 2002 22:29:20 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 22 Jan 2002 22:29:19 -0800 X-Originating-IP: [64.81.32.110] From: "rachel" To: References: Subject: Re: Virtual interface (SOLUTION!) Date: Tue, 22 Jan 2002 22:29:11 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 23 Jan 2002 06:29:19.0330 (UTC) FILETIME=[49B9E420:01C1A3D7] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG A guru in a chat room figured this out by adding to my rc.local file: /sbin/ifconfig dc0 alias 192.168.254.1 netmask 255.255.255.0 broadcast 192.168.254.255 up route add -net 0.0.0.0 64.91.31.1 He also said for me to tell them to fix "that bug" that: "That the route is flush when the alias is added". Thanks anyway, Rachel ----- Original Message ----- From: "rachel" To: Sent: Tuesday, January 22, 2002 2:57 PM Subject: Virtual interface > Hi! > > I have a freebsd4.4 box that has two nics, one going to a flowpoint144 > router that is acting as a bridge that gives the box its public ip and my > linksys router which gives it a private ip (the router is also plugged into > the flowpoint and also gets a public ip form it). > > I have wanted to monitor my router with mrtg and have that all setup. To > get the snmp data from the flowpoint I made a virtual interface off dc0 (the > one going to the flowpoint) which is called dc0:1 with ip 192.168.254.1, > broadcast 192.168.254.255, netmask 255.255.255.0. It is set to activate at > boot, but it doesn't start at boot up. And when I bring it up manually it > calls itself dc0:0. It does work to collect the snmp data from the > flowpoint at 192.168.254.254, but the problem is that that interface now > does not have a route to the outside world :-(. > > Is there a way to have both ips on that nic that work at the same time? Or > perhaps the problem is in the flowpoint, like it can't handle two ips on the > same port. Any ideas? I could put a 3rd nic on the computer, but that is > over the top. > > Thank you! > > Rachel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message