Wednesday, May 20, 2009

Lab mostly working

After spending a little time last night, I finally got the lab working. I was having some strange issues getting the ATM portion of the lab working (I was getting some errors about being unable to simulate the CPU stack or something).  This would cause some random hangs in my 7200 routers acting as the service provider (in the MPLS cloud) to the ATM network.  To correct this, I just removed the ATM components of the lab for now.

As of right now, I was able to get the entire lab up and running (minus the ATM components of course) and I have about half of the lab gear with a basic configuration.  The MPLS network is about half finished (just need to finsish the BGP configuration) and then get the rest of the frame relay network completed.

In order to get the lab working, I have created five dynamips instances.  Although I am using the 64-bit version of the code, I belive the multiple instances allows for the better CPU utilization as I see all of the CPUs being utilized.  Here is what I use for the 'startlab.sh' file that starts the lab:
#!/bin/sh

 
# Make the directory structures
mkdir -p /usr/local/src/lab
mkdir -p /usr/local/src/lab/7200
mkdir -p /usr/local/src/lab/7201
mkdir -p /usr/local/src/lab/7202
mkdir -p /usr/local/src/lab/7203
mkdir -p /usr/local/src/lab/7204 

# Starting dynamips instances
cd /usr/local/src/lab/7200
/usr/local/bin/dynamips -H 7200 > /usr/local/src/lab/7200.log.txt &

cd /usr/local/src/lab/7201
/usr/local/bin/dynamips -H 7201 > /usr/local/src/lab/7201.log.txt &

cd /usr/local/src/lab/7202
/usr/local/bin/dynamips -H 7202 > /usr/local/src/lab/7202.log.txt &

cd /usr/local/src/lab/7203
/usr/local/bin/dynamips -H 7203 > /usr/local/src/lab/7203.log.txt &

cd /usr/local/src/lab/7204
/usr/local/bin/dynamips -H 7204 > /usr/local/src/lab/7204.log.txt &

I use the hypervisors from 7200 to 7204 to split the load across the CPUs.  I had a difficult time getting them all going and stable because they were originally all trying to write to the same directories.  In order to get around this, I used the seperate directories for each of the hypervisors (along with seperate log files).

 I will try to get the configurations and the updated detailed diagram up soon.

No comments:

Post a Comment