Assign IP address to which interface when using if_bridge(4)?
Frank Behrens
frank at pinky.sax.de
Fri Mar 9 13:44:33 UTC 2007
I see some problems with if_bridge(4) and want to investigate this further. But before I make
further tests I want to be sure to have the right setup. I could not find any hints in the
documentation including FreeBSD handbook.
I have an ethernet device xl0 and want to create a if_bridge(4) to tap(4):
ifconfig bridge0 create
ifconfig bridge0 addm xl0 addm tap0 up
Now I have 3 interfaces, to which of them should I assign the ip address? When searching
for information I found both possibilities:
1. Assign the IP address to child interface (e.g. xl0) and use this also for routing setup.
2. Assign the address to bridge interface (bridge0) and use this as reference interface.
I assume 1. is the right solution, because the bridge0 does not even create link-local
addresses. Am I right?
Regards,
Frank
--
Frank Behrens, Osterwieck, Germany
PGP-key 0x5B7C47ED on public servers available.
More information about the freebsd-net
mailing list