Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2002 12:13:37 +1000
From:      "Leigh V" <leighv@roq.com>
To:        "Roger Harrell" <roger@audiblefaith.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to configure multiple IPs on FreeBSD
Message-ID:  <008b01c24bdd$0628fbc0$2d01a8c0@michael>
References:  <3D67FEA3.81CA0D0B@audiblefaith.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <roger@audiblefaith.com>
To: <freebsd-questions@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008b01c24bdd$0628fbc0$2d01a8c0>