It is currently Tue Jul 23, 2019 4:11 pm


All times are UTC




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: MacOS Tap driver in gns3v1
PostPosted: Wed Aug 20, 2014 12:37 am 
Offline

Joined: Sun Nov 29, 2009 5:22 am
Posts: 47
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?




Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Wed Aug 20, 2014 12:53 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Quote:
Does the cloud works or is it a bug?


Looks like it is a bug: topic11548.html

I have started investigating.

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Wed Aug 20, 2014 1:01 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
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.

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Wed Aug 20, 2014 3:17 am 
Offline

Joined: Sun Nov 29, 2009 5:22 am
Posts: 47
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


Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Wed Aug 20, 2014 3:20 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
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

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Wed Aug 20, 2014 5:27 pm 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
Jeremy,

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

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

-Jason

_________________
J.Neumann, GNS3 Contributor & Forum Moderator (Minion ID: sin.zx81.1981ad)
Author: Cisco Routers for Small Business (Apress)


Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Fri Aug 22, 2014 1:28 pm 
Offline

Joined: Sun Nov 29, 2009 5:22 am
Posts: 47
yeah, i got same error.

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


Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Tue Aug 26, 2014 10:38 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
I haven't tested on OSX yet. I'll keep you updated.

Cheers,

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Wed Aug 27, 2014 2:36 am 
Offline

Joined: Fri May 13, 2011 10:35 pm
Posts: 83
Location: Seattle, WA (USA)
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 4475 times ]
XRv-console.png
XRv-console.png [ 118 KiB | Viewed 4475 times ]

_________________
http://binarynature.blogspot.com/search/label/GNS3
Top
 Profile  
 
 Post subject: Re: MacOS Tap driver in gns3v1
PostPosted: Wed Sep 03, 2014 2:31 am 
Offline

Joined: Sun Nov 29, 2009 5:22 am
Posts: 47
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 4413 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO