Cisco IOU 可原生在Linux 上运行,Dynamips通过模拟相对应的硬件来执行CISCO IOS。 所以从性能上讲IOU比Dynamips要快很多。

目前网上可以找到的IOU只有路由版的(L3IOU),L2IOU仅在网上有视频放出。

 

IOU支持的接口类型只有Ethernet和Serial。 不支持ATM模块。

用IOU做实验,笔记本的CPU 风扇再也没狂转过。。。。

 

 

------------------启动脚本(修改自flyxj的CCIE TS脚本)-----------

#!/bin/bash
#
export NETIO_NETMAP=./NETMAP
port=2000
for ((i=1;i<=8;i++)) ;do
dport=`expr $port + $i`

#$i 是instance ID ,拓扑图中使用instance ID来描述设备

#R1-R8 分配4个Ethernet 接口 以及 4个Serial 接口
  ../wrapper-linux -m ../i86bi_linux-adventerprisek9-ms -p $dport -- -e 1 -s 1 -n 1024 -m 128 -R -U $i &
done

# 帧中继交换机端口使用2009, 分配16个Serial口及16个Ethernet口

# Ethernet 设备比Serial 设备号靠前,结束Ethernet以后才是Serial

# Ethernet: e0/0  --- e3/3    Serial: s4/0  --- s 7/3

../wrapper-linux -m ../i86bi_linux-adventerprisek9-ms -p 2009 -- -e 4 -s 4 -n 1024 -m 128 -R -U 9 &
unset NETIO_NETMAP
----------------------------结束  启动脚本-----------------------------

 

 

 

例: 8:0/0 9:1/3           instance id 8的  e 0/0 口链接 instance id 9的 e 1/3 口

     7:1/1 8:1/0           instance id 7的 s 1/1 口链接instance id 8的 s1/0口

 

 

--------------------------NETMAP拓扑图文件内容--------------------

1:1/1 2:1/0
2:1/1 3:1/0
3:1/1 4:1/0
4:1/1 5:1/0
5:1/1 6:1/0
6:1/1 7:1/0
7:1/1 8:1/0
1:0/0 9:0/0
2:0/0 9:0/1
3:0/0 9:0/2
4:0/0 9:0/3
5:0/0 9:1/0
6:0/0 9:1/1
7:0/0 9:1/2
8:0/0 9:1/3
1:1/2 9:4/0
2:1/2 9:4/1
3:1/2 9:4/2
4:1/2 9:4/3
5:1/2 9:5/0
6:1/2 9:5/1
7:1/2 9:5/2
8:1/2 9:5/3
--------------------------结束-NETMAP拓扑图文件内容--------------

 

-------------------帧中继交换机及以太网交换机(用一台设备模拟)---------------------

FRSW(config)#do show run
Building configuration...

Current configuration : 5867 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname FRSW
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
clock timezone EST -5
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip source-route
!
!
!        
!
ip cef
no ipv6 traffic interface-statistics
no ipv6 cef
!
frame-relay switching
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
bridge irb
!
!
!
!
interface Ethernet0/0
 no ip address
 bridge-group 1
 bridge-group 1 spanning-disabled
!
interface Ethernet0/1
 no ip address
 bridge-group 1
 bridge-group 1 spanning-disabled
!
interface Ethernet0/2
 no ip address
 bridge-group 1
 bridge-group 1 spanning-disabled
!
interface Ethernet0/3
 no ip address
 bridge-group 1
 bridge-group 1 spanning-disabled
!
interface Ethernet1/0
 no ip address
 bridge-group 1
 bridge-group 1 spanning-disabled
!
interface Ethernet1/1
 no ip address
 bridge-group 1
 bridge-group 1 spanning-disabled
!
interface Ethernet1/2
 no ip address
 bridge-group 1
 bridge-group 1 spanning-disabled
!
interface Ethernet1/3
 no ip address
 bridge-group 1
 bridge-group 1 spanning-disabled
!
interface Ethernet2/0
 no ip address
 shutdown
!
interface Ethernet2/1
 no ip address
 shutdown
!
interface Ethernet2/2
 no ip address
 shutdown
!
interface Ethernet2/3
 no ip address
 shutdown
!
interface Ethernet3/0
 no ip address
 shutdown
!
interface Ethernet3/1
 no ip address
 shutdown
!
interface Ethernet3/2
 no ip address
 shutdown
!
interface Ethernet3/3
 no ip address
 shutdown
!
interface Serial4/0
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 frame-relay intf-type dce
 frame-relay route 102 interface Serial4/1 201
 frame-relay route 103 interface Serial4/2 301
 frame-relay route 104 interface Serial4/3 401
 frame-relay route 105 interface Serial5/0 501
 frame-relay route 106 interface Serial5/1 601
 frame-relay route 107 interface Serial5/2 701
 frame-relay route 108 interface Serial5/3 801
!
interface Serial4/1
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 frame-relay intf-type dce
 frame-relay route 201 interface Serial4/0 102
 frame-relay route 203 interface Serial4/2 302
 frame-relay route 204 interface Serial4/3 402
 frame-relay route 205 interface Serial5/0 502
 frame-relay route 206 interface Serial5/1 602
 frame-relay route 207 interface Serial5/2 702
 frame-relay route 208 interface Serial5/3 802
!
interface Serial4/2
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 frame-relay intf-type dce
 frame-relay route 301 interface Serial4/0 103
 frame-relay route 302 interface Serial4/1 203
 frame-relay route 304 interface Serial4/3 403
 frame-relay route 305 interface Serial5/0 503
 frame-relay route 306 interface Serial5/1 603
 frame-relay route 307 interface Serial5/2 703
 frame-relay route 308 interface Serial5/3 803
!        
interface Serial4/3
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 frame-relay intf-type dce
 frame-relay route 401 interface Serial4/0 104
 frame-relay route 402 interface Serial4/1 204
 frame-relay route 403 interface Serial4/2 304
 frame-relay route 405 interface Serial5/0 504
 frame-relay route 406 interface Serial5/1 604
 frame-relay route 407 interface Serial5/2 704
 frame-relay route 408 interface Serial5/3 804
!
interface Serial5/0
 no ip address
 encapsulation frame-relay
 no fair-queue
 serial restart-delay 0
 frame-relay intf-type dce
 frame-relay route 501 interface Serial4/0 105
 frame-relay route 502 interface Serial4/1 205
 frame-relay route 503 interface Serial4/2 305
 frame-relay route 504 interface Serial4/3 405
 frame-relay route 506 interface Serial5/1 605
 frame-relay route 507 interface Serial5/2 705
 frame-relay route 508 interface Serial5/3 805
!
interface Serial5/1
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 frame-relay intf-type dce
 frame-relay route 601 interface Serial4/0 106
 frame-relay route 602 interface Serial4/1 206
 frame-relay route 603 interface Serial4/2 306
 frame-relay route 604 interface Serial4/3 406
 frame-relay route 605 interface Serial5/0 506
 frame-relay route 607 interface Serial5/2 706
 frame-relay route 608 interface Serial5/3 806
!
interface Serial5/2
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 frame-relay intf-type dce
 frame-relay route 701 interface Serial4/0 107
 frame-relay route 702 interface Serial4/1 207
 frame-relay route 703 interface Serial4/2 307
 frame-relay route 704 interface Serial4/3 407
 frame-relay route 705 interface Serial5/0 507
 frame-relay route 706 interface Serial5/1 607
 frame-relay route 708 interface Serial5/3 807
!
interface Serial5/3
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 frame-relay intf-type dce
 frame-relay route 801 interface Serial4/0 108
 frame-relay route 802 interface Serial4/1 208
 frame-relay route 803 interface Serial4/2 308
 frame-relay route 804 interface Serial4/3 408
 frame-relay route 805 interface Serial5/0 508
 frame-relay route 806 interface Serial5/1 608
 frame-relay route 807 interface Serial5/2 708
!
interface Serial6/0
 no ip address
 serial restart-delay 0
!
interface Serial6/1
 no ip address
 serial restart-delay 0
!
interface Serial6/2
 no ip address
 serial restart-delay 0
!
interface Serial6/3
 no ip address
 serial restart-delay 0
!
interface Serial7/0
 no ip address
 serial restart-delay 0
!
interface Serial7/1
 no ip address
 serial restart-delay 0
!
interface Serial7/2
 no ip address
 serial restart-delay 0
!
interface Serial7/3
 no ip address
 serial restart-delay 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
control-plane
!
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
exception data-corruption buffer truncate
end

FRSW(config)#
----------------------------------------------------------

Logo

更多推荐