華爲路由器Eth-Trunk技術簡介

文章出處:www.net1980.comide

       Eth-Trunk接口是一種能夠動態建立的接口,該類型接口能夠綁定若干物理的以太網接口做爲一個邏輯接口使用。加入到Eth-Trunk接口的以太網接口稱爲成員接口。用戶只需對Eth-Trunk接口進行配置,對這些配置最終會映射到成員接口上。ui

       華爲NE40系列通用交換路由器支持路由模式和交換模式的兩種Eth-Trunk接口,支持兩種模式接口之間的切換。路由模式的Eth-Trunk接口與路由模式的以太網接口相似,能夠配置IP地址,運行各類路由協議、MPLS ×××等多種業務。交換模式的Eth-Trunk接口與交換模式的以太網接口相似,能夠加入VLAN,運行STP等協議。Eth-Trunk接口的主要應用特色有拓展接口帶寬,增長鏈路可靠性以及流量的負載分擔。spa

 

       如下爲你們介紹在華爲NE40路由器上配置Eth-Trunk的方法:.net

 

步驟 1 配置NE40E
  <Quidway> system-view
  [Quidway] sysname NE40E
  建立Eth-Trunk接口,並配置IP地址。
  [NE40E] interface eth-trunk 1
  [NE40E-Eth-Trunk1] ip address 192.1.1.1 24
  [NE40E-Eth-Trunk1] quit
      華爲路由器NE40E、NE80E的Eth-trunk默認狀況下是路由模式的,若是要綁定VLAN,Eth-Trunk接口須要從三層模式切換到二層模式。能夠經過命令將模式更改成交換模式。
  [NE40E] interface eth-trunk 1
  [NE40E-Eth-Trunk1]portswitch
       執行命令portswitch,將Eth-Trunk接口從三層模式切換到二層模式。切換到二層模式時,Eth-Trunk的三層功能和標識被禁止,採用SRU板(主控板)上Meth0接口的MAC地址。執行undo portswitch命令能夠將Eth-Trunk接口從二層模式切換回三層模式。
將端口GE1/0/0、GE2/0/0加入到Eth-Trunk 1中。
  [NE40E] interface gigabitethernet 1/0/0
  [NE40E-GigabitEthernet1/0/0] eth-trunk 1
  [NE40E-GigabitEthernet1/0/0] quit
  [NE40E] interface gigabitethernet 2/0/0
  [NE40E-GigabitEthernet2/0/0] eth-trunk 1
  [NE40E-GigabitEthernet2/0/0] quitorm

 

步驟 2 檢查配置結果接口

在NE40E上執行display interface eth-trunk命令,能夠看到接口狀態爲UP。
[NE40E] 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-fc0e-a421
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
Hash arithmetic : According to MACip

當路由器工做在交換模式的時候使用根據MAC地址進行散列
Hash arithmatic : According to IP
當路由器工做在路由模式的時候使用根據IP地址進行散列
[NE40E] display trunkmembership eth-trunk 1
Trunk ID: 1
used status: VALID
TYPE: ethernet
Number Of Ports in Trunk = 2
Number Of UP Ports in Trunk = 1
operate status: up
Interface GigabitEthernet1/0/0, valid, selected,operate up,weight=1,
standby interface NULL
Interface GigabitEthernet2/0/0, valid, selected,operate down,weight=1,
standby interface NULL路由

原文連接:http://www.net1980.com/2010/09/28/eth-trunk/get

相關文章
相關標籤/搜索