One IP used on more than one interface (gif0 and lo0)

Frrodo Baggins fro at fro.boniholding.com
Tue Mar 9 01:53:38 PST 2004


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 at boniholding.com


More information about the freebsd-net mailing list