It is currently Thu Dec 13, 2018 10:37 pm


All times are UTC




Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Solved! Setting up a breakout switch on MAC
PostPosted: Sat Mar 23, 2013 7:22 am 
Offline

Joined: Sat Mar 23, 2013 7:01 am
Posts: 14
I downloaded the new GNS# 0.8.4-RC2 hoping this would solve the problem I have been having. I use a MAC OS X Lion 10.8.3. I want to set up a breakout switch but I get these errors when I try to connect from the cloud to my physical switch (3750). I have had the same problem on previous GNS3 versions.
Once I plug in the straight-through cable from my computer to the switch, I get disconnected from the router with the below message:

connection closed by foreign host

If the cable is plugged before consoling into the router I get the below message:

lost connection to server localhost:7200

I need help fixing this and setting up my breakout switch using GNS3 on MAC.

Thanks,
danviera2002




Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sat Mar 23, 2013 3:56 pm 
Offline

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

This should get you started...

To get a physical connection from GNS3 to an OSX Mt Lion Ethernet adapter, you'll need to bridge your Mac's Ethernet adapter to a Tap interface.

Download and install tap drivers (tuntaposx.sourceforge.net).

Elevate permissions on dynamips.This allows connections to interfaces without running GNS3 as root.
$ sudo chown root /Applications/GNS3.app/Contents/Resources/dynamips*
$ sudo chmod 4755 /Applications/GNS3.app/Contents/Resources/dynamips*


Run these commands after you have attached a device to a Cloud node in GNS3. The Cloud should be configured with NIO TAP set to /dev/tap0. The act of connecting to the cloud activates the tap0 interface (so you can see it with ifconfig).

sudo ifconfig bridge0 create
sudo ifconfig bridge0 up addm en0
sudo ifconfig bridge0 up addm tap0



Best of luck,

Jason

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


Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sat Mar 23, 2013 11:10 pm 
Offline

Joined: Sat Mar 23, 2013 7:01 am
Posts: 14
Thanks Jason. I have downloaded and installed the tap driver but am not certain it was installed. Its not listed when I do "ifconfig" and I get this error "Malformed NIO" when I try to connect to the cloud in GNS3.

I was unable to connect to the cloud in short. I ran the last three commands in your solution but the last one "sudo ifconfig bridge0 up addm tap0" returned "ifconfig: BRDGADD tap0: No such file or directory".

I also did a "ls /dev/tun* and ls /dev/tap*" and it showed from tun0 -tun15 and tap0 - tap15.
Please what do you think am not doing right?

Thanks,
danviera2002


Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sun Mar 24, 2013 1:11 am 
Offline

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

<EDIT>
Oops. I misread your post.

I've never seen "Malformed NIO" and I am unable to duplicate it. Maybe post an image of your NIO TAP screen?

Remember, you won't see a Tap driver using ifconfig until after you successfully create a Cloud using NIO TAP configured with /dev/tap0 and connecting a GNS3 device to the Cloud. Also you must set dynamips permissions or run GNS3 as root.

It sounds like the TunTap drivers installed correctly, but you may want to unload and reload the module by hand to see if you get any errors:
sudo kextunload /Library/Extensions/tap.kext
sudo kextload /Library/Extensions/tap.kext



Best of luck,
Jason

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


Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sun Mar 24, 2013 2:49 am 
Offline

Joined: Sat Mar 23, 2013 7:01 am
Posts: 14
Jason,

I did unload and reload the module using the commands you sent me. I still have the error and sorry its Malformed NETIO, here is the screen capture as attachment.

Thanks,
danviera2002


Attachments:
File comment: NIO TAP interface on MAC error
Screen Shot 2013-03-23 at 7.44.01 PM.png
Screen Shot 2013-03-23 at 7.44.01 PM.png [ 25.77 KiB | Viewed 11163 times ]
Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sun Mar 24, 2013 3:17 am 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
Odd. I tried this on three separate Macs and can't duplicate the problem (two are on OS X 10.8.3). Can I see a screenshot of your NIO TAP Cloud configuration?

<EDIT>
I looked at the source code and it comes form the dynmips.py code. Try running GNS3 as root, and let me know if you get the same error.
sudo /Applications/GNS3.app/Contents/MacOS/GNS3

Still send me the NIO TAP config screenshot.

Thanks,
Jason

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


Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sun Mar 24, 2013 4:08 am 
Offline

Joined: Sat Mar 23, 2013 7:01 am
Posts: 14
Here are the 2 attachments before I added the tap int and after:

Thanks,
danviera2002


Attachments:
File comment: NIO TAP int add
Screen Shot 2013-03-23 at 9.04.48 PM.png
Screen Shot 2013-03-23 at 9.04.48 PM.png [ 74.35 KiB | Viewed 11153 times ]
File comment: NIO TAP tab
Screen Shot 2013-03-23 at 9.04.13 PM.png
Screen Shot 2013-03-23 at 9.04.13 PM.png [ 65.98 KiB | Viewed 11153 times ]
Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sun Mar 24, 2013 4:26 am 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
Aha. The TAP Interface field should only have /dev/tap0. That should fix you right up! :)

-Jason

Image

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


Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sun Mar 24, 2013 4:53 am 
Offline

Joined: Sat Mar 23, 2013 7:01 am
Posts: 14
Thanks Jason. It worked, You are good!!! I really appreciate. One more thing, the command "sudo ifconfig bridge0 up addm tap0" returned "ifconfig: BRDGADD tap0: Invalid argument". I was to console into the router anyway but I noticed my MTU size on the tap0 interface is 1500. How do I increase the MTU size if I need to?

Thanks,
danviera2002


Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sun Mar 24, 2013 5:03 am 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
Congratulations. I'm glad we could work it out.

By the way, on OS X, you'll have to add the bridge commands every time you load your project.

Regarding your error message; You will see that error if you attempt to add the tap interface to the bridge more than once.

After your GNS3 lab is loaded and a device is connected to the TAP interface, regular ifconfig commands can be used to control the behavior of a tap interface. To modify the MTU size on the interface, use the following example (replacing 1560 with your desired MTU size):

sudo ifconfig tap0 mtu 1560

For assistance with the ifconfig command, you can use the man page just as you would on any Unix-like system.

man ifconfig

Best of Luck

-Jason



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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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