On Tuesday 25 March 2003 14:34, someone, possibly Sten Daniel S�rsdal, 
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. For 
the second IP on a subnet, you want a netmask of 255.255.255.255, or 
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="inet 10.0.0.1 netmask 255.255.255.0"
ifconfig_rl0_alias0="inet 10.0.0.9 netmask 255.255.255.255"

Will

-- 
Willie Viljoen
Freelance 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)

[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to