Skip to main content

tplogin.cn首页 > 新闻资讯 >

利用vrrp实现路由器之间的分流及备份

2012-08-17 14:26 浏览:

1. 作业要求:

  • 利用vrrp实现路由器之间的备份
  • 实现两个路由器之间流量的分流(提高效率)
  • 利用通道技术来提高安全性

2. 拓扑图

clip_image002

3. 设备描述:

路由器:H3C Quidway R2621 (R9 R6)

交换机:H3C Quidway S2000 (二层交换机S2)

H3C Quidway S3526E (三层交换机S1)

 设备配置

4.1 基本配置:

路由器R9:

[Router]sysname R9

[R9]int e1.10

[R9-Ethernet1.10]vlan-type dot1q vid 10 //打标签

[R9-Ethernet1.10]ip add 192.168.10.1 255.255.255.0//配ip

//这两步顺序不能颠倒!

[R9-Ethernet1.10]int e1.20

[R9-Ethernet1.20]vlan-type dot1q vid 20

[R9-Ethernet1.20]ip add 192.168.20.1 24

路由器R6:

[R6]int e1.10

[R6-Ethernet1.10]vlan-type dot1q vid 10 

[R6-Ethernet1.10]ip add 192.168.10.2 24

[R6-Ethernet1.10]int e1.20

[R6-Ethernet1.20]vlan-type dot1q vid 20

[R6-Ethernet1.20]ip add 192.168.20.2 24

交换机s1:

[Quidway]sysname s1

[s1]int e0/24

[s1-Ethernet0/24]port link-type trunk  //干道链路

[s1-Ethernet0/24]port trunk permit vlan all //默认只允许vlan1通过,所以这里

Please wait........................................... Done.

[s1-Ethernet0/24]vlan 10

[s1-vlan10]port e0/3 to e0/5  //划分端口

[s1-vlan10]vlan 20

[s1-vlan20]port e0/10 to e 0/15

[s1]int e0/1

[s1-Ethernet0/1]port link-type trunk 

[s1-Ethernet0/1]port trunk permit vlan all

[s1-Ethernet0/1]dis int e0/1

Ethernet0/1 current state : UP

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc0e-b624

The Maximum Transmit Unit is 1500

Media type is twisted pair, loopback not set

Port hardware type is 100_BASE_TX

100Mbps-speed mode, full-duplex mode

Link speed type is autonegotiation, link duplex type is autonegotiation

Flow-control is not enabled

Port-flow-constrain has not been configured completely

The Maximum Frame Length is 1536

Broadcast MAX-ratio: 100%

PVID: 1

Mdi type: auto

Port link-type: trunk

VLAN passing : 1(default vlan), 10, 20

VLAN allowed : 1(default vlan), 2-4094

Trunk port encapsulation: IEEE 802.1q

交换机s2:

[s2]int e1/0/24

[s2-Ethernet1/0/24]port link-type trunk

[s2-Ethernet1/0/24]port trunk permit vlan all

Please wait........................................... Done.

[s2-Ethernet1/0/24]vlan 10

[s2-vlan10]port e1/0/3 to e1/0/5

[s2-vlan10]vlan 20

[s2-vlan20]port e1/0/10 to e1/0/15

[s2]int e1/0/1

[s2-Ethernet1/0/1]port link-type trunk

[s2-Ethernet1/0/1]port trunk permit vlan all

Please wait........................................... Done.

[s2-Ethernet1/0/1]dis int e1/0/1

Ethernet1/0/1 current state : UP

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000f-e274-2158

Media type is twisted pair, loopback not set

Port hardware type is 100_BASE_TX

100Mbps-speed mode, full-duplex mode

Link speed type is autonegotiation, link duplex type is autonegotiation

Flow-control is not enabled

The Maximum Frame Length is 1536

Broadcast MAX-ratio: 100%

PVID: 1

Mdi type: normal

Port link-type: trunk

VLAN passing : 1(default vlan), 10, 20

VLAN permitted: 1(default vlan), 2-4094

Trunk port encapsulation: IEEE 802.1q

测试是否能通:

[R9]ping 192.168.10.2

PING 192.168.10.2: 56 data bytes, press CTRL_C to break

Reply from 192.168.10.2: bytes=56 Sequence=0 ttl=255 time = 2 ms

Reply from 192.168.10.2: bytes=56 Sequence=1 ttl=255 time = 2 ms

[R9]ping 192.168.20.2

PING 192.168.20.2: 56 data bytes, press CTRL_C to break

相关文章

ipados15.4可以实现戴口罩解锁嘛

2022-03-11 11:37:00    浏览: 138

穿墙路由器如何实现穿墙,辐射严重不?

2022-01-15 03:20:17    浏览: 0

利用FME Server实现电脑文件的自动化备份

2022-01-12 00:14:22    浏览: 0

忘记家里的wifi密码了怎么办?(利用这几个方法轻松找回WIFI密码)

2021-12-03 06:27:42    浏览: 0

百度浏览器网页翻译使用教程(百度浏览器如何实现翻译网页中的英文)

2021-10-31 01:42:34    浏览: 0