Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2004 11:55:19 +0200 (EET)
From:      Frrodo Baggins <fro@fro.boniholding.com>
To:        freebsd-net@freebsd.org
Subject:   One IP used on more than one interface (gif0 and lo0)
Message-ID:  <Pine.BSO.4.53.0403091140450.13472@fro.boniholding.com>

next in thread | raw e-mail | index | archive | help
Hi,

   What happens if we configure an alias on lo0:

      	ifconfig lo0 alias 192.168.5.1 netmask 255.255.255.0

and then use the same IP on gif0:

	ifconfig gif0 create
	ifconfig gif0 tunnel x.x.x.x y.y.y.y
	ifconfig gif0 192.168.5.1 192.168.5.2 netmask 255.255.255.252

	(or netmask 255.255.255.0 - same as that we use in the alias
	 on lo0)

In general, what happens if we have the same IP assigned on different
interfaces? What this can this be useful for?


Best regards,
fro@boniholding.com



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