Date: Tue, 25 Mar 2003 14:44:06 +0200 From: Willie Viljoen <will@unfoldings.net> To: Sten Daniel =?iso-8859-1?q?S=F8rsdal?= <sten.daniel.sorsdal@wan.no>, "Murat USTUNTAS" <ustuntas@bimel.com.tr>, <stable@freebsd.org> Subject: Re: ifconfig alias file exists error Message-ID: <200303251444.06073.will@unfoldings.net> In-Reply-To: <0AF1BBDF1218F14E9B4CCE414744E70F1F3C83@exchange.wanglobal.net> References: <0AF1BBDF1218F14E9B4CCE414744E70F1F3C83@exchange.wanglobal.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 25 March 2003 14:34, someone, possibly Sten Daniel S=F8rsdal,=20 typed: > > Hello all, > > I want to put second IP on my nic cart. I have been using > > FreeBSD-4.8-RC, when i put the command, > > ifconfig rl0 alias xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx > > returns me: > > ifconfig: ioctl (SIOCAIFADDR): File exists > > What is the problem? This is a common problem. You're probably adding IPs on the same subnet. Fo= r=20 the second IP on a subnet, you want a netmask of 255.255.255.255, or=20 routing can go badly wrong. The command you want is: ifconfig rl0 add xxx.xxx.xxx.xxx netmask 255.255.255.255 By the way, you can set this permanently in /etc/rc.conf: ifconfig_rl0=3D"inet 10.0.0.1 netmask 255.255.255.0" ifconfig_rl0_alias0=3D"inet 10.0.0.9 netmask 255.255.255.255" Will =2D-=20 Willie Viljoen =46reelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) will@unfoldings.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303251444.06073.will>