CCNA课堂笔记5

 

EthernetChannel(802.3ad)

将两个设备间多条相同特性的快速以太或千兆位以太物理链路捆绑在一起组成一条逻辑链路,从而达到带宽倍增及负载均衡的目的。

 

配置要点:

  • Port-channel接口一旦建立完成,就形成了一个逻辑接口,后续针对接口的配置,都在Port-channel接口中完成
  • Port-channel接口不能成为SPAN(端口镜像)的目的接口
  • 隶属于一个Port-channel的物理接口需有相同的如下配置: (可使用default int fx/x 还原接口)
  • 端口之间的Speed 和Duplex需相同 ( LACP只能是全双工模式 )
  • 接口模式相同(Trunk 、access)
  • Trunk模式的Native vlan 和 Allowed vlan 需相同
  • Aeecss模式 的所属Vlan 需相同
  • 构成etherchannel的端口必须配置成相同的特性,如双工模式、速度、同为FE或GE端口、native VLAN,、VLAN range,、and trunking status and type.等

 

 

二层捆绑:

interface port-channel 1

switchport

switch trunk encapsulation dot1q

switchport mode trunk

!

Interface range e0/1 – 2

shutdown ##为了避免出现BUG,先将物理接口shutdown,然后配置封装模式,最后加入捆绑

switchport

switch trunk encapsulation dot1q

switchport mode trunk

channel-group 1 mode on

no shutdown

 

 

三层捆绑

(可能直接起不来,也可能起来了ping不通,模拟器BUG)

interface Port-channel12

no switchport

ip address 12.1.1.2 255.255.255.0

end

interface Ethernet0/1-2

shutdown

no switchport

no ip address

channel-group 12 mode on

no shutdown

 

 

HSRP

CISCO私有协议

Hello包是通过组播地址224.0.0.2发送

UDP协议,1985端口,Hello时间3S,死亡时间10S

 

HSRP的虚拟MAC地址

0000.0c07.acxx 0000.0c为厂商编号 07ac为 HSRP编号 xx为HSRP组

 

HSRP几个术语:

 

 

 

 

(虚拟网关可能ping不通,看人品,这个是IOL镜像的BUG,EVE官方已经证实)

交换口转路由口做有点问题,部分IOS no switchport会直接导致设备重启;

用SVI的方式,并且所有交换机全局no ip cef ,可以比较完美的模拟;

笔记后面有HSRP/VRRP的案例分享

 

SW1

no ip cef

interface vlan 10

ip address 192.168.10.1 255.255.255.0

standby 10 ip 192.168.10.254

standby 10 priority 110 //默认优先级100

standby 10 preempt //默认关闭抢占

 

SW2

no ip cef

interface vlan 10

ip address 192.168.10.2 255.255.255.0

standby 10 ip 192.168.10.254

standby 10 preempt

组编号要一致,不然会报错

 

 

配置链路检测(可选,不同IOS版本有配置差异):

track 10 interface Ethernet0/0 line-protocol

interface vlan 10

standby 10 track 10 decrement 20

 

老版本命令:

(config-if)#standby 1 track e0/1 20

 

 

VRRP

公有协议

组播地址224.0.0.18

 

vrrp的虚拟MAC地址

0000.5E00.01 xx其中:0000.5E 由IANA分配 00.01是VRRP编号 xx代表VRRP组号

R1配置示例:

interface f0/0

ip add 192.168.1.253 255.255.255.0

vrrp 10 ip 192.168.1.253 //配置组10虚拟IP,可以与实际IP相同

vrrp 10 priorty 110 //配置优先级,(默认为100)

vrrp 10 preemet //默认开启抢占

 

R2配置示例:

interface f0/0

ip add 192.168.1.252 255.255.255.0

vrrp 10 ip 192.168.1.253

vrrp 10 preemet

 

两端组编号要一致,不然会报错

 

配置链路检测(可选,不同IOS版本有配置差异):

track 10 interface Ethernet0/0 line-protocol

interface f0/0

vrrp 10 track 10 decrement 20

 

老版本命令:

Router(config-if)# vrrp 10 track e0/1 20

 

 

VRRP/HSRP负载案例分享

 

 

多组HSRP,单臂路由+可网管交换机:

 

多组HSRP,三层交换机:

 

 

posted @ 2020-11-26 23:41  叫我Ghost就好了  阅读(107)  评论(0)    收藏  举报