1. Homer-Server Interfaces and Switche Ports Mapping Table
ifconfig #Cable number To Switch
eth0 #01 SW1 Fa0/1
eth1 #07 SW2 Fa0/1
eth2 inet addr:192.168.100.201 Bcast:192.168.100.255 Mask:255.255.255.192
eth3 #02 SW1 Fa0/2
eth4 #08 SW2 Fa0/2
eth5 #03 SW1 Fa0/3
eth6 #09 SW2 Fa0/3
eth7 #04 SW1 Fa0/4
eth8 #09 SW2 Fa0/4
eth9 #05 SW1 Fa0/5
eth10 #11 SW2 Fa0/5
eth11 #06 SW1 Fa0/6
eth12 #12 SW2 Fa0/6
2.Switches Cabling topolgy
#Cable Number Switch - Switch
#01 SW1 0/09 - SW3 0/09
#02 SW1 0/10 - SW3 0/10
#03 SW1 0/11 - SW4 0/11
#04 SW1 0/12 - SW4 0/12
#05 SW1 0/13 - SW2 0/13
#06 SW1 0/14 - SW2 0/14
#07 SW2 0/09 - SW4 0/09
#08 SW2 0/10 - SW4 0/10
#09 SW2 0/11 - SW3 0/11
#10 SW2 0/12 - SW3 0/12
#11 SW3 0/13 - SW4 0/13
#12 SW3 0/14 - SW4 0/14
3. CCIE Lab Cabling Topology
4. My Netmap Setting:
peter@Home-Server:~/iou/lab/cisco360/lab01$ cat NETMAP
10:0/0@Home-Server 910:0/0@Home-Server
10:0/1@Home-Server 915:0/0@Home-Server
10:1/0 140:0/0
10:1/1 30:1/1
20:0/0@Home-Server 920:0/0@Home-Server
20:0/1@Home-Server 925:0/0@Home-Server
20:1/0 140:0/1
20:1/1 140:0/2
30:0/0@Home-Server 930:0/0@Home-Server
30:0/1@Home-Server 935:0/0@Home-Server
30:1/0 140:0/3
40:0/0@Home-Server 940:0/0@Home-Server
40:0/1@Home-Server 945:0/0@Home-Server
40:1/0 140:1/0
40:1/1 50:1/1
50:0/0@Home-Server 950:0/0@Home-Server
50:0/1@Home-Server 955:0/0@Home-Server
50:1/0 140:1/1
60:0/0@Home-Server 960:0/0@Home-Server
60:0/1@Home-Server 965:0/0@Home-Server
60:1/0 140:1/2
60:1/1 140:1/3
5. My iou2net.sh Setting:
peter@Home-Server:~/iou$ cat iou2net.sh
#!/bin/bash
#
# Creating 12 pseudo router:
# R910 eth0 -to- IOU router R1 0/0
# R915 eth1 -to- IOU router R1 0/1
# R920 eth3 -to- IOU router R2 0/0
# R925 eth4 -to- IOU router R2 0/1
# R930 eth5 -to- IOU router R3 0/0
# R935 eth6 -to- IOU router R3 0/1
# R940 eth7 -to- IOU router R4 0/0
# R945 eth8 -to- IOU router R4 0/1
# R950 eth9 -to- IOU router R5 0/0
# R955 eth10 -to- IOU router R5 0/1
# R960 eth11 -to- IOU router R6 0/0
# R965 eth12 -to- IOU router R6 0/1
#
# History:
# 2011/02/27 by Happy Peter
# http://blog.xuite.net/juilin77/happy
#
/home/peter/iou/iou2net.pl -i eth0 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 910 &
/home/peter/iou/iou2net.pl -i eth1 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 915 &
/home/peter/iou/iou2net.pl -i eth3 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 920 &
/home/peter/iou/iou2net.pl -i eth4 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 925 &
/home/peter/iou/iou2net.pl -i eth5 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 930 &
/home/peter/iou/iou2net.pl -i eth6 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 935 &
/home/peter/iou/iou2net.pl -i eth7 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 940 &
/home/peter/iou/iou2net.pl -i eth8 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 945 &
/home/peter/iou/iou2net.pl -i eth9 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 950 &
/home/peter/iou/iou2net.pl -i eth10 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 955 &
/home/peter/iou/iou2net.pl -i eth11 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 960 &
/home/peter/iou/iou2net.pl -i eth12 -n /home/peter/iou/lab/cisco360/lab01/NETMAP -p 965 &
6. My 360-01.sh Setting(Root):
peter@Home-Server:~/iou$ cat lab/cisco360/lab01/360-01.sh
#!/bin/bash
#
# Creating 7 routers:
# R10 (Port #2001): e0/0-3 s1/0-3
# R20 (Port #2002): e0/0-3 s1/0-3
# R30 (Port #2003): e0/0-3 s1/0-3
# R40 (Port #2004): e0/0-3 s1/0-3
# R50 (Port #2005): e0/0-3 s1/0-3
# R60 (Port #2006): e0/0-3 s1/0-3
# R140 (Port #2014): s0/0-3 s1/0-3 FRSW
#
# History:
# 2011/04/20 by Happy Peter
# http://blog.xuite.net/juilin77/happy
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#
#iourc Environment Variable
export IOURC=/home/peter/iou/iourc
#NETMAP Environment Variable
export NETIO_NETMAP=/home/peter/iou/lab/cisco360/lab01/NETMAP
#R10
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2001 -- -e 1 -s 1 10 &
sleep 5s
#R20
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2002 -- -e 1 -s 1 20 &
sleep 5s
#R30
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2003 -- -e 1 -s 1 30 &
sleep 5s
#R40
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2004 -- -e 1 -s 1 40 &
sleep 5s
#R50
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2005 -- -e 1 -s 1 50 &
sleep 5s
#R60
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2006 -- -e 1 -s 1 60 &
sleep 5s
#R110
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2011 -- -e 0 -s 2 140 &
sleep 5s
#
#Starting iou2net.sh
sudo sh /home/peter/iou/iou2net.sh
#
unset NETIO_NETMAP
#
unset IOURC
#Checking
exit 0
How to run this lab:
#start iou lab
sudo sh /home/peter/iou/lab/cisco360/lab01/360-01.sh
#Setting up a multi-tabbed GNOME-Terminal for CCIE Lab
http://blog.xuite.net/juilin77/happy/44167129
#stop iou lab
sudo sh /home/peter/iou/stopIOU.sh
Reference:
Cisco 360 Learning Program for CCIE
http://www.cisco.com/web/learning/le3/learning_cisco_360.html
最初發表 / 最後更新: 2011.04.18 / 2018.06.05
0 comments:
張貼留言