北京金桥世纪H3C认证培训全国总代理

配置Trunk接口NE路由器

2011-11-15 13:39:46互联网

应用环境 
Trunk将多个端口聚合在一起形成一个汇聚组,实现出、入负荷在各成员端口中的分担,同时提供更高的连接可靠性。每台路由器上最多可以创建64个Trunk接口(包括Eth-Trunk和IP-Trunk),每个Trunk接口下最多可以包含16条成员物理链路。 

Trunk接口分为Eth-Trunk和IP-Trunk两种。 

Eth-Trunk只能由以太网链路构成。当需要出、入负荷在多个以太网端口中进行负载分担时,可以配置Eth-Trunk接口。 

IP-Trunk只能由POS链路构成。当需要出、入负荷在多个POS接口中进行负载分担时,可以配置IP-Trunk接口。 

配置思路 
配置Trunk接口时采用如下配置思路: 

创建Trunk接口 
将需要需要聚合的端口加入Trunk接口。 
配置注意事项 
配置Eth-Trunk接口时,对于路由器设备,二层以太网端口需要通过执行undo portswitch命令转换为三层端口,才能加入Eth-Trunk。 
配置IP-Trunk的POS口链路层协议必须配置为HDLC。 
配置实例一 
组网需求 
路由器RouterA与RouterB之间创建Eth-Trunk,将两个GE捆绑成一个Eth-Trunk。 

Eth-Trunk组网图  

 配置Trunk接口NE路由器

适用产品和版本 
适用NE40E/80E产品,版本为(VRP5.30-31)及后续版本 

配置步骤 
步骤 1     配置RouterA 

<Quidway> system-view 

[Quidway] sysname RouterA 

# 创建Eth-Trunk接口,并配置IP地址。 

[RouterA] interface eth-trunk 1 

[RouterA-Eth-Trunk1] ip address 100.1.1.1 24 

[RouterA-Eth-Trunk1] quit 

# 将端口GE1/0/0、GE2/0/0加入到Eth-Trunk 1中。 

[RouterA] interface gigabitethernet 1/0/0 

[RouterA-GigabitEthernet1/0/0] eth-trunk 1 

[RouterA-GigabitEthernet1/0/0] quit 

[RouterA] interface gigabitethernet 2/0/0 

[RouterA-GigabitEthernet2/0/0] eth-trunk 1 

[RouterA-GigabitEthernet2/0/0] quit 

步骤 2     配置RouterB 

<Quidway> system-view 

[Quidway] sysname RouterB 

# 创建Eth-Trunk接口,并配置IP地址。 

[RouterB] interface eth-trunk 1 

[RouterB-Eth-Trunk1] ip address 100.1.1.2 24 

[RouterB-Eth-Trunk1] quit 

# 将端口GE1/0/0、GE2/0/0加入到Eth-Trunk 1中。 

[RouterB] interface gigabitethernet 1/0/0 

[RouterB-GigabitEthernet1/0/0] eth-trunk 1 

[RouterB-GigabitEthernet1/0/0] quit 

[RouterB] interface gigabitethernet 2/0/0 

[RouterB-GigabitEthernet2/0/0] eth-trunk 1 

[RouterB-GigabitEthernet2/0/0] quit 

# 启用Eth-Trunk 1接口 

[RouterB] interface eth-trunk 1 

[RouterB-Eth-Trunk1] undo shutdown 

步骤 3     验证结果 

在RouterA或RouterB上执行display interface eth-trunk命令,可以看到接口状态为UP。 

以RouterA的显示为例。 

[RouterA] display interface Eth-Trunk 1 

Eth-Trunk1 current state : UP 

Line protocol current state : UP 

Description : HUAWEI, Quidway Series, Eth-Trunk1 Interface, Route Port 

Hash arithmatic : According to IP 

The Maximum Transmit Unit is 1500 bytes 

Internet Address is 100.1.1.1/24 

IP Sending Frames’ Format is PKTFMT_ETHNT_2, Hardware address is 00e0-8509-9722 

Physical is ETH_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 

RouterA和RouterB的Eth-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=31 ms 

    Reply from 100.1.1.2: bytes=56 Sequence=2 ttl=255 time=31 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 = 31/49/62 ms 

配置文件 
RouterA的配置文件 


 sysname RouterA 



interface Eth-Trunk1 

 ip address 100.1.1.1 255.255.255.0 



interface GigabitEthernet1/0/0 

 eth-trunk 1 



interface GigabitEthernet2/0/0 

 eth-trunk 1 



return 

RouterB的配置文件 


 sysname RouterB 



interface Eth-Trunk1 

 ip address 100.1.1.2 255.255.255.0 



interface GigabitEthernet1/0/0 

 eth-trunk 1 



interface GigabitEthernet2/0/0 

 eth-trunk 1 



return 

配置实例二 
组网需求 
路由器RouterA、RouterB之间建立IP-Trunk逻辑链路 

IP-Trunk组网图  

 配置Trunk接口NE路由器

适用产品和版本 
适用NE40E/80E产品,版本为(VRP5.30-31)及后续版本 

配置步骤 
步骤 1     配置RouterA 

<Quidway> system-view 

[Quidway] 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] 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] quit 

# 启用IP-Trunk 1接口 

[RouterA] interface ip-trunk 1 

[RouterA-Ip-Trunk1] undo shutdown 

步骤 2     配置RouterB 

<Quidway> system-view 

[Quidway] 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 

步骤 3     验证结果 

在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 

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 



interface Pos2/0/0 

 link-protocol hdlc 

 ip-trunk 1 



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 

·[金桥动态]H3CIE+确定开班7月20日 
·[优惠活动]华三动态 
·[金桥动态]全程金牌讲师讲授,保障顺利考试通过! 
·[知识课堂]【H3C技术】OSPF协议的LSDB分析和路由计算 
·[知识课堂]【H3C技术】组播组管理协议 
·[金桥动态]H3CIE第五期培训班顺利开班,由李振国老师亲自授课 


点击这里给我发消息 点击这里给我发消息 点击这里给我发消息 点击这里给我发消息 点击这里给我发消息


开班信息

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安全认证

热报中

点击咨询开班情况>>

在线咨询