Cisco L2L3 IOU搭建拓扑图

Cisco L2L3  IOU搭建拓扑图


一、Cisco IOU安装完成后我们怎么使用来布置自己所需要的网络拓扑图呢?下面我将使用IOU部署如下图一样的网络环境:

wKioL1NPnqfC_xpAAAFIdL_YxmY636.jpg

二、开始使用IOU搭建如上的网络环境:

2.1、查看使用的文件:

root@RSJL2L3IOU:~# pwd

/root

root@RSJL2L3IOU:~# ls

i86bi_linux-adventerprisek9-ms   i86bi_linuxl2-upk9-ms          

wrapper-linux  i86bi_linux-ipbase-ms  i86bi_linux-tpgen+ipbase-ms  


2.2、创建一个文件夹,然后编辑一个Router启动文件:

root@RSJL2L3IOU:~# mkdir cisco_01

root@RSJL2L3IOU:~# cd cisco_01/

root@RSJL2L3IOU:~/cisco_01# vimRouter01

#!/bin/bash

#

../wrapper-linux -m../i86bi_linux-adventerprisek9-ms -p 3001 -- 1 > /dev/null 2>&1 &sleep 5

echo ""

echo "* -----------------*"

echo "| Router01started! |"

echo "*------   ----------*"

echo ""


2.3、当一个Router编辑完成后,我们cp另外几个Router

root@RSJL2L3IOU:~/cisco_01# cpRouter01 Router02

root@RSJL2L3IOU:~/cisco_01# cpRouter01 Router03

root@RSJL2L3IOU:~/cisco_01# cpRouter01 Router04

root@RSJL2L3IOU:~/cisco_01# cpRouter01 Router05

root@RSJL2L3IOU:~/cisco_01# cpRouter01 Router06


2.4、然后修改每个文件的端口号:

root@RSJL2L3IOU:~/cisco_01# vimRouter02

#!/bin/bash

#

../wrapper-linux -m../i86bi_linux-adventerprisek9-ms -p 3002 -- 2 > /dev/null 2>&1 & sleep 5

echo ""

echo "* -----------------*"

echo "|Router02 started! |"

echo "*------   ----------*"

echo ""

《参照这个例子更改其它的Router文件。》


2.5Router文件完成后,我们开始配置Switch文件:

root@RSJL2L3IOU:~/cisco_01# vimSwitch01

#!/bin/bash

#

../wrapper-linux -m../i86bi_linuxl2-upk9-ms -p 3051 -- -s 0 51 > /dev/null 2>&1 &sleep 5

echo ""

echo"*-------------------*"

echo "| Switch01 started!|"

echo"*-------------------*"

echo ""


2.6、配置好一个Switch文件后,我们开始配置另外一个Switch

root@RSJL2L3IOU:~/cisco_01# cpSwitch01 Switch02

root@RSJL2L3IOU:~/cisco_01# vimSwitch02

#!/bin/bash

#

../wrapper-linux -m../i86bi_linuxl2-upk9-ms -p3052 -- -s 0 52 > /dev/null 2>&1 & sleep 5

echo ""

echo"*-------------------*"

echo "| Switch02 started! |"

echo"*-------------------*"

echo ""


2.7、然后赋予所有文件执行权限:

root@RSJL2L3IOU:~/cisco_01# chmod+x *

到这里所需要的路由器和交换机都配置完成了:


三、配置路由器与交换机的连接:

root@RSJL2L3IOU:~/cisco_01# vimNETMAP

1:0/0 51:0/0

2:0/0 51:0/1

4:0/0 51:0/2

5:0/0 51:0/3


2:0/1 52:0/0

3:0/0 52:0/1

5:0/1 52:0/2

6:0/0 52:0/3


四、然后编辑NETMAP文件的内容:

root@RSJL2L3IOU:~/cisco01# vimiourc

[license]

RSJL2L3IOU = 49eccf1d9b4565be;


五、然后编辑show文件,这里不详细说明了。








你可能感兴趣的:(Cisco,L2L3,IOU搭建拓扑图)