From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 02:45: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 979271065676 for ; Tue, 16 Sep 2008 02:45:29 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id D036D8FC14 for ; Tue, 16 Sep 2008 02:45:27 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.13.1) with ESMTP id m8G2jTqU085486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Sep 2008 09:45:29 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.2/8.12.11) id m8G2jTMe088981; Tue, 16 Sep 2008 09:45:29 +0700 (ICT) Date: Tue, 16 Sep 2008 09:45:29 +0700 (ICT) Message-Id: <200809160245.m8G2jTMe088981@banyan.cs.ait.ac.th> From: Olivier Nicole To: a.smith@ukgrid.net In-reply-to: <041601c91751$6d518a60$6600a8c0@computer> (a.smith@ukgrid.net) References: <041601c91751$6d518a60$6600a8c0@computer> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: freebsd-questions@freebsd.org 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 02:45:29 -0000 > 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. > fxp0: flags=8843 mtu 1500 > options=8 > inet 10.10.10.1 netmask 0xffffff00 broadcast 10.10.10.255 > 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 I am not sure how you configured your interface, here ifconfig would show: em0: flags=8843 mtu 1500 options=1b inet6 fe80::20e:cff:fe5c:3228%em0 prefixlen 64 scopeid 0x1 inet 192.41.170.14 netmask 0xffffff00 broadcast 192.41.170.255 inet 192.41.170.40 netmask 0xffffffff broadcast 192.41.170.40 inet 192.41.170.41 netmask 0xffffffff broadcast 192.41.170.41 etc. I have only one interface with many IPs. I configure it in /etc/rc.conf with: ifconfig_em0="inet 192.41.170.14 netmask 255.255.255.0" ifconfig_em0_alias0="inet 192.41.170.40/32" ifconfig_em0_alias1="inet 192.41.170.41/32" Olivier