GNS3
http://forum.gns3.net/

MacOS Tap driver in gns3v1
http://forum.gns3.net/topic11674.html
Page 1 of 2

Author:  gmgtxus [ Wed Aug 20, 2014 12:37 am ]
Post subject:  MacOS Tap driver in gns3v1

I confirmed that my tap driver works on the older gns3 version. But for some reason, it's not working in gns3v1 ERbeta1.

sudo ifconfig bridge0 addm tap0
ifconfig: BRDGADD tap0: No such file or directory

inside the GNS3v1, i dropped a cloud and under TAP, configured and added /dev/tap0. Connect tap0 to a 7200 and get an error -

=>Server error [-3200] from 127.0.0.1:7999: R1: unable to create TAP NIO


Does the cloud works or is it a bug?

Author:  grossmj [ Wed Aug 20, 2014 12:53 am ]
Post subject:  Re: MacOS Tap driver in gns3v1

Quote:
Does the cloud works or is it a bug?


Looks like it is a bug: topic11548.html

I have started investigating.

Author:  grossmj [ Wed Aug 20, 2014 1:01 am ]
Post subject:  Re: MacOS Tap driver in gns3v1

Hi,

I was able to make it work using the following steps:

Make sure Dynamips can create TAP interfaces:

Code:
sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dynamips


Then only use simple tap name (i.e. tap0) in the cloud settings, not /dev/tap0.

This should work.

Author:  gmgtxus [ Wed Aug 20, 2014 3:17 am ]
Post subject:  Re: MacOS Tap driver in gns3v1

Quote:
sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dynamips


sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dynamips
sudo: setcap: command not found


yeah, i'm still getting a server error [-3200]. Unable to create TAP NIO

I changed it to tap0, not /dev/tap0

Author:  grossmj [ Wed Aug 20, 2014 3:20 am ]
Post subject:  Re: MacOS Tap driver in gns3v1

I forgot you are on Mac OS X, so the setcap command is not there.

Try the following then:

Code:
sudo chown root dynamips
sudo chmod 4755 dynamips

Author:  Jason [ Wed Aug 20, 2014 5:27 pm ]
Post subject:  Re: MacOS Tap driver in gns3v1

Jeremy,

I reported a chown/cmod bug in OS X some time ago. See the following topic:

http://forum.gns3.net/topic11548.html

-Jason

Author:  gmgtxus [ Fri Aug 22, 2014 1:28 pm ]
Post subject:  Re: MacOS Tap driver in gns3v1

yeah, i got same error.

unable to create TAP NIO
Server error [-3200] : Could not connect to server : [Errno 61] Connection refused ..

Author:  grossmj [ Tue Aug 26, 2014 10:38 pm ]
Post subject:  Re: MacOS Tap driver in gns3v1

I haven't tested on OSX yet. I'll keep you updated.

Cheers,

Author:  mweisel [ Wed Aug 27, 2014 2:36 am ]
Post subject:  Re: MacOS Tap driver in gns3v1

I prefer the more secure method of changing the ownership of the TAP device files from root to yourself instead of giving Dynamips elevated privileges. Bug is gone. :)

Code:
sudo chown $(id -un):$(id -gn) /dev/tap*


Attachments:
XRv-2-L3IOU.png
XRv-2-L3IOU.png [ 130.39 KiB | Viewed 5473 times ]
XRv-console.png
XRv-console.png [ 118 KiB | Viewed 5473 times ]

Author:  gmgtxus [ Wed Sep 03, 2014 2:31 am ]
Post subject:  Re: MacOS Tap driver in gns3v1

Great thanks ... yes, it works now per your advise. Appreciated everyone's help.


R1#ping google.com repeat 20
Type escape sequence to abort.
Sending 20, 100-byte ICMP Echos to 173.224.96.42, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (20/20), round-trip min/avg/max = 4/5/6 ms
R1#

R1#sh ip int brie | exc unass
Interface IP-Address OK? Method Status Protocol
Ethernet0/0 10.10.0.119 YES DHCP up up

R1#sh ip route | b Gateway
Gateway of last resort is 10.10.0.1 to network 0.0.0.0

S* 0.0.0.0/0 [254/0] via 10.10.0.1
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.0.0/24 is directly connected, Ethernet0/0
L 10.10.0.119/32 is directly connected, Ethernet0/0
R1#

Attachments:
Screen Shot 2014-09-02 at 9.27.48 PM.png
Screen Shot 2014-09-02 at 9.27.48 PM.png [ 25.11 KiB | Viewed 5411 times ]

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/