It is currently Thu Dec 13, 2018 11:33 pm


All times are UTC




Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Sun Mar 24, 2013 5:46 am 
Offline

Joined: Sat Mar 23, 2013 7:01 am
Posts: 14
Thanks again Jason. Really appreciate.

danviera2002




Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Mon Mar 25, 2013 2:36 am 
Offline

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

I connected my physical switch through the TAP interface to the cloud to confirm my set-up will work for the breakout switch. I tried to ping but all pings failed. I also did a "show cdp neigh" and I couldn't see the devices as neighbors.
I think I am still missing something, the tap0 is not listed as a member under bridge0. Below are some attachments for t/shooting, such as ifconfig and tcpdump:
Please I will need your help once more.

Thanks,
danviera2002


Attachments:
File comment: tcpdump
Screen Shot 2013-03-24 at 7.33.39 PM.png
Screen Shot 2013-03-24 at 7.33.39 PM.png [ 119.75 KiB | Viewed 5592 times ]
File comment: ifconfig
Screen Shot 2013-03-24 at 7.27.19 PM.png
Screen Shot 2013-03-24 at 7.27.19 PM.png [ 106.73 KiB | Viewed 5592 times ]
Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Mon Mar 25, 2013 3:35 am 
Offline

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

On OS X as soon as you close a GNS3 project that uses an NIO TAP Cloud, the tap interface disappears... *poof*

To have a working tap interface, you must meet these requirements:

1. You must a have a device connected to a GNS3 Cloud using /dev/tap0
2. You must then manually create the bridge and add your tap0 every time you start the project. - AFTER you start your project.

In short, copy and paste all the commands below to recreate the bridge and tap after you open your project.
sudo ifconfig bridge0 create
sudo ifconfig bridge0 up addm en0
sudo ifconfig bridge0 up addm tap0


If you see the bridge and tap interface using ifconfig, but you don't see you're tap interface under the bridge interface, use this line to add the tap.
sudo ifconfig bridge0 up addm tap0

I hope this helps clear things up.

-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: Mon Mar 25, 2013 4:12 am 
Offline

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

Like I told you yesterday, it won't take the "sudo ifconfig bridge0 up addm tap0" command. It returns "invalid argument" each time I apply the command and it recognizes the first two commands as "file exists".
I tried what you said anyway and it still did not attach tap0 as a member to the bridge0. The attachment is my screen capture. Please I really need help on this.

Thanks,
danviera2002


Attachments:
File comment: tap0, bridge0
Screen Shot 2013-03-24 at 9.04.12 PM.png
Screen Shot 2013-03-24 at 9.04.12 PM.png [ 316.52 KiB | Viewed 5588 times ]
Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Mon Mar 25, 2013 4:47 am 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
I'm out of resources. I can't duplicate it on any of my machines and I don't know why it won't add the tap interface to the bridge on your PC. Perhaps someone else has an idea.

<EDIT>
Reboot your MAC
Launch GNS3
Add the Cloud/tap and a router
Paste the commands in a terminal and see if it adds the tap interface to the bridge.

Maybe that will work?

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: Mon Mar 25, 2013 4:05 pm 
Offline

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

I thought perhaps it was your MTU setting. An MTU of 9000 is a rather large size and some NICS won't even go that high. I increased my MTU and I was still able to create the bridge on my PC. Your error is very odd, and if I can figure it out I'll certainly let you know.

One last thing you may want to check is that you're using the most recent tunatp drivers. Maybe you have an older version that has a bug.

As to your immediate problem; I recommend downlading VirtualBox and installing Ubuntu 10.04. You can install GNS3 on Ubuntu from source code and bypass the problem until you come up with a solution. Alternatively, you can try GNS3 WorkBench. It's pretty much ready to go after you add your IOS images.


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: Tue Mar 26, 2013 3:06 am 
Offline

Joined: Sat Mar 23, 2013 7:01 am
Posts: 14
Thanks Jason. I rebooted but I still could not add the tap0 as a member to the bridge. As for the MTU size I already reduced it to 1560. I downloaded the latest Tuntap driver from the website (tuntap_20111101).
Without GNS3 I should be able to create a bridge on MAC having tapX and en0 as my members but I can't even create that or what do you think?

-danviera2002


Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Tue Mar 26, 2013 4:13 am 
Offline

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

Yes. If you have an active Tap interface (one that shows up under ifconfig) you should be able to add it to a bridge using the commands I provided.

This isn't a GNS3 issue. It appears to be some sort of OS X issue.

-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: Tue Mar 26, 2013 6:26 am 
Offline

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

I get this when I try to add the tap0 interface:

abioduns-imac:~ Atilade$ sudo ifconfig bridge0 up addm tap0
ifconfig: BRDGADD tap0: No such file or directory

When I do "ls -l /dev/tap*" I can confirm the tap0 - 15:

abioduns-imac:~ Atilade$ ls -l /dev/tap*
crw-rw---- 1 root wheel 35, 0 Mar 25 18:54 /dev/tap0
crw-rw---- 1 root wheel 35, 1 Mar 25 18:54 /dev/tap1
crw-rw---- 1 root wheel 35, 10 Mar 25 18:54 /dev/tap10
crw-rw---- 1 root wheel 35, 11 Mar 25 18:54 /dev/tap11
crw-rw---- 1 root wheel 35, 12 Mar 25 18:54 /dev/tap12
crw-rw---- 1 root wheel 35, 13 Mar 25 18:54 /dev/tap13
crw-rw---- 1 root wheel 35, 14 Mar 25 18:54 /dev/tap14
crw-rw---- 1 root wheel 35, 15 Mar 25 18:54 /dev/tap15
crw-rw---- 1 root wheel 35, 2 Mar 25 18:54 /dev/tap2
crw-rw---- 1 root wheel 35, 3 Mar 25 18:54 /dev/tap3
crw-rw---- 1 root wheel 35, 4 Mar 25 18:54 /dev/tap4
crw-rw---- 1 root wheel 35, 5 Mar 25 18:54 /dev/tap5
crw-rw---- 1 root wheel 35, 6 Mar 25 18:54 /dev/tap6
crw-rw---- 1 root wheel 35, 7 Mar 25 18:54 /dev/tap7
crw-rw---- 1 root wheel 35, 8 Mar 25 18:54 /dev/tap8
crw-rw---- 1 root wheel 35, 9 Mar 25 18:54 /dev/tap9

Do you know why the OS X will have this issue?

Thanks,
Abi


Top
 Profile  
 
 Post subject: Re: Setting up a breakout switch on MAC
PostPosted: Tue Mar 26, 2013 2:43 pm 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
OS X does not allow you (as far as I know) to configure a persistant tap interface. A persistant Tap would always show up under ifconfig. In order for a tap interface to show up under ifconfig on OS X you must have a connection to a specific tap device (tap0 for example). That's why I had you create the cloud and add a device before configuring the tap earlier.

Another way to get a connection to a tap device is with the following command. It must be run as root, and the tap interface disappears when you exit the root shell.

sudo -s
exec 4<>/dev/tap0


Now when you type ifconfig you should see the TAP0 interface (until you type exit that is).

Personally, I'm beginning to think there's something goofy with your OS X installation, but I have no idea what it could be.

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 Previous  1, 2, 3, 4  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