按照我们的TOPO,SW1的FA0/0和SW2的FA0/0相连. SW1的FA1/15连PC1,SW2的FA1/15连PC2.连接成功后直接生成BAT.
BAT已经生成了.然后我们依次运行.
在SCRT中分别设置SW1,SW2,PC1,PC2,对应的端口依次为2001,2002,2003,2004.
上述BAT配置用.NET写法如下:
autostart = false
[localhost]
port = 7200
udp = 10000
[[router SW1]]
image = D:\cisco lab\Dynamips for CCNP-BSCI\dynamips\c2691-m-z.12.3-12a.bin
model = 2691
console = 3001
ram = 48
confreg = 0x2142
idlepc = 0x60468770
exec_area = 64
mmap = true
slot1 = NM-16ESW
f1/0 = PC1 fa0/0
f1/15 = SW2 fa1/15
[[router SW2]]
image = D:\cisco lab\Dynamips for CCNP-BSCI\dynamips\c2691-m-z.12.3-12a.bin
model = 2691
console = 3002
ram = 48
confreg = 0x2142
idlepc = 0x60468770
exec_area = 64
mmap = true
slot1 = NM-16ESW
fa1/0 = PC2 fa0/0
[[router PC1]]
image = D:\cisco lab\Dynamips for CCNP-BSCI\dynamips\c2691-m-z.12.3-12a.bin
model = 2691
console = 3003
ram = 48
confreg = 0x2142
idlepc = 0x60468770
exec_area = 64
mmap = true
[[router PC2]]
image = D:\cisco lab\Dynamips for CCNP-BSCI\dynamips\c2691-m-z.12.3-12a.bin
model = 2691
console = 3004
ram = 48
confreg = 0x2142
idlepc = 0x60468770
exec_area = 64
mmap = true
配置完成后,我们来基于这个TOPO来配置一个简单的交换实验.
下面是一些基本配置.
SW1
vlan database
vlan 10 name test10
vlan 20 name test20
vlan 100 name test100
exit
ip routing
interface FastEthernet1/0
switchport access vlan 10
duplex full
speed 100
interface FastEthernet1/15
switchport access vlan 100
switchport mode trunk
interface Vlan10
ip address 192.168.1.1 255.255.255.0
interface Vlan100
ip address 10.1.1.1 255.255.255.0
router eigrp 1
network 0.0.0.0
no auto-summary
SW2
vlan database
vlan 10 name test10
vlan 20 name test20
vlan 100 name test100
exit
ip routing
interface FastEthernet1/0
switchport access vlan 20
duplex full
speed 100
interface FastEthernet1/15
switchport access vlan 100
switchport mode trunk
interface Vlan20
ip address 192.168.2.1 255.255.255.0
interface Vlan100
ip address 10.1.1.2 255.255.255.0
router eigrp 1
network 0.0.0.0
no auto-summary
PC1
no ip routing
interface fastethernet0/0
ip add 192.168.1.2 255.255.255.0
no shu
ip default-gateway 192.168.1.1
PC2
no ip routing
interface fastethernet0/0
ip add 192.168.2.2 255.255.255.0
no hsu
ip default-gateway 192.168.2.1
经过以上配置后,在PC2上PING结果
PC2#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/50/96 ms
PC2#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/82/116 ms
到此为之,利用Dynamips加载NM-16ESW做一个简单的VLAN实验已经成功.
注意: 在NM-16ESW模块做交换实验,划VLAN,起生成树,SVI,routed port都可以,但是依然有一些不足。
1、端口安全
2、RSTP
3、MSTP
4、pVLAN
5、routed port不支持DHCP
6、不支持子接口
能插NM-16ESW的路由器有26xx、36xx、3725、3745但是对ios又要求必须是12.2(15)ZJ 和 12.3(4)T版本的ios才支持在接口上定义ip地址。也就是支持no switchport(划到三层上)。而且16esw板上的以太口不支持子接口。不能接收dhcp地址。
如果您还有什么疑问到到我的BLOG http://www.ciscovista.cn 或是我们的论坛http://www.neteumu.cn/bbs ,我们会在每一时间为您解答!
在此,衷诚的祝福各位CISCO战友早日成功!谢谢您的支持!
此文档PDF下载见www.netemu.cn/bbs社区