【vlan互访   (vrrp)】

vlan互访- vrrp


交换机配置:

交换机A

vlan10                

port e1/0/10   ........vlan10加端口10】  

port e1/0/20   ........vlan20加端口20

int e1/0/24

port link-type trunk

port trunk permit vlan all  

int e1/0/1

port link-type trunk

port trunk permit vlan all .


交换机 B

路由器配置:

路由器 A

int eth 0.1

vlan-type dot1q vid 10

ip add 192.168.10.1 24

int eth 0.2

vlan-type dot1q vid 20

ip add 192.168.20.1 24

vrrp配置

int eth 0.1

vrrp vrid 10 virtual 192.168.10.254  

vrrp vrid 10 priority 120

int eth 0.2

vrrp vrid 20 virtual 192.168.20.254    

vrrp vrid 10 priority 100

路由器 B

int eth 0.1

vlan-type dot1q vid 10

ip add 192.168.10.2 24

int eth 0.2

vlan-type dot1q vid 20

ip add 192.168.20.2 24

vrrp配置

int eth 0.1

vrrp vrid 10 virtual 192.168.10.254   dis vrrp

vrrp vrid 10 priority 100

int eth 0.2

vrrp vrid 20 virtual 192.168.20.254    dis vrrp

vrrp vrid 10 priority 120

Pcping及路由跟踪


你可能感兴趣的:(路由器,交换机配置)