Saturday, April 7, 2012

Setting Up Dynamips with Linux Central, and Windows Remote

I posted this on some guy's blog, here: http://chasingmyccie.wordpress.com/2012/01/28/how-to-build-a-ccie-rack-with-gns3-dynamips-part-4-connect-the-switches-to-the-gns3-server/

(Then, I realized, hey, this could be an article here!)

Here’s the topology file I used, might give you some ideas:

(I noticed I said to turn something off, but I put the setting on “true” hah, disregard)

How it works:
(1) stage directories, image files, and install dynamips/gns3 as required
(2) have script on Linux server to start the dynamips processes
(3) have script on Windows machines to start the remote dynamips processes
(4) run this topology file on the linux host

If you’ve enabled remote connect, you can remote to the box, and connect to the process there, OR … if you know the IP/port number combination, you can just telnet into the routers remotely.

Do … whatever works for you.

## Access server in GNS3
## IP Addresses
## 192.168.2.111 – Local Linux Server
## 192.168.2.33 – XP03
## 192.168.2.44 – X04
## Dynamips Ports
## Linux01: 7300, 7301 (for lab 3) 7400, 7401 (for lab 4)
## XPO3: 7200, 7201, 7202, 7203
## XP04: 7200, 7201, 7202, 7203
## UDP Ports:
## Linux01: 10300, 10350, 10400, 10450
## XP03: 13000, 13100, 13200, 13300
## XP04: 14000, 14100, 14200, 14300
## Directories:
## Linux01:
## working = /home/owner/gns3/working/lab3, /home/owner/gns3/working/lab4
## configs = /home/owner/gns3/configs/lab3, /home/owner/gns3/configs/lab4
## image = /home/owner/gns3/ios
## XP03:
## working = c:\gns3\working
## configs = c:\gns3\configs
## image = c:\gns3\ios
###########################################
##
## Do not automatically start the routers
##
#############################################
autostart = True

#################################
##
## This router keeps the switches up
## Switches must connect to at least one router
## Depending on your lab, this will not be a necessary step
## It worked OK for me, so I kept the switches
## Probably could have done without it, but once I got a working
## topology … you know how it is … :D
## Actually, the original idea was an access server, then I
## just decided I’d keep this one in every lab, to keep the switches
## “UP”
##
#######################

[192.168.2.111:7300]
workingdir = /home/owner/gns3/working/lab3
udp = 10300
[[3725]]
image = /home/owner/lab/ios/C3725-adventerprisek9-mz124-15.T7image.bin
ram = 128
idlepc = 0x60bf77a8
idlemax = 100
sparsemem = True
ghostios = True

[[ROUTER SK]]
model = 3725
console = 2000
cnfg = /home/owner/gns3/configs/lab3/SK.txt
slot 1 = NM-16ESW
f1/1 = R4F1 3
f1/2 = R3F1 3
f1/3 = R2F0 3
f1/4 = R1F0 3
f1/5 = R6F1 3
f1/6 = R5F1 3
f1/7 = R4F0 3
f1/8 = R3F0 3
f1/9 = BB2F0 3
f1/10 = BB3F0 3
f1/11 = R6F0 3
f1/12 = R5F0 3

#################################
##
## This server runs the switches that connect to the clouds.
##
#######################

[192.168.2.111:7301]
workingdir = /home/owner/gns3/working/lab3
udp = 10350

[[ETHSW R4F1]]
1 = access 1 nio_gen_eth:eth1
2 = access 1 R4 f0/1
3 = access 1 SK f1/1

[[ETHSW R3F1]]
1 = access 1 nio_gen_eth:eth2
2 = access 1 R3 f0/1
3 = access 1 SK f1/2

[[ETHSW R2F0]]
1 = access 1 nio_gen_eth:eth3
2 = access 1 R2 f0/0
3 = access 1 SK f1/3

[[ETHSW R1F0]]
1 = access 1 nio_gen_eth:eth4
2 = access 1 R1 f0/0
3 = access 1 SK f1/4

[[ETHSW R6F1]]
1 = access 1 nio_gen_eth:eth5
2 = access 1 R6 f0/1
3 = access 1 SK f1/5

[[ETHSW R5F1]]
1 = access 1 nio_gen_eth:eth6
2 = access 1 R5 f0/1
3 = access 1 SK f1/6

[[ETHSW R4F0]]
1 = access 1 nio_gen_eth:eth7
2 = access 1 R4 f0/0
3 = access 1 SK f1/7

[[ETHSW R3F0]]
1 = access 1 nio_gen_eth:eth8
2 = access 1 R3 f0/0
3 = access 1 SK f1/8

[[ETHSW BB2F0]]
1 = access 1 nio_gen_eth:eth9
2 = access 1 BB2 f0/0
3 = access 1 SK f1/9

[[ETHSW BB3F0]]
1 = access 1 nio_gen_eth:eth10
2 = access 1 BB3 f0/0
3 = access 1 SK f1/10

[[ETHSW R6F0]]
1 = access 1 nio_gen_eth:eth11
2 = access 1 R6 f0/0
3 = access 1 SK f1/11

[[ETHSW R5F0]]
1 = access 1 nio_gen_eth:eth12
2 = access 1 R5 f0/0
3 = access 1 SK f1/12

#################################
##
## Remote Windows XP Server
## Just finish connecting the interfaces
## and specifying the .bin files and idlepc
##
###############
##
## Hypervisor for FRS
##
###########################

[192.168.2.33:7200]
workingdir = c:\gns3\working
udp = 13000

[[3725]]
image = c:\gns3\ios\C3725-adventerprisek9-mz124-15.T7image.bin
ram = 128
idlepc = 0x60bf77a8
idlemax = 100
sparsemem = True
ghostios = True

[[ROUTER FRS]]
model = 3725
console = 2000
cnfg = c:\gns3\configs\FRS.txt
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s0/0 = R1 s0/0
s0/1 = R2 s0/0
s0/2 = R3 s1/0
s0/3 = R3 s1/1
s0/4 = R4 s0/0
s0/5 = R5 s0/0
slot 1 = NM-4T
s1/0 = R6 s0/0
s1/1 = BB1 s0/0

# Hypervisor #1 R1, R2, and R3

[192.168.2.33:7201]
workingdir = c:\gns3\working
udp = 13100

[[3725]]
image = c:\gns3\ios\C3725-adventerprisek9-mz124-15.T7image.bin
ram = 128
idlepc = 0x60bf77a8
idlemax = 100
sparsemem = True
ghostios = True

[[ROUTER R1]]
model = 3725
console = 2001
cnfg = c:\gns3\configs\R1.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s0/0 = FRS s0/0
s0/1 = R3 s1/2
f0/0 = R1F0 2

[[ROUTER R2]]
model = 3725
console = 2002
cnfg = c:\gns3\configs\R2.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s0/0 = FRS s0/1
s0/1 = R3 s1/3
f0/0 = R2F0 2

[[ROUTER R3]]
model = 3725
console = 2003
cnfg = c:\gns3\configs\R3.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s1/0 = FRS s0/2
s1/1 = FRS s0/3
s1/2 = R1 S0/1
S1/3 = R2 S0/1
f0/0 = R3F0 2
f0/1 = R3F1 2

# Hypervisor #2 – R4, R5, and R6
[192.168.2.33:7202]
workingdir = c:\gns3\working
udp = 13200

[[3725]]
image = c:\gns3\ios\C3725-adventerprisek9-mz124-15.T7image.bin
ram = 128
idlepc = 0x60bf77a8
idlemax = 100
sparsemem = True
ghostios = True

[[ROUTER R4]]
model = 3725
console = 2004
cnfg = c:\gns3\configs\R4.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s0/0 = FRS s0/4
s0/1 = R5 S0/1
f0/0 = R4F0 2
f0/1 = R4F1 2

[[ROUTER R5]]
model = 3725
console = 2005
cnfg = c:\gns3\configs\R5.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s0/0 = FRS s0/5
s0/1 = R4 S0/1
f0/0 = R5F0 2
f0/1 = R5F1 2

[[ROUTER R6]]
model = 3725
console = 2006
cnfg = c:\gns3\configs\R6.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s0/0 = FRS s1/0
f0/0 = R6F0 2
f0/1 = R6F1 2

# Hypervisor #3 – BB1,BB2, and BB3
[192.168.2.33:7203]
workingdir = c:\gns3\working
udp = 13300

[[3725]]
image = c:\gns3\ios\C3725-adventerprisek9-mz124-15.T7image.bin
ram = 128
idlepc = 0x60bf77a8
idlemax = 100
sparsemem = True
ghostios = True

[[ROUTER BB1]]
model = 3725
console = 2007
cnfg = c:\gns3\configs\BB1.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s0/0 = FRS s1/1
s0/1 = BB3 S0/0

[[ROUTER BB2]]
model = 3725
console = 2008
cnfg = c:\gns3\configs\BB2.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
f0/0 = BB2F0 2

[[ROUTER BB3]]
model = 3725
console = 2009
cnfg = c:\gns3\configs\BB3.txt
slot 1 = NM-4T
wic 0/0 = WIC-2T
wic 0/1 = WIC-2T
wic 0/2 = WIC-2T
s0/0 = BB1 S0/1
f0/0 = BB3F0 2

[GNS3-DATA]

[[CLOUD R4F1-ETH1]]
connection = R4F1:1:nio_gen_eth:eth1

[[CLOUD R3F1-ETH2]]
connection = R3F1:1:nio_gen_eth:eth2

[[CLOUD R2F0-ETH3]]
connection = R2F0:1:nio_gen_eth:eth3

[[CLOUD R1F0-ETH4]]
connection = R1F0:1:nio_gen_eth:eth4

[[CLOUD R6F1-ETH5]]
connection = R6F1:1:nio_gen_eth:eth5

[[CLOUD R5F1-ETH6]]
connection = R5F1:1:nio_gen_eth:eth6

[[CLOUD R4F0-ETH7]]
connection = R4F0:1:nio_gen_eth:eth7

[[CLOUD R3F0-ETH8]]
connection = R3F0:1:nio_gen_eth:eth8

[[CLOUD BB2F0-ETH9]]
connection = BB2F0:1:nio_gen_eth:eth9

[[CLOUD BB3F0-ETH10]]
connection = BB3F0:1:nio_gen_eth:eth10

[[CLOUD R6F0-ETH11]]
connection = R6F0:1:nio_gen_eth:eth11

[[CLOUD R5F0-ETH12]]
connection = R5F0:1:nio_gen_eth:eth12


=======================

As always, you know where you can reach me, Lewis Lampkin, III, on Linked In: http://www.linkedin.com/in/lewislampkin (I usually accept invitations to connect ... Am I better than anyone else? [The answer is NO, if you're wondering.]

Or here on this website: http://www.lewislampkin.com


3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. PMI’s Project Management Professional (PMP)® credential is the most important industry-recognized certification for project managers. Recently I went for a PMP prep course by the training provider you have mentioned, Instructer was too good and I passed with relative ease. Looking forwards to apply what I learned in PMP classes in my company.

    ReplyDelete
  3. I agree organizing systematically (ie, creating a process in place) is the most essential step. However, its easier said than done. Thats one area where its wise for small business to invest money on professional project management certifications like
    agile scrum certification courses.

    ReplyDelete