Date: Sat, 22 Jun 1996 21:50:19 +0200 (MET DST) From: Martin Fredriksson <martin@msp.se> To: FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG> Subject: ifconfig alias (once again...)? Message-ID: <Pine.LNX.3.91.960622212413.2894B-100000@enterprise>
next in thread | raw e-mail | index | archive | help
I've tried to make sense out of a lot of posts about ifconfig aliases, UDP problem, etc, but cannot seem to fit all the pieces together. Thus following questions. I run FreeBSD 2.1.0, and I need >2 IP addresses for one machine (all addresses on same subnet). (1) Why is it recommended to use netmask 0xffffffff for alias (local subnet)? I have found it possible to use the "real" netmask for the alias also (it does complain "ioctl (SIOCAIFADDR): File exists", but everything seems to work ok anyway). # ifconfig xx0 192.168.1.228 netmask 0xfffffff0 # ifconfig xx0 192.168.1.229 netmask 0xfffffff0 alias The advantage of doing this is that the UDP bug doesn't happen(?). (2) Was any progress made on the UDP bug (alias recognized as broadcast?)? The UDP bug (resulting, for example, in 2 ns replies to 1 query (if query to alias)) seems to only happen when when using mask 0xffffffff. (3) Any consensus as to where to put the ifconfig alias definition? Or maybe modify ifconfig, allowing aliases to be specified on the same line as main address? Yea, well, I don't really care that much, but I do want to follow the "standard"! (I currently do it in netstart, right after the other ifconfigs). ------- Any tips, explanations, corrections appreciated (please excuse my not studying the code myself, I ask this here since I'm in a hurry). /// Martin F
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.91.960622212413.2894B-100000>
