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    查看通道信息
 

转载于:https://www.cnblogs.com/buhejiu/p/8377135.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值