Re: alias netmask bug?



On Tue, Jul 24, 2007 at 03:34:54AM +0300, Evren Yurtesen wrote:
I remember from earlier versions of FreeBSD that it had a restriction about
alias IP netmasks (somewhere in 3.x,4.x days)...

as explained here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-virtual-hosts.html

However I tried on the loopback interface to add a 2nd IP with the same
netmask as the original IP and it accepts it fine. (on 6.2)

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet 127.0.0.2 netmask 0xff000000

Is FreeBSD allowing this a bug or ???

It's not a bug. Why did you disregard the instructions, though?

If this is not a bug. What happens if an interface which is connecting to
the machine has 2 IP addresses with same netmask which is not
255.255.255.255? Does FreeBSD use each IP randomly?

Don't know, but my guess is no, it probably does not use "each IP
randomly", and I cannot even fathom the network breakage that would
ensue as a result of such.

--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, USA |
| Making life hard for others since 1977. PGP: 4BD6C0CB |

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • connection timed out on freebsd 7.0
    ... FreeBSD wangyi.com 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #2: ... inet 172.20.53.106 netmask 0xffffff00 broadcast 172.20.53.255 ... Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 ...
    (freebsd-stable)
  • Re: connection timed out on freebsd 7.0
    ... FreeBSD wangyi.com 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #2: ... inet 172.20.53.106 netmask 0xffffff00 broadcast 172.20.53.255 ...
    (freebsd-stable)
  • Re: connection timed out on freebsd 7.0
    ... FreeBSD wangyi.com 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #2: ... inet 172.20.53.106 netmask 0xffffff00 broadcast 172.20.53.255 ...
    (freebsd-stable)
  • FreeBSD 6.1 rl interface
    ... FreeBSD 6.1 on a P5 3.2GHz. ... But the killer is that I want to run 2 ethernet interfaces. ... inet 192.168.87.7 netmask 0xfffffff0 broadcast 192.168.87.15 ...
    (freebsd-questions)
  • Re: Cant ping router.
    ... Latest news on the strange '192.168' line. ... It looks like ifconfig has a ... bug, where it assumes that a 192 network is class B, and requires a ... the netmask should always be set explicitly. ...
    (comp.sys.acorn.networking)