You are on page 1of 15

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

1 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

autostart = False
[localhost:7200]
workingdir = /tmp
udp = 10000
[[3725]]
image = /home/foo/GNS3/images/c3725-advipservicesk9-mz.124-15.T14-uncompressed.bin
ram = 256
ghostios = True
sparsemem = True
[[ROUTER R1]]
model = 3725
console = 2001
f0/0 = R3 f1/1
x = -362.0
y = -214.0
[[ROUTER R2]]
model = 3725
console = 2002
f0/0 = R3 f1/2
x = -119.0
y = -214.0
[[ROUTER R3]]
model = 3725
console = 2003
f1/1 = R1 f0/0
f1/2 = R2 f0/0
slot1 = NM-16ESW
x = -240.0
y = -17.0

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

2 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

sudo apt-get install vlan

sudo modprobe 8021q

sudo

sh -c 'grep -q 8021q /etc/modules || echo 8021q >> /etc/modules'

sudo ifconfig eth1 mtu 1536

/sbin/ifconfig eth1 mtu 1536 to your /etc/rc.local


OR
mtu 1536 to your eth1 interface under /etc/network/interfaces

autostart = False
[localhost:7200]

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

3 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

workingdir = /tmp
udp = 10000
[[3725]]
image = /home/foo/GNS3/images/c3725-advipservicesk9-mz.124-15.T14-uncompressed.bin
ram = 256
ghostios = True
sparsemem = True
[[ETHSW SW0]]
1 = access 101
! READ AS PORT 1 IS AN ACCESS PORT. VLAN 101
2 = access 102
! READ AS PORT 2 IS AN ACCESS PORT. VLAN 102
99 = dot1q 1 nio_linux_eth:eth1
! READ AS PORT 99 IS A TRUNK. ITS NATIVE VLAN IS VLAN 1. IT CONNECTS TO HOST
! ETH1 VIA A NIO_LINUX_ETH VIRTUAL/PHYSICAL ADAPTER
x = -234.5
y = -47.0
hx = 12.0
hy = -35.0
[[ROUTER R1]]
model = 3725
console = 2001
f0/0 = SW0 1
! READ AS F0/0 CONNECTS TO SW0 PORT 1
x = -362.0
y = -214.0
[[ROUTER R2]]
model = 3725
console = 2002
f0/0 = SW0 2
x = -119.0
y = -214.0
[GNS3-DATA]
! BELOW IS STRICTLY FOR GNS3 FOR VISUAL PURPOSES
[[Cloud C0]]
! MAKE ME A PRETTY CLOUD AND CALL IT C0
x = -274.5
y = 100.0
hx = 48.5
hy = -24.0
connections = SW0:99:nio_linux_eth:eth1
! THAT CLOUD WILL BIND SW0 PORT 99 TO HOST ETH1

hostname BREAKOUT-SWITCH-1
!
system mtu routing 1546
vtp mode transparent
!

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

4 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

!
vlan 101-102
!
!
interface FastEthernet1/0/1
description UP TO UBUNTU HOST
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 101-102
switchport mode trunk
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree portfast
!
interface FastEthernet1/0/13
description DOWN TO LAB-SWITCH-1 (gi0/13)
switchport access vlan 101
switchport mode dot1q-tunnel
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree portfast
!
interface FastEthernet1/0/14
description DOWN TO LAB-SWITCH-1 (gi0/14)
switchport access vlan 102
switchport mode dot1q-tunnel
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree portfast

R1#sho debug
CDP:
CDP packet info debugging is on
CDP events debugging is on
CDP neighbor info debugging is on
CDP IP info debugging is on
R1#
*Mar

1 00:33:27.839: CDP-IP: Cannot find stub network

*Mar

1 00:33:27.839: CDP-PA: version 2 packet sent out on FastEthernet0/0

*Mar

1 00:33:34.235: CDP-PA: Packet received from LAB-SWITCH-1 on interface FastEthernet0/0

*Mar

1 00:33:34.239: **Entry NOT found in cache**

*Mar

1 00:33:34.239: CDP-EV: Lookup for ip phone with idb= FastEthernet0/0 ip= 1.1.1.2

mac= 0019.06a8.b1c1 platform= cisco WS-C3560G-24TS


R1#
R1#
R1#sho cdp ne
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID

Local Intrfce

LAB-SWITCH-1

Fas 0/0

Holdtme
141

Capability
S I

Platform

Port ID

WS-C3560G Gig 0/13

R1#

Router-FE
|
Host-GE
|
BreakSW-FE
|
Lab-SW1-GE

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

5 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

autostart = False
[localhost:7200]
workingdir = /home/foo/GNS3/working
udp = 10000
[[7200]]
image = /home/foo/GNS3/images/c7200-jk9o3s-mz.124-25-uncompressed.bin
idlepc = 0x60678af0
ghostios = True
sparsemem = True
[[3640]]
chassis = 3640
disk0 = 32
image = /home/foo/GNS3/images/c3640-jk9s-mz.124-13a-uncompressed.bin
ram = 256
ghostios = True
sparsemem = True
idlepc = 0x607a012c
[[ROUTER R1]]
console = 2001
x = -599.040764008
y = -249.61731573
[[ROUTER R2]]
console = 2002
slot1 = PA-4T+
slot2 = PA-4T+
s1/0 = FRSW 2
s2/0 = R5 s2/0
x = -594.586355052
y = 166.881377145
[[ROUTER R4]]
console = 2004
slot0 = PA-4T+
s0/0 = FRSW 4
x = -599.326980614
y = -67.5875676485
[[ROUTER R5]]
console = 2005
slot1 = PA-4T+
slot2 = PA-4T+
s1/0 = FRSW 5
s2/0 = R2 s2/0
x = -413.582473102
y = 168.527112893
[[ROUTER R6]]
console = 2006
slot1 = PA-4T+
slot2 = PA-4T+
s1/0 = FRSW 6
s2/0 = R9 s2/0
s2/1 = R9 s2/1
x = -411.475729945
y = -58.4042176954
[[ROUTER R7]]
console = 2007
slot0 = PA-4T+
s0/0 = R8 s0/0
x = 99.8068941512
y = -143.60076707
[[ROUTER R8]]
console = 2008
slot0 = PA-4T+
s0/0 = R7 s0/0
x = 99.9323601145
y = 40.3514410148

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

6 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

[[ROUTER R9]]
console = 2009
slot2 = PA-4T+
s2/0 = R6 s2/0
s2/1 = R6 s2/1
x = -410.810872155
y = -242.328637006
[[ROUTER BB1]]
model = 3640
console = 2011
slot0 = NM-4E
x = -165.043722602
y = -158.154328933
[[ROUTER BB2]]
model = 3640
console = 2012
slot0 = NM-4E
x = -160.81412458
y = -40.6010542815
[[ROUTER BB3]]
model = 3640
console = 2013
slot0 = NM-4E
x = -155.040421025
y = 94.9776619695
[[FRSW FRSW]]
2:204 = 4:402
2:205 = 5:502
2:206 = 6:602
2:214 = 4:412
2:215 = 5:512
2:216 = 6:612
2:224 = 4:422
2:225 = 5:522
2:226 = 6:622
4:402 = 2:204
4:405 = 5:504
4:406 = 6:604
4:412 = 2:214
4:415 = 5:514
4:416 = 6:614
4:422 = 2:224
4:425 = 5:524
4:426 = 6:624
5:502 = 2:205
5:504 = 4:405
5:506 = 6:605
5:512 = 2:215
5:514 = 4:415
5:516 = 6:615
5:522 = 2:225
5:524 = 4:425
5:526 = 6:625
6:602 = 2:206
6:604 = 4:406
6:605 = 5:506
6:612 = 2:216
6:614 = 4:416
6:615 = 5:516
6:622 = 2:226
6:624 = 4:426
6:625 = 5:526
x = -498.492430622
y = 56.7107926745
[GNS3-DATA]
workdir = ../working

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

7 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

R1 0/0 v102 port 2


R1 0/1 v103 port 3
R2 0/0 v104 port 4
R2 0/1 v105 port 5
R4 0/0 v106 port 6
R4 0/1 v107 port 7
R5 0/0 v108 port 8
R5 0/1 v109 port 9
R6 0/0 v110 port 10
R6 0/1 v111 port 11
R7 0/0 v112 port 12
R7 0/1 v113 port 13
R8 0/0 v114 port 14
R8 0/1 v115 port 15
R9 0/0 v116 port 16
R9 0/1 v117 port 17
BB1 0/0 v 118 port 18
BB2 0/0 v119 port 19
BB3 0/0 v120 port 20

[[ETHSW SW0]]
2 = access 102
3= access 103
4= access 104
5= access 105
6= access 106
7= access 107
8= access 108
9= access 109
10= access 110
11= access 111
12= access 112
13= access 113
14= access 114
15= access 115
16= access 116
17= access 117
18= access 118
19= access 119
20= access 120
99 = dot1q 1 nio_linux_eth:eth1

autostart = False
[localhost:7200]
workingdir = /home/foo/GNS3/working
udp = 10000
[[7200]]
image = /home/foo/GNS3/images/c7200-jk9o3s-mz.124-25-uncompressed.bin
idlepc = 0x60678af0
ghostios = True
sparsemem = True
[[3640]]
chassis = 3640
disk0 = 32
image = /home/foo/GNS3/images/c3640-jk9s-mz.124-13a-uncompressed.bin
ram = 256
ghostios = True
sparsemem = True
idlepc = 0x607a012c
[[ROUTER R1]]
console = 2001
f0/0 = SW0 2
f0/1 = SW0 3
x = -599.040764008
y = -249.61731573
[[ROUTER R2]]

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

8 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

console = 2002
f0/0 = SW0 4
! SEND ALL TRAFFIC FROM Fa0/0 TO PORT 4 ON THE VSWITCH. R2 KNOWS NOTHING OF ANY
! VLANS OR TAGGING.
f0/1 = SW0 5
slot1 = PA-4T+
slot2 = PA-4T+
s1/0 = FRSW 2
s2/0 = R5 s2/0
x = -594.586355052
y = 166.881377145
[[ROUTER R4]]
console = 2004
f0/0 = SW0 6
f0/1 = SW0 7
slot0 = PA-4T+
s0/0 = FRSW 4
x = -599.326980614
y = -67.5875676485
[[ROUTER R5]]
console = 2005
f0/0 = SW0 8
f0/1 = SW0 9
slot1 = PA-4T+
slot2 = PA-4T+
s1/0 = FRSW 5
s2/0 = R2 s2/0
x = -413.582473102
y = 168.527112893
[[ROUTER R6]]
console = 2006
f0/0 = SW0 10
f0/1 = SW0 11
slot1 = PA-4T+
slot2 = PA-4T+
s1/0 = FRSW 6
s2/0 = R9 s2/0
s2/1 = R9 s2/1
x = -411.475729945
y = -58.4042176954
[[ROUTER R7]]
console = 2007
f0/0 = SW0 12
f0/1 = SW0 13
slot0 = PA-4T+
s0/0 = R08 s0/0
x = 99.8068941512
y = -143.60076707
[[ROUTER R8]]
console = 2008
f0/0 = SW0 14
f0/1 = SW0 15
slot0 = PA-4T+
s0/0 = R7 s0/0
x = 99.9323601145
y = 40.3514410148
[[ROUTER R9]]
console = 2009
f0/0 = SW0 16
f0/1 = SW0 17
slot2 = PA-4T+
s2/0 = R6 s2/0
s2/1 = R6 s2/1
x = -410.810872155
y = -242.328637006
[[ROUTER BB1]]
model = 3640
console = 2011
slot0 = NM-4E
f0/0 = SW0 18
x = -165.043722602
y = -158.154328933
[[ROUTER BB2]]
model = 3640
console = 2012
slot0 = NM-4E
f0/0 = SW0 19
x = -160.81412458
y = -40.6010542815
[[ROUTER BB3]]
model = 3640
console = 2013
slot0 = NM-4E
f0/0 = SW0 20
x = -155.040421025
y = 94.9776619695
[[ETHSW SW0]]
1 = access 101
2 = access 102
3 = access 103
4 = access 104
! ON THE VSWITCH, THE CONNECTION IS RECEIVED AND A TAG IS APPLIED

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

9 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

5 = access 105
6 = access 106
7 = access 107
8 = access 108
9 = access 109
10 = access 110
11 = access 111
12 = access 112
13 = access 113
14 = access 114
15 = access 115
16 = access 116
17 = access 117
18 = access 118
19 = access 119
20 = access 120
99 = dot1q 1 nio_linux_eth:eth1
! THAT TAGGED TRAFFIC IS DUMPED TO THIS TRUNK PORT, THEN FED TO HOST ETH1,
! THEN OFF TO YOUR BREAKOUT SWITCH WITH THE TAG STILL APPLIED.
x = -246.5
y = -269.0
[[FRSW FRSW]]
2:204 = 4:402
2:205 = 5:502
2:206 = 6:602
2:214 = 4:412
2:215 = 5:512
2:216 = 6:612
2:224 = 4:422
2:225 = 5:522
2:226 = 6:622
4:402 = 2:204
4:405 = 5:504
4:406 = 6:604
4:412 = 2:214
4:415 = 5:514
4:416 = 6:614
4:422 = 2:224
4:425 = 5:524
4:426 = 6:624
5:502 = 2:205
5:504 = 4:405
5:506 = 6:605
5:512 = 2:215
5:514 = 4:415
5:516 = 6:615
5:522 = 2:225
5:524 = 4:425
5:526 = 6:625
6:602 = 2:206
6:604 = 4:406
6:605 = 5:506
6:612 = 2:216
6:614 = 4:416
6:615 = 5:516
6:622 = 2:226
6:624 = 4:426
6:625 = 5:526
x = -498.492430622
y = 56.7107926745
[GNS3-DATA]
workdir = ../working
[[Cloud C0]]
x = -54.5
y = -285.0
connections = SW0:99:nio_linux_eth:eth1

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

10 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

!
hostname BREAKOUT-SWITCH-1
!
system mtu routing 1546
vtp mode transparent
!
!
vlan 102-120
!
!
interface FastEthernet1/0/1
description UP TO UBUNTU HOST
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 102-120
! ALL THE TAGGED FRAMES ARE RECEIVED HERE AND PROCESSED PROPERLY ACCORDING TO THE CONFIG
switchport mode trunk
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree portfast
no shut
!
interface range fa1/0/2 21
no cdp enable
spanning-tree portfast
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
switchport mode dot1q-tunnel
no shut
!
interface FastEthernet1/0/2
description GNS3-R1-Fa0/0 To Physical Switch Cat1-Fa0/1
switchport access vlan 102
! THE VLAN TAG IS STRIPPED HERE BEFORE BEING DUMPED TO THE DOWNSTREAM
! LAB SWITCH. SO THE LAB SWITCH NEVER SEES ANYTHING ODD!
!
interface FastEthernet1/0/3
description GNS3-R1-Fa0/1 To Physical Switch Cat2-Fa0/1
switchport access vlan 103
!
interface FastEthernet1/0/4
description GNS3-R2-Fa0/0 To Physical Switch Cat1-Fa0/2
switchport access vlan 104
!
interface FastEthernet1/0/5
description GNS3-R2-Fa0/1 To Physical Switch Cat2-Fa0/2
switchport access vlan 105
!
interface FastEthernet1/0/6
description GNS3-R4-Fa0/0 To Physical Switch Cat1-Fa0/4
switchport access vlan 106
!
interface FastEthernet1/0/7
description GNS3-R4-Fa0/1 To Physical Switch Cat3-Fa0/4
switchport access vlan 107
!
interface FastEthernet1/0/8
description GNS3-R5-Fa0/0 To Physical Switch Cat1-Fa0/5
switchport access vlan 108
!
interface FastEthernet1/0/9
description GNS3-R5-Fa0/1 To Physical Switch Cat3-Fa0/5
switchport access vlan 109
!
interface FastEthernet1/0/10
description GNS3-R6-Fa0/0 To Physical Switch Cat2-Fa0/6
switchport access vlan 110
!
interface FastEthernet1/0/11
description GNS3-R6-Fa0/1 To Physical Switch Cat4-Fa0/6
switchport access vlan 111
!
interface FastEthernet1/0/12
description GNS3-R7-Fa0/0 To Physical Switch Cat2-Fa0/7
switchport access vlan 112
!
interface FastEthernet1/0/13
description GNS3-R7-Fa0/1 To Physical Switch Cat4-Fa0/7
switchport access vlan 113
!
interface FastEthernet1/0/14
description GNS3-R8-Fa0/0 To Physical Switch Cat2-Fa0/8

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

11 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

switchport access vlan 114


!
interface FastEthernet1/0/15
description GNS3-R8-Fa0/1 To Physical Switch Cat4-Fa0/8
switchport access vlan 115
!
interface FastEthernet1/0/16
description GNS3-R9-Fa0/0 To Physical Switch Cat2-Fa0/9
switchport access vlan 116
!
interface FastEthernet1/0/17
description GNS3-R9-Fa0/1 To Physical Switch Cat4-Fa0/9
switchport access vlan 117
!
interface FastEthernet1/0/18
description GNS3-BB1-E0/0 To Physical Switch Cat1-Fa0/11
switchport access vlan 118
!
interface FastEthernet1/0/19
description GNS3-BB2-E0/0 To Physical Switch Cat2-Fa0/12
switchport access vlan 119
!
interface FastEthernet1/0/20
description GNS3-BB3-E0/0 To Physical Switch Cat2-Fa0/13
switchport access vlan 120
!

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

12 of 15

Tweet

Like

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

13 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

14 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

5/26/2015 12:34 AM

GNS3 AND PHYSICAL SWITCHES Breakout Switch | CCIE Blog | ...

15 of 15

http://blog.ipexpert.com/gns3-and-physical-switches-breakout-switch/

5/26/2015 12:34 AM

You might also like