OVH Cloud OVH Cloud

Probleme Interface Bridging

1 réponse
Avatar
teo
Bonjour a tous,
Je n'arrive pas a creer une interface Tap0 afin de l'utiliser en
bridging pour OpenVPN...

# sysctl -w net.link.ether.bridge.enable=1
net.link.ether.bridge.enable: 1 -> 1

# sysctl -w net.link.ether.bridge.config=tap0
net.link.ether.bridge.config: tap0 -> tap0

# ifconfig -C
lo pflog pfsync ppp gif faith

# ifconfig tap0 create
ifconfig: SIOCIFCREATE: Invalid argument

# uname -r
5.4-RELEASE-p8

Le kernel a bien ete compiler avec l'options BRIDGE... :s
Quelqu'un pourrait m'aider ?

1 réponse

Avatar
Jacques Caron
Salut,

On Tue, 27 Dec 2005 12:27:37 +0100, teo wrote:

Bonjour a tous,
Je n'arrive pas a creer une interface Tap0 afin de l'utiliser en
bridging pour OpenVPN...

# sysctl -w net.link.ether.bridge.enable=1
net.link.ether.bridge.enable: 1 -> 1

# sysctl -w net.link.ether.bridge.config=tap0
net.link.ether.bridge.config: tap0 -> tap0

# ifconfig -C
lo pflog pfsync ppp gif faith

# ifconfig tap0 create
ifconfig: SIOCIFCREATE: Invalid argument

# uname -r
5.4-RELEASE-p8


tap n'est pas une interface clonée mais créée à travers un ioctl sur
/dev/tap. Résultat, ça n'apparaît pas dans ifconfig -C et tu ne peux pas
utiliser ifconfig create. Mais openvpn se chargera de créer l'interface, à
condition d'avoir chargé if_tap au préalable (kldload if_tap, ou via
/usr/local/etc/rc.d/openvpn.sh start qui s'en charge si nécessaire).

Jacques.
--
Oxado http://www.oxado.com/