DynamipsGUI2.8 交换模块试用(Etherchannel)

    今天试用了一下DynamipsGUI 2.8,之前都用的Boson NetSim7.02,总体来说还是相当不错的,不过上星期想做一下Etherchannel的实验时发现Boson没有这些命令......于是就决定去用DynamipsGUI了。
       测试用的是两台3640建立Etherchannel连接,具体怎么使用DynamipsGUI我就不详细说了,大家可以搜一下博客。
      
     
    添加的模块是NW-16ESW,也就是交换模块
 
     
 
      分别连接两台3640的f0/0和f0/1接口
 
 
      之后用SecureCRT分别连接两台路由器,地址为127.0.0.1,端口分别为2001和2002。
   
 
      R1的配置如下:
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host
Router(config)#hostname R1
R1(config)#int range fastEthernet 0/0 - 1
R1(config-if-range)#chan
R1(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel1
R1(config-if-range)#
*Mar  1 00:07:29.327: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up
*Mar  1 00:07:30.327: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to down
R1(config-if-range)#switch mode trunk
R1(config-if-range)#no shut
R1(config-if-range)#
*Mar  1 00:08:15.467: %EC-5-BUNDLE: Interface Fa0/0 joined port-channel Po1
*Mar  1 00:08:15.663: %EC-5-BUNDLE: Interface Fa0/1 joined port-channel Po1
*Mar  1 00:08:15.951: %DTP-5-TRUNKPORTON: Port Fa0/0-1 has become dot1q trunk
*Mar  1 00:08:17.307: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:08:17.319: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
*Mar  1 00:08:17.495: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up
*Mar  1 00:08:18.307: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Mar  1 00:08:18.319: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
*Mar  1 00:08:18.495: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
 
      接下来设置vlan和vtp
R1#vlan data
R1#vlan database
R1(vlan)#vtp server
Device mode already VTP SERVER.
R1(vlan)#vtp domain cisco 
Changing VTP domain name from NULL to cisco
R1(vlan)#vtp password cisco
Setting device VLAN database password to cisco.
R1(vlan)#apply
APPLY completed.
R1(vlan)#vlan 100 name cisco
VLAN 100 added:
    Name: cisco
R1(vlan)#exit
APPLY completed.
Exiting....
R1#
 
      R2配置如下
Router>ena
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R2
R2(config)#int ran f0/0 - 1
R2(config-if-range)#chan
R2(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel1
R2(config-if-range)#
*Mar  1 00:15:39.495: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up
*Mar  1 00:15:40.495: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to down
R2(config-if-range)#switch mode trunk
R2(config-if-range)#no shut
R2(config-if-range)#
*Mar  1 00:16:13.195: %EC-5-BUNDLE: Interface Fa0/0 joined port-channel Po1
*Mar  1 00:16:13.379: %EC-5-BUNDLE: Interface Fa0/1 joined port-channel Po1
*Mar  1 00:16:13.679: %DTP-5-TRUNKPORTON: Port Fa0/0-1 has become dot1q trunk
*Mar  1 00:16:15.035: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:16:15.047: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
*Mar  1 00:16:15.223: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up
*Mar  1 00:16:16.035: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Mar  1 00:16:16.047: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
*Mar  1 00:16:16.223: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
R2(config-if-range)#
 
R2#vlan data
R2#vlan database
R2(vlan)#vtp domain cisco
Changing VTP domain name from NULL to cisco
R2(vlan)#vtp pass cisco
Setting device VLAN database password to cisco.
R2(vlan)#vtp client
Setting device to VTP CLIENT mode.
 
      最后show interface portchannel 1和show interface protchannel 1 switchport就可以看到相应的结果:
R1#sh int port-channel 1
Port-channel1 is up, line protocol is up
  Hardware is EtherChannel, address is cc00.0808.f000 (bia cc00.0808.f000)
  MTU 1500 bytes, BW 200000 Kbit, DLY 1000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s
  Members in this channel: Fa0/0 Fa0/1
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:01:35, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 input packets with dribble condition detected
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 output buffer failures, 0 output buffers swapped out
R1#
 
R1#sh int port-channel 1 switchport
Name: Po1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Disabled
Access Mode VLAN: 0 ((Inactive))
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Trunking VLANs Active: 1,100
Priority for untagged frames: 0
Override vlan tag priority: FALSE
Voice VLAN: none
Appliance trust: none
 
R2#sh int port-channel 1
Port-channel1 is up, line protocol is up
  Hardware is EtherChannel, address is cc00.0b7c.f000 (bia cc00.0b7c.f000)
  MTU 1500 bytes, BW 200000 Kbit, DLY 1000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s
  Members in this channel: Fa0/0 Fa0/1
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:01, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     0 packets input, 0 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 input packets with dribble condition detected
     0 packets output, 0 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 output buffer failures, 0 output buffers swapped out
 
      可以看到带宽变成200M了,在R2上show vlan也能看到R1建立了vlan 100:
R2#sh vlan-switch
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/2, Fa0/3, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                Fa0/14, Fa0/15
100  cisco                            active   
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active   
VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        1002   1003
100  enet  100100     1500  -      -      -        -    -        0      0  
1002 fddi  101002     1500  -      0      -        -    -        1      1003
1003 tr    101003     1500  1005   0      -        -    srb      1      1002
1004 fdnet 101004     1500  -      -      1        ibm  -        0      0  
1005 trnet 101005     1500  -      -      1        ibm  -        0      0  
R2#
 
      好了,总结一下,DynamipsGUI支持交换之后可以做更多的二层实验了,用起来也比Boson舒服多,例如Boson里面show interface switchport是没有提示这条指令的,但你输入完整的话还是有这个功能的,之前做实验时也郁闷了好久......还有关于Etherchannel的,在实际应用中做vtp冗余也不少,不过我觉得与其做冗余,还不如做Etherchannel,提供冗余的同时也能增加带宽,可以绑定2个,4个和8个端口,这样两台6500之间用8个1000M端口绑定Etherchennel就可以提供10Gbit的带宽了,成本也节约不少。
      以后有时间再测试一下DynamipsGUI在BCMSN实验方面的支持如何,要先在实验室了解一下才行=v=

你可能感兴趣的:(网络,职场,休闲,交换)