华为网络工程师--多层交换机配置

案例2:多层交换机配置

VRRP SW1:

undo terminal monitor system-view sysname SW1

interface gi0/0/1 port link-type trunk port trunk

allow-pass vlan all

quit

interface vlanif 1 ip address 192.168.1.1 24 quit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SW2: undo terminal monitor system-view sysname SW2

interface gi0/0/1

port link-type trunk port trunk allow-pass vlan all

quit

interface vlanif 1 ip address 192.168.1.2 24 quit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SW3:

undo terminal monitor system-view sysname SW3

interface gi0/0/1

port link-type trunk port trunk allow-pass vlan all

quit

interface gi0/0/2

port link-type trunk port trunk allow-pass vlan all

quit

interface gi0/0/3 port link-type access port default vlan 1 quit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ VRRP 配置步骤:

1.配置终端设备; PC-1: 192.168.1.10 255.255.255.0 192.168.1.254 -->虚拟网关IP地址;

2.配置网络设备; #配置交换设备 @配置交换机之间的链路 -> trunk @配置交换机与终端之间的链路 - access #配置路由设备 @网关(多层交换机上的虚拟接口)

3.配置 VRRP #在哪里配置? @在网关接口上配置 #如何配置? @SW1: interface vlanif 1 vrrp vrid 1 virtual-ip 192.168.1.254 vrrp vrid 1 priority 200 quit @SW2: interface vlanif 1 vrrp vrid 1 virtual-ip 192.168.1.254 vrrp vrid 1 priority 150 quit

4.验证 VRRP #验证命令: #测试方法: 1.一直用 PC-1 访问 虚拟网关IP地址; 2.断开 主网关设备,准备切换为用来带来的影响;


分享到:


相關文章: