| Summary: | Cannot create alias IP address | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Oleg Kepp <hostmaster> |
| Component: | i386 | Assignee: | freebsd-i386 (Nobody) <i386> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Oleg Kepp
2004-07-01 15:30:23 UTC
Oleg Kepp <hostmaster@netgrs.co.ru> writes: > ifconfig xl0 inet 192.168.2.4 netmask 255.255.255.0 alias > Shows the following output: > ifconfig: ioctl (SIOCAIFADDR): File exists This is a FAQ: if xl0 already has an address on the 192.168.2.0/24 subnet, you need to use an all-bits-one netmask (255.255.255.255) for the alias. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no State Changed From-To: open->closed Close the PR since this is a configuration error: From ifconfig(8): alias Establish an additional network address for this interface. This is sometimes useful when changing network numbers, and one wishes to accept packets addressed to the old interface. If the address is on the same subnet as the first network address for this interface, a non-conflicting netmask must be given. Usually 0xffffffff is most appropriate. In short, change netmask 255.255.255.0 to netmask 255.255.255.255. It is better to use the freebsd-questions mailing list for these kind of configuration problems. |