From owner-freebsd-net Wed Feb 14 13:38:32 2001 Delivered-To: freebsd-net@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 179BF37B491 for ; Wed, 14 Feb 2001 13:38:29 -0800 (PST) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.9.3) with SMTP id f1ELagi69797; Wed, 14 Feb 2001 16:36:42 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <002c01c096ce$04f7c530$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "'Drew J. Weaver'" , "'net@freebsd.org'" References: Subject: Re: Adding IP aliases Date: Wed, 14 Feb 2001 16:35:15 -0500 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 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Does anyone know of a FAQ or HOWTO for adding IP aliases to a > FreeBSD box? I can do it under linux and Im just wondering if there are any > differences or what-not. In /etc/rc.conf, add or edit lines like this (I have an 'ed0' network card): network_interfaces="lo0 ed0" ifconfig_lo0="inet 127.0.0.1 netmask 255.0.0.0" ifconfig_ed0="inet 192.168.0.2 netmask 255.255.255.0" ifconfig_ed0_alias0="inet 192.168.0.10 netmask 255.255.255.255" ifconfig_ed0_alias1="inet 192.168.0.11 netmask 255.255.255.255" You need to set the netmask of the aliases to what I have above, otherwise you won't be able to use the aliased IPs. If you want to do it from the command line (note that your aliases will be lost when you reboot unless you do the above), do this: ifconfig ed0 alias 192.168.0.10 netmask 255.255.255.255 -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message