![]() |
| November 1999 | Get BSD | New to BSD? | Search BSD | Submit News | FAQ | Contact Us | Join Us |
|
A bunch of quickies this month. Let's get to it, shall we?
List of Topics
It is not that you need 255.255.255.255 specifically, but rather that the netmask you use must be appropriate for the host or subnet in the alias.
If you are aliasing a single address, then 255.255.255.255 is correct because it allows only that exact address to be considered for routing on that port.
If you are aliasing a subnet, then you should use the netmask for that subnet, so that all addresses on the subnet (and only those on the subnet) are considered for routing on that port.
This prevents the alias from confusing the kernel into sending packets out on the wrong network interface.
Go look at Colas Nahaboo's X mouse wheel scroll page and enjoy the adventure of learning about your wheel mouse.
(Note, my source for this reports that "the Netscape hack didn't work for me on Linux", so of course your mileage may vary.)
For a somewhat NetBSD specific step-by-step, try this page. There is also the official IP Filter Home Page which has more links and is, of course, more general.
Don't forget to look at the example files in /usr/share/examples/ipf, and of course there's always the man pages for ipf and ipnat.
Create a file /etc/ifconfig.interface which contains the arguments you give to ifconfig after the interface name.
For example, for an interface configured like so:
% ifconfig ne0 inet 10.0.0.1 netmask 255.255.255.0you could use the following command to create this file:
% echo inet 10.0.0.1 netmask 255.255.255.0 > /etc/ifconfig.ne0Alternatively, you can add a line to /etc/rc.conf that looks like this:
ifconfig_ne0="inet 10.0.0.1 netmask 255.255.255.0"(The inet is technically optional, because it's the default.)
CONTRIBDIR := $(shell cd ../contrib && pwd)The above is a GNU make specific syntax. The BSD make equivalent is:
CONTRIBDIR != cd ../contrib && pwd
A: