IP Aliasing.
Paul Civati
paul at xciv.org
Wed Mar 15 13:08:53 GMT 2000
Guy Harper <guy_harper at hotpop.com> wrote:
> ifconfig eth0:1 192.168.1.?? netmask 255.255.255.0 broadcast 192.168.1.255
> route add -host 192.168.1.?? dev eth0:1
Euww. I've always hated the concept of having to add a route to an
interface.
> but BSD suggests that interface eth0:1 does not exist..
BSD tends not to implement them that way.
> I'm not sure how to add the extra interface, or am I going about this
> the wrong way?
Do it the automatic way as Joe says, or look at the man page for the
manual method, typically:
# ifconfig fxp0 10.99.99.99 alias
The extra vifs will then show up under the interface they were attached
to:
# ifconfig -a
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 193.123.241.177 netmask 0xffffff00 broadcast 193.123.241.255
inet 10.99.99.99 netmask 0xff000000 broadcast 10.255.255.255
and can be removed, thusly:
# ifconfig fxp0 10.99.99.99 delete
-Paul-
More information about the Ukfreebsd
mailing list