GNS3 / ubridge

Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces.
GNU General Public License v3.0
115 stars 46 forks source link

ubridge 0.9.13 (GNS 2.1.11) doesn't work with tap interfaces on OS X #55

Closed mideoye closed 5 years ago

mideoye commented 5 years ago

Hi there,

It appears ubridge 0.9.13 is unable to detect and run tap interfaces for GNS 2.1.11 MacOS 10.14.2. I started GNS3 as root and when I set up a test project with a Cisco IOS router and cloud/tap interface on the local OS X, I get the following error when I attempt to connect the router to the cloud's tap interface:

Error while sending command 'bridge add_nio_tap 5c076a45-9514-4f40-996a-3cf29b80f03b-5 "/dev/tap4"': unable to create NIO TAP for bridge '5c076a45-9514-4f40-996a-3cf29b80f03b-5': uBridge version 0.9.13 running with libpcap version 1.8.1 -- Apple version 79.200.4 Hypervisor TCP control server started (IP 127.0.0.1 port 57658). UDP tunnel connecting from local port 10001 to IPv4 addresss 127.0.0.1 on port 10000 create_nio_tap: unable to open TAP device /dev/tap4 (No such file or directory)

screenshot 2019-01-12 at 00 27 17

Tap interface driver installed is tun tap and I've been able to manually bring up the tap interfaces and assign IPs for respective tap interfaces and it all works fine. So the issue appears to be with ubridge. Is this a known issue? Please is there a fix or workaround?

grossmj commented 5 years ago

It looks like /dev/tap4 doesn't exist in the screenshot. A workaround could be to just use tap4 in the cloud configuration and the TAP interface should automatically be created.

mideoye commented 5 years ago

Thanks a lot for your suggestion, that seems to work now and the tap interface came up. Stumbled on another issue now, while I'm able to ping the GNS3 router from OS X terminal via the tap interface, I'm unable to ping the tap interface from the perspective of the GNS3 router. I am also unable to ping the tap interface locally, are these observations normal?

Tap interface 10.0.0.2/30, GNS3 router 10.0.0.1/30

Ping tap int-->tap = fail ping tap int -->GNS3 router = success ping GNS3 router --> tap int = fail