华为lacp-vrrp练习题

拓扑图 

1.在所有的交换机上创建VLAN 11、VLAN 12、VLAN 13和VLAN 14,中继口上允许VLAN 11、VLAN 12、VLAN 13和VLAN 14通过。
2.按拓扑图上修改设备名称和接口IP地址配置,其中S1 G0/0/5接口划分到VLAN 13,S2 G0/0/5接口划分到VLAN 14;
3.全网采用RIPv2路由协议通信,进程号为1,关闭自动汇总,在R1上设置默认路由,下一跳选择G0/0/2接口,将默认路由重分布到RIP协议。
4.Eth1和Eth2采用手动聚合模式,Eth3和Eth4采用LACP聚合模式,SW2为主动方,设置系统优先级为100,
5.Vrrp配置:vlan 11选择S1上的VLAN11作为Master路由器,优先级为150,虚拟组为11,虚拟IP为192.168.11.254/24;vlan 12选择S2上的VLAN12作为Master路由器,优先级150,虚拟组为12,虚拟IP为192.168.12.254/24,其他参与默认。

//S1

<Huawei>sys      //进入全局模式
Enter system view, return user view with Ctrl+Z.
[Huawei]sys S1   //更改交换机名称
[S1]undo inf en    // 关闭设备日志信息
Info: Information center is disabled.
[S1]vlan ba 11 12 13 14    //创建vlan 11 12 13 14
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1]int v 11     //进入vlan11
[S1-Vlanif11]ip add 192.168.11.1 24    //配置vlanIP地址
[S1-Vlanif11]int v 12     //进入vlan12
[S1-Vlanif12]ip add 192.168.12.1 24    //配置vlanIP地址
[S1-Vlanif12]int v 13     //进入vlan13
[S1-Vlanif13]ip add 10.1.1.1 24          //配置vlanIP地址
[S1-Vlanif13]int e 1      //创建聚合链路1
[S1-Eth-Trunk1]tr g 0/0/1 to 0/0/2     //将物理端口GE 0/0/1和GE 0/0/2添加到聚合链路端口中
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-Eth-Trunk1]mo m lo            //配置为手动负载分担模式
[S1-Eth-Trunk1]po li tr               //配置聚合端口类型为trunk
[S1-Eth-Trunk1]po tr a v 11 to 14    //聚合端口允许vlan 11到14通行
[S1-Eth-Trunk1]int e 2
[S1-Eth-Trunk2]tr g 0/0/3 to 0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1-Eth-Trunk2]mo m lo         //配置为手动负载分担模式
[S1-Eth-Trunk2]po li tr             //配置聚合端口类型为trunk
[S1-Eth-Trunk2]po tr a v 11 to 14         //聚合端口允许vlan 11到14通行
[S1-Eth-Trunk2]int g 0/0/5          //进入g0/0/5端口
[S1-GigabitEthernet0/0/5]po li acc      //配置端口类型为access
[S1-GigabitEthernet0/0/5]po de v 13   //配置接口组的缺省vlan为13 ,pvid=13
[S1-GigabitEthernet0/0/5]int v 12        //进入vlan12接口
[S1-Vlanif12]vrrp v 12 v 192.168.12.254      //配置备份组1的虚拟网关地址
[S1-Vlanif12]int v 11                          //进入vlan12接口
[S1-Vlanif11]vrrp v 11 v 192.168.11.254       //配置备份组1的虚拟网关地址
[S1-Vlanif11]vrrp v 11 pr 150             //配置路由器在备份组1中的优先级为150
[S1-Vlanif11]rip 1                          //配置rip 1
[S1-rip-1]v 2                                 //配置版本为rip2
[S1-rip-1]undo sum                      //关闭自动汇总
[S1-rip-1]net 192.168.11.0           //宣告接口网段
[S1-rip-1]net 192.168.12.0           //宣告接口网段
[S1-rip-1]net 10.0.0.0                   //宣告接口网段

//S2

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys S2
[S2]undo inf en
Info: Information center is disabled.
[S2]vlan ba 11 12 13 14
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2]int v 11
[S2-Vlanif11]ip add 192.168.11.2 24
[S2-Vlanif11]int v 12
[S2-Vlanif12]ip add 192.168.12.2 24
[S2-Vlanif12]int v 14 
[S2-Vlanif14]ip add 10.2.2.1 24
[S2-Vlanif14]q
[S2]int e 3
[S2-Eth-Trunk3]mo la
[S2-Eth-Trunk3]tr g 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-Eth-Trunk3]po li tr
[S2-Eth-Trunk3]po tr a v 11 to 14
[S2-Eth-Trunk3]int e 4
[S2-Eth-Trunk4]mo la
[S2-Eth-Trunk4]tr g 0/0/3 to 0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2-Eth-Trunk4]po li tr
[S2-Eth-Trunk4]po tr a v 11 to 14 
[S2-Eth-Trunk4]la pr 100
[S2]int g 0/0/5
[S2-GigabitEthernet0/0/5]po li acc
[S2-GigabitEthernet0/0/5]po de v 14
[S2-GigabitEthernet0/0/5]int v 11
[S2-Vlanif11]vrrp v 11 v 192.168.11.254
[S2-Vlanif11]int v 12
[S2-Vlanif12]vrr v 12 v 192.168.12.254
[S2-Vlanif12]vrrp v 12 pr 150
[S2-Vlanif12]rip 1
[S2-rip-1]v 2
[S2-rip-1]undo sum
[S2-rip-1]net 192.168.11.0
[S2-rip-1]net 192.168.12.0
[S2-rip-1]net 10.0.0.0

//S3

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys S3
[S3]undo inf en
Info: Information center is disabled.
[S3]vlan ba 11 12 13 14
Info: This operation may take a few seconds. Please wait for a moment...done.
[S3]int e0/0/11
[S3-Ethernet0/0/11]po li acc
[S3-Ethernet0/0/11]po de vl 11
[S3-Ethernet0/0/11]int e0/0/12
[S3-Ethernet0/0/12]po li acc
[S3-Ethernet0/0/12]po de vl 12
[S3-Ethernet0/0/12]q
[S3]int e 1
[S3-Eth-Trunk1]mo la          //配置为自动负载分担模式
[S3-Eth-Trunk1]tr e 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[S3-Eth-Trunk1]po li tr
[S3-Eth-Trunk1]po tr al v 11 to 14
[S3-Eth-Trunk1]int e 3
[S3-Eth-Trunk3]mo la
[S3-Eth-Trunk3]tr e 0/0/3 to 0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[S3-Eth-Trunk3]po li tr
[S3-Eth-Trunk3]po tr al v 11 to 14

//S4

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys S4
[S4]undo inf en
Info: Information center is disabled.
[S4]vlan ba 11 12 13 14
Info: This operation may take a few seconds. Please wait for a moment...done.
[S4]int e0/0/11
[S4-Ethernet0/0/11]po li acc
[S4-Ethernet0/0/11]po de vl 11
[S4-Ethernet0/0/11]int e0/0/12
[S4-Ethernet0/0/12]po li acc
[S4-Ethernet0/0/12]po de vl 12
[S4-Ethernet0/0/12]q
[S4]int e 2
[S4-Eth-Trunk2]mo la
[S4-Eth-Trunk2]tr e 0/0/1 to 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[S4-Eth-Trunk2]po li tr
[S4-Eth-Trunk2]po tr al v 11 to 14
[S4-Eth-Trunk2]int e 4
[S4-Eth-Trunk4]mo la
[S4-Eth-Trunk4]tr e 0/0/3 to 0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[S4-Eth-Trunk4]po li tr
[S4-Eth-Trunk4]po tr al v 11 to 14

//R1

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo inf en
Info: Information center is disabled.
[Huawei]sys R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 10.2.2.2 24
[R1-GigabitEthernet0/0/1]int g0/0/2
[R1-GigabitEthernet0/0/2]ip add 200.1.1.1 30
[R1-GigabitEthernet0/0/2]rip 1
[R1-rip-1]v 2
[R1-rip-1]default-route o        //配置rip发布默认路由
[R1-rip-1]undo sum
[R1-rip-1]net 10.0.0.0
[R1-rip-1]q
[R1]ip rou 0.0.0.0 0.0.0.0 g0/0/2

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值