Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2003 21:44:39 +0900 (JST)
From:      Tod McQuillin <devin@spamcop.net>
To:        Murat USTUNTAS <ustuntas@bimel.com.tr>
Cc:        stable@freebsd.org
Subject:   Re: ifconfig alias file exists error
Message-ID:  <20030325214220.O92091@glass.pun-pun.prv>
In-Reply-To: <3E804DC2.6060307@bimel.com.tr>
References:  <3E804DC2.6060307@bimel.com.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Mar 2003, Murat USTUNTAS wrote:

> 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?

Murat,

ifconfig gives different results depending on the arguments you give it.

Since you've completely obscured the netmask, I can't say for sure, but as
a wild guess, are you trying to add an alias on the same subnet as an IP
that is already assigned to the interface?

If so, the netmask must be 255.255.255.255, not the netmask for the subnet
size you are using.
-- 
Tod McQuillin


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?20030325214220.O92091>