From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 00:18:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17558106564A for ; Tue, 16 Sep 2008 00:18:29 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id A889A8FC08 for ; Tue, 16 Sep 2008 00:18:28 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.14.2) with ESMTP id m8G0IJ2L079414; Mon, 15 Sep 2008 19:18:20 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080915191426.024b0128@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 15 Sep 2008 19:18:04 -0500 To: "Andy Smith" , From: Derek Ragona In-Reply-To: <041601c91751$6d518a60$6600a8c0@computer> References: <041601c91751$6d518a60$6600a8c0@computer> Mime-Version: 1.0 X-Antivirus: avast! (VPS 080915-0, 09/15/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.93.3/8251/Mon Sep 15 15:23:40 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m8G0IJ2L079414 X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: 2 logical interfaces in same subnet, problems... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2008 00:18:29 -0000 At 11:38 AM 9/15/2008, Andy Smith wrote: >Hi, > > I would like to configure a second sub/cloned interface on a FreeBSD > 5.3 system. I have read various bits >and pieces on the subject but I cannot ping (from another server) the >second IP which I have configured. >The steps I took to achieve this are: > >kldload if_vlan >ifconfig >ifconfig fxp0.1 create > ># then add the IP to fxp0.1 > ># after which my interfaces look something like: > >fxp0: flags=8843 mtu 1500 > options=8 > inet 10.10.10.1 netmask 0xffffff00 broadcast 10.10.10.255 > inet6 fe80::203:47ff:fe71:21e7%fxp0 prefixlen 64 scopeid 0x1 > ether 00:03:47:71:21:e7 > media: Ethernet autoselect (100baseTX ) > status: active >fxp0.1: flags=8842 mtu 1500 > inet6 fe80::203:47ff:fe71:21e7%fxp0.1 prefixlen 64 scopeid 0x8 > inet 10.10.10.2 netmask 0xffffffff broadcast 10.10.10.255 > ether 00:03:47:71:21:e7 > media: Ethernet autoselect (100baseTX ) > status: active > vlan: 1 parent interface: fxp0 > > >From this server itself I can ping the second IP 10.10.10.2, but from > other systems I can only ping 10.10.10.1. >Im most familiar with Solaris and this type of config works no probs with >Solaris, is there something else I >have to configure on FreeBSD? For example I found it wouldnt let me use >the normal subnet and I then read >that for a second IP on the same subnet it should be set to -1 > >Any ideas? thanks for any help, > >Andy. Andy, You are doing this the wrong way for FreeBSD. The method you used I've seen in Redhat. Just add a line like this to /etc/rc.conf: ifconfig_fxp0_alias1="10.10.10.2 netmask 0xffffffff" You can also do it at the command line: ifconfig fxp0 alias 10.10.10.2 netmask 0xffffffff You don't need anything else. No kernel mods. You will just have another IP stack running on your NIC. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.