ip addressing in freebsd

Dirk-Willem van Gulik dirkx at webweaving.org
Sun Dec 28 06:20:22 PST 2003



On Sun, 28 Dec 2003, niraj kumar wrote:

> 1. in freebsd we can have two ip address for a single host like 2.0.0.1
> & 17.0.0.1 by using ifconfig but why can't we assign two ip like 2.0.0.1
> & 2.0.0.2 (i know that both r in same network)

In your rc.conf:

	ifconfig_fxp0=...2.0.0.1
	ifconfig_fxp0_alias0=...2.0.0.2 netmask 255.255.255.255
	ifconfig_fxp0_alias1=...2.0.0.3 netmask 255.255.255.255

See /etc/defaults/rc.conf for more examples.

> 3 where i can find more about this (links)

	http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

chapters on networking and setup

> 4. where is the code of the ip resolution in the    kernel

	http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

chapters on the kernel and references for the OS internals.

DW


More information about the freebsd-questions mailing list