Date: Mon, 26 Aug 2002 12:29:41 +0530 From: "Unix Tools" <unixtools@hotmail.com> To: "Roger Harrell" <roger@audiblefaith.com>, "Leigh V" <leighv@roq.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: How to configure multiple IPs on FreeBSD Message-ID: <OE35ErAWhJMYTcecyvf0001aa4b@hotmail.com> References: <3D67FEA3.81CA0D0B@audiblefaith.com> <008b01c24bdd$0628fbc0$2d01a8c0@michael> <3D69A483.CB60E520@audiblefaith.com>
next in thread | previous in thread | raw e-mail | index | archive | help
/sbin/ifconfig rl0 <IPADDRESS> netmask 255.255.255.255 alias is the right command ----- Original Message ----- From: "Roger Harrell" <roger@audiblefaith.com> To: "Leigh V" <leighv@roq.com>; <freebsd-questions@FreeBSD.ORG> Sent: Monday, August 26, 2002 09:16 AM Subject: Re: How to configure multiple IPs on FreeBSD > I added the lines > ifconfig_fxp0_alias0="inet anotherserverip netmask 255.255.255.0" > ifconfig_fxp0_alias1="inet anotherserverip netmask 255.255.255.0" > to rc.conf but haven't rebooted, I'm a bit nervous that something's not > quite right. > > When I do: > ifconfig fxp0 inet myextractip netmask 255.255.255.0 add > I get the error: > ifconfig: ioctl (SIOCAIFADDR): File exists > > I get the same error if I run it: > ifconfig fxp0 inet myextractip netmask 255.255.255.0 alias > > What am I missing? > > Thanks, > -- > Roger > > > > > 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 :| > > 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?OE35ErAWhJMYTcecyvf0001aa4b>