部署IP-Trunk链路(NE路由器)
应用环境
为了增加路由器RouterA与RouterB之间的通信带宽,并保证通信链路的可靠性,需要在两台路由器之间创建IP-Trunk,将多个POS端口捆绑成一个IP-Trunk。当IP-Trunk中的某个成员端口出现故障时,整个IP-Trunk链路业务不会中断,从而保证链路可靠性。
如果要求IP-Trunk的成员链路之间进行负载分担,可以配置成员链路负载分担的权重。IP-Trunk接口根据各成员链路的权重进行散列,实施负载分担。在一个IP-Trunk接口中,某成员端口的权重值占所有成员端口权重之和的比例越大,该成员链路承担的负载就越大。
配置思路
在配置IP-Trunk时,采用如下配置思路:
1. 创建IP-Trunk接口。
2. 将POS接口加入到IP-Trunk接口。
3. 可以根据实际需要,配置成员端口的权重等可选配置。
配置注意事项
加入IP-Trunk的POS接口,链路层协议必须为HDLC。缺省情况下,POS接口的链路层协议为PPP,这时需要在该POS接口视图下执行link-protocol hdlc命令,将接口的链路层协议配置为HDLC协议。
POS接口加入IP-Trunk接口前,不能有IP等三层特性,也不可以配置任何业务。
一个POS接口只能加入到一个IP-Trunk接口,如果需要加入其他IP-Trunk接口,必须先退出原来的IP-Trunk接口。
IP-Trunk接口不能嵌套,即,成员端口不能是Eth-Trunk或IP-Trunk。
可以将不同接口板上的POS接口加入到同一个IP-Trunk。
可以将不同速率的POS接口加入到同一个IP-Trunk。但此时每个接口的转发能力,只能达到能力最低的接口的水平。例如,将一个10G的POS接口和一个2.5G的POS接口加入到同一个IP-Trunk中,那么此时10G的POS接口只能达到2.5G的传输能力,而整个IP-Trunk的传输能力为5G,而不是12.5G。所以建议用户不要将转发能力不同的接口捆绑到同一个IP-Trunk中。
如果本地设备使用了IP-Trunk,与成员端口直连的对端端口也必须相应的捆绑为IP-Trunk接口。
配置实例
组网需求
两台路由器直连。每台路由器上的IP-Trunk接口都是由两个POS接口组成。
IP-Trunk组网图
适用产品和版本
路由器采用NE5000E/80E/40E设备,版本为VRP5.30-22及后续版本。
数据准备
RouterA和RouterB使用POS接口相连。
RouterA侧的IP-Trunk使用IP地址100.1.1.1/24,RouterB侧的IP-Trunk使用IP地址100.1.1.2/24。
RouterA中POS1/0/0的负载分担权重为4,POS2/0/0的负载分担权重为12。即IP-Trunk中有4/16的流量通过POS1/0/0传输,12/16的流量通过POS2/0/0传输。
配置步骤
步骤 1 配置RouterA
<RouterA> system-view
[RouterA] sysname RouterA
# 创建IP-Trunk接口,并配置IP地址。
[RouterA] interface ip-trunk 1
[RouterA-Ip-Trunk1] ip address 100.1.1.1 255.255.255.0
[RouterA-Ip-Trunk1] quit
# 将POS1/0/0、POS2/0/0加入到IP-Trunk 1中,并分别配置成员端口的负载分担权重。
[RouterA] interface pos 1/0/0
[RouterA-Pos1/0/0] link-protocol hdlc
[RouterA-Pos1/0/0] ip-trunk 1
[RouterA-Pos1/0/0] distribute-weight 4
[RouterA-Pos1/0/0] quit
[RouterA] interface pos 2/0/0
[RouterA-Pos2/0/0] link-protocol hdlc
[RouterA-Pos2/0/0] ip-trunk 1
[RouterA-Pos2/0/0] distribute-weight 12
[RouterA-Pos2/0/0] quit
# 启用IP-Trunk 1接口
[RouterA] interface ip-trunk 1
[RouterA-Ip-Trunk1] undo shutdown
步骤 2 配置RouterB
<RouterB> system-view
[RouterB] sysname RouterB
# 创建IP-Trunk接口,并配置IP地址。
[RouterB] interface ip-trunk 1
[RouterB-Ip-Trunk1] ip address 100.1.1.2 255.255.255.0
[RouterB-Ip-Trunk1] quit
# 将POS1/0/0、POS2/0/0加入到IP-Trunk 1中。
[RouterB] interface pos 1/0/0
[RouterB–Pos1/0/0] link-protocol hdlc
[RouterB–Pos1/0/0] ip-trunk 1
[RouterB–Pos1/0/0] quit
[RouterB] interface pos 2/0/0
[RouterB–Pos2/0/0] link-protocol hdlc
[RouterB–Pos2/0/0] ip-trunk 1
[RouterB–Pos2/0/0] quit
# 启用IP-Trunk 1接口
[RouterB] interface ip-trunk 1
[RouterB-Ip-Trunk1] undo shutdown
验证结果
在RouterA或RouterB上执行display interface ip-trunk命令,可以看到接口状态为UP。
以RouterA的显示为例。
[RouterA] display interface ip-trunk 1
Ip-Trunk1 current state : UP
Line protocol current state : UP
Description : HUAWEI, Quidway Series, Ip-Trunk1 Interface, Route Port
Hash arithmatic : According to IP
The Maximum Transmit Unit is 4470 bytes
Internet Address is 100.1.1.1/24
Link layer protocol is HDLC
Physical is IP_TRUNK
5 minutes input rate 0 bytes/sec, 0 packets/sec
5 minutes output rate 0 bytes/sec, 0 packets/sec
0 packets input, 0 bytes, 0 drops
0 packets output, 0 bytes, 0 drops
执行display trunkmembership eth-trunk命令,查看Trunk口的成员端口信息。
[RouterA] display trunkmembership ip-trunk 1
Trunk ID: 1
used status: VALID
TYPE: Pos
Number Of Ports in Trunk = 2
Number Of UP Ports in Trunk = 2
operate status: up
ip status: not configed
link status: up
Interface Pos1/0/0, valid,selected,operate up,weight=4,standby interface NULL
Interface Pos2/0/0, valid,selected,operate up,weight=12,standby interface NULL
RouterA和RouterB的IP-Trunk接口能够互相Ping通。
[RouterA] ping -a 100.1.1.1 100.1.1.2
PING 100.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 100.1.1.2: bytes=56 Sequence=1 ttl=255 time=62 ms
Reply from 100.1.1.2: bytes=56 Sequence=2 ttl=255 time=62 ms
Reply from 100.1.1.2: bytes=56 Sequence=3 ttl=255 time=62 ms
Reply from 100.1.1.2: bytes=56 Sequence=4 ttl=255 time=62 ms
Reply from 100.1.1.2: bytes=56 Sequence=5 ttl=255 time=62 ms
--- 100.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 62/62/62 ms
配置文件
RouterA的配置文件
#
sysname RouterA
#
interface Ip-Trunk1
ip address 100.1.1.1 255.255.255.0
#
interface Pos1/0/0
link-protocol hdlc
ip-trunk 1
distribute-weight 4
#
interface Pos2/0/0
link-protocol hdlc
ip-trunk 1
distribute-weight 12
#
return
RouterB的配置文件
#
sysname RouterB
#
interface Ip-Trunk1
ip address 100.1.1.2 255.255.255.0
#
interface Pos1/0/0
link-protocol hdlc
ip-trunk 1
#
interface Pos2/0/0
link-protocol hdlc
ip-trunk 1
#
return
|
|
||
|
|
||
|
|
7月26 |
H3CNE认证 |
热报中 |
8月16 |
H3C-IMC认证 |
热报中 |
7月26 |
H3CNE认证 |
热报中 |
7月26 |
H3CIE+认证 |
热报中 |
8月16 |
H3C-IMC认证 |
热报中 |
7月26 |
H3CNE培训 |
热报中 |
7月26 |
H3CSE认证 |
热报中 |
8月16 |
H3C无线 |
热报中 |
7月26 |
H3CSE培训 |
热报中 |
8月16 |
H3CIMC培训 |
热报中 |
8月16 |
H3C无线培训 |
热报中 |
8月31 |
H3CEAD培训 |
热报中 |
8月16 |
H3CPME认证 |
热报中 |
8月16 |
H3C安全认证 |
热报中 |
8月16 |
H3CIMC培训 |
热报中 |
8月16 |
H3C无线培训 |
热报中 |
8月09 |
H3CEAD培训 |
热报中 |
8月16 |
H3CPME认证 |
热报中 |
8月16 |
H3C安全认证 |
热报中 |
8月16 |
H3CIMC培训 |
热报中 |
8月09 |
H3C无线培训 |
热报中 |
8月09 |
H3CEAD培训 |
热报中 |
8月09 |
H3CPME认证 |
热报中 |
8月09 |
H3C安全认证 |
热报中 |