Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2003 06:16:50 -0800 (PST)
From:      Dirk-Willem van Gulik <dirkx@webweaving.org>
To:        =?iso-8859-1?q?niraj=20kumar?= <nirajkumar_ait@yahoo.co.in>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ip addressing in freebsd
Message-ID:  <20031228061333.M54896@skutsje.san.webweaving.org>
In-Reply-To: <20031228132152.56172.qmail@web8310.mail.in.yahoo.com>
References:  <20031228132152.56172.qmail@web8310.mail.in.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031228061333.M54896>