cisco 2960 初始配置&負載均衡


1、初始配置
 
Would you like to enter the initial configuration dialog? [yes/no]:  是否按提示步驟操作    % Please answer yes or no. 
Would you like to enter the initial configuration dialog? [yes/no]: n  輸入n(自己手工設置)    Press RETURN to get
started!   
Switch>     首先看到的是用戶模式  
Switch>en   輸入en(即 enable)進入特權模式   
Switch#conf t 進入配置模式 
      Enter configuration commands, one per line. End with CNTL/Z. 
Switch(config)#hostname sw2960  給交換機命名  
sw2960(config)#enable secret Cisco   設置特權加密口令  
sw2960(config)#enable password Cisco  給交換機配置特權管理口令(明碼的)
sw2960(config)#line consle 0   進入控制台口( RS232)
sw2960(config-line)#password Cisco   設置登錄口令  
sw2960(config-line)#login   登錄要求口令驗證  
sw2960(config-line)#exit 退出到上級目錄 
sw2960(config)#line vty 0 4  給交換機開啟遠程管理      
sw2960(config-line)#pass Cisco!  設置遠程管理口令     
sw2960(config-line)#login  允許遠程登陸    
sw2960(config-line)#exit  退出到上級目錄    
sw2960(config)#int vlan 1  進入vlan1 接口    
sw2960(config-if)#no shut  開啟此接口  
  1y13w: %LINK-3-UPDOWN: Interface Vlan1, changed state to up 
  1y13w: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up 
sw2960(config-if)#ip add 192.168.1.2 255.255.255.0  設置此接口地址    
sw2960(config-if)#exit  退出到上一層  
sw2960(config-if-range)#exit  退出到上一級目錄  
sw2960(config)#show run   查看配置信息    
sw2960(config)#end  退到根目錄  
sw2960#write  保存配置   
 
2、bond配置(負載均衡)
switch(config)#interface range gigabitEthernet 2/0/1-2   將fasternet0/1和0/2 口捆綁
switch(config-if)#channel-group 1 mode on    配置以太通道模式 
switch(config-if)#port-channel load-balance {dst-mac | src-mac}在鏈路間實現負載均衡  switch#show etherchannel  1  summary    查看通道信息 
switch#show etherchannel  load-balance    查看通道信息
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM