From owner-freebsd-questions Sat Aug 24 19:13:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3673937B405 for ; Sat, 24 Aug 2002 19:13:17 -0700 (PDT) Received: from mta03ps.bigpond.com (mta03ps.bigpond.com [144.135.25.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE42143E65 for ; Sat, 24 Aug 2002 19:13:15 -0700 (PDT) (envelope-from leighv@roq.com) Received: from michael ([144.135.25.75]) by mta03ps.bigpond.com (Netscape Messaging Server 4.15 mta03ps May 23 2002 23:53:28) with SMTP id H1DNI100.5EO; Sun, 25 Aug 2002 12:13:13 +1000 Received: from CPE-203-45-56-16.vic.bigpond.net.au ([203.45.56.16]) by PSMAM03.mailsvc.email.bigpond.com(MailRouter V3.0n 89/2379344); 25 Aug 2002 12:13:13 Message-ID: <008b01c24bdd$0628fbc0$2d01a8c0@michael> From: "Leigh V" To: "Roger Harrell" , References: <3D67FEA3.81CA0D0B@audiblefaith.com> Subject: Re: How to configure multiple IPs on FreeBSD Date: Sun, 25 Aug 2002 12:13:37 +1000 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 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 The best quick way to find out is to use webmin www.webmin.com and add an extra IP via its web interface and then check the /etc/rc.conf file to see what it did. A real world example tailor made to exactly what you want as what you get from webmin is much better then a reference man page that doesn't have any examples such as man ipconfig or man rc.conf Here is an example anyway ifconfig_fxp0_alias0="inet anotherserverip netmask 255.255.255.224" or you can just do it on the command like and put the "add" after it ifconfig fxp0 inet myextractip netmask 255.255.255.0 add I have forgoten to put the "add" keyword a compile of times on realworld servers and brought the server down. And most times I am specifically thinking about the "add" keyword and not to forget it :) ah well. If only my company would be willing to pay for serial cables for console :| ----- Original Message ----- From: "Roger Harrell" To: Sent: Sunday, August 25, 2002 7:46 AM Subject: How to configure multiple IPs on FreeBSD > I need to add several IP addresses on my server. The IPs have been > provisioned but in the past I haven't had to do the server config piece. > I looked at the docs on rc.conf but it wasn't clear how to set up > multiple IPs. > > If my current rc.local is: > > hostname="hostname" > ifconfig_fxp0="inet currentserverip netmask 255.255.255.0 media > 100baseTX mediao > pt full-duplex" > kern_securelevel_enable="NO" > nfs_reserved_port_only="YES" > sendmail_enable="YES" > sshd_enable="YES" > usbd_enable="YES" > defaultrouter="defgateway" > nfs_client_enable="NO" > nfs_server_enable="NO" > usbd_enable="NO" > sshd_enable="YES" > portmap_enable="NO" > syslogd_flags="-ss" > sendmail_flags="-bd -q30m" > nfs_client_enable="NO" > nfs_server_enable="NO" > usbd_enable="NO" > sshd_enable="YES" > portmap_enable="NO" > syslogd_flags="-ss" > sendmail_flags="-bd -q30m" > > What can I do to get the server to respond to two more IP addresses? Are > there other files I need to edit as well. Also I did see a post about > being able to do something like this without rebooting, so if that's > possible I'd like information on that as well. Always better if it can > be done without a reboot. I'm pretty new to this level of admin. Thanks. > > -- > Roger Harrell > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message