ifconfig: BRDGADD tun0: Invalid argument

Tom Judge tom at tomjudge.com
Tue Dec 8 17:05:51 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Boris Kochergin wrote:
> Ahoy. I have an 8.0-RELEASE/i386 machine (installed clean from the CD,
> so no kernel/world mismatches are possible) on which I am trying to add
> a tun device to a bridge:
> 
> # ifconfig tun0 create
> # ifconfig bridge0 create
> # ifconfig
> ...

tun is a IP interface, you can not bridge to it, you can bridge to a
ethernet compatible device such as tap or gif.

Tom
> tun0: flags=8010<POINTOPOINT,MULTICAST> metric 0 mtu 1500
> bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
>        ether 5e:e7:af:1b:14:d3
>        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
>        maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
>        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
> # ifconfig bridge0 addm tun0
> ifconfig: BRDGADD tun0: Invalid argument
> # ifconfig tun0 promisc
> # ifconfig bridge0 addm tun0
> ifconfig: BRDGADD tun0: Invalid argument
> 
> I have looked at
> http://lists.freebsd.org/pipermail/freebsd-net/2007-December/016114.html,
> but none of the three possibilities appear to apply. Any clues?
> 
> -Boris

- --
TJU13-ARIN
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLHocTAAoJEMSwVS7lr0OdjNoIALYvKyejl4py593xNQGt2Nj3
W5QWXuED+WecuoODdPlV4XFohPRAiwrSyETqapWyo1qwiJj2H1UtGL5jmHprAiJa
XrKkJBqN+dQpOcCGum4945wTjWJjxhETdgIVXB8uH3B1keuOJ2fltVC+R9KVDfiD
8aC2pSfm2yY4Unsu33X43Xwkbl9Ie9/i3O0KLdcC1IIvR6oW7/BaVYfho0gRGXPz
7s7xGodlEL3ack6MSXVSPurFhU8W17xfHT8IQZMmGJ8V8tpUqKLOq2Z3iOwTWXFj
hQNEJtUO9+wDsV7wanQuGD1vRqtnNQ6RqQgZeN/3qlNc5GG/Efx5uHk+oESJqoo=
=oV3n
-----END PGP SIGNATURE-----


More information about the freebsd-net mailing list