A-A+

思科C3691路由器端口汇聚配置

2015年11月24日 站长资讯 暂无评论

这次思科路由器的端口汇聚配置,使用的实验环境设备是C3691,两台router直接连接(R1和R2)。在这里要注意一下这次实验的特殊性。下面是具体的配置命令行:

  1. R1#show ip interface  
  2. FastEthernet0/0 is administratively down,line protocol is down  
  3. Internet protocol processing disabled  
  4. FastEthernet0/1 is administratively down,line protocol is down  
  5. Internet protocol processing disabled  
  6. R1#config  
  7. Configuring from terminal, memory, ornetwork [terminal]?  
  8. Enter configuration commands, one perline. End with CNTL/Z.  
  9. R1(config)#interface f0/0  
  10. R1(config-if)#ip address 192.168.1.1255.255.255.0  
  11. R1(config-if)#end  
  12. R1#show ?  
  13. R1#?  
  14. R1#tunnel ?  
  15. WORD Address or hostname of a remote system  
  16.   
  17. R1#config  
  18. Configuring from terminal, memory, ornetwork [terminal]?  
  19. Enter configuration commands, one perline. End with CNTL/Z.  
  20. R1(config)#  
  21. R1(config)#interface ?  
  22. R1(config)#interface port-channel ?  
  23. <1-64> Port-channelinterface number  
  24.   
  25. R1(config)#interface port-channel 1  
  26. R1(config-if)#?  
  27. R1(config-if)#ip address 192.168.23.1 ?  
  28. A.B.C.D IP subnet mask  
  29.   
  30. R1(config-if)#ip address 192.168.23.1255.255.255.0  
  31. R1(config-if)#?  
  32. R1(config-if)#exit  
  33. R1(config)#interface range ?  
  34. FastEthernet FastEthernet IEEE802.3  
  35. Port-channel Ethernet Channel ofinterfaces  
  36. macro macro keyword  
  37.   
  38. R1(config)#interface range f ?  
  39. <0-6> FastEthernetinterface number  
  40.   
  41. R1(config)#interface range f0?  
  42. /  
  43.   
  44. R1(config)#interface range f0/1?  
  45. . : <0-1>  
  46.   
  47. R1(config)#interface range f0/0 ?  
  48. , comma  
  49. - hyphen  
  50. <cr>  
  51.   
  52. R1(config)#interface range f0/0 - ?  
  53. <1-1005> last portnumber or vlan interface in port-range  
  54. FastEthernet FastEthernet IEEE802.3  
  55. Port-channel Ethernet Channel ofinterfaces  
  56.   
  57. R1(config)#interface range f0/0 - 1  
  58. R1(config-if-range)#?  
  59. R1(config-if-range)#channel-group ?  
  60. <1-64> Channel group number  
  61.   
  62. R1(config-if-range)#channel-group 1 ?  
  63. <cr>  
  64.   
  65. R1(config-if-range)#channel-group 1  
  66. Error: The Etherchannel members can nothave IP address  
  67.   
  68. R1(config-if-range)#no ip address  
  69. R1(config-if-range)#channel-group 1  
  70. Interface already configured inPort-Channel-1.  
  71.   
  72. R1(config-if-range)# end  
  73. R1#copy running start  
  74.   
  75. R1#show runn inter port 1  
  76. Building configuration...  
  77.   
  78. Current configuration : 89 bytes  
  79. !  
  80. interface Port-channel1  
  81. ipaddress 192.168.23.1 255.255.255.0  
  82. hold-queue 300 in  
  83. end  

对端设备的配置

  1. R2#config  
  2. Configuring from terminal, memory, ornetwork [terminal]?  
  3. Enter configuration commands, one perline. End with CNTL/Z.  
  4. R2(config)#inter por 1  
  5. R2(config-if)#ip add 192.168.23.2255.255.255.0  
  6. R2(config-if)#exit  
  7. R2(config)#interface range f0/0 - 1  
  8. R2(config-if-range)#no ip address  
  9. R2(config-if-range)#channel-group 1  
  10. R2(config-if-range)#exit  
  11. R2(config)#end  
  12. R2#copy runn sta  
  13. Destination filename [startup-config]?  
  14. Warning: Attempting to overwrite an NVRAMconfiguration previously written  
  15. by a different version of the system image.  
  16. Overwrite the previous NVRAMconfiguration?[confirm]  
  17. Building configuration...  
  18. [OK]  
  19. R2#show runn ?  
  20. brief configuration withoutcertificate data  
  21. class-map Show class-mapinformation  
  22.   
  23.   
  24. full full configuration  
  25. interface Show interfaceconfiguration  
  26. linenum Display line numbersin output  
  27. map-class Show map classinformation  
  28. policy-map Show policy-mapinformation  
  29. | Output modifiers  
  30. <cr>  
  31. R2#show runn inter port-channel 1  
  32. Building configuration...  
  33.   
  34. Current configuration : 89 bytes  
  35. !  
  36. interface Port-channel1  
  37. ipaddress 192.168.23.2 255.255.255.0  
  38. hold-queue 300 in  
  39. end  
  40.   
  41. R2#  
标签:

给我留言