ethtrunkmode
Ⅰ 華為NE40埠鏡像,一對一和一對多,流量過濾
鏡像口:Eth-trunk11
觀測口:GE5/1/1,GE5/1/2,GE5/1/3
這個條命令」port-mirroring to observe-index 33 34 35「的值可以從1-64,可以一個也可以多個。一對一採用一個即可,1對多則多個。
配置:
interface Eth-Trunk11
port-mirroring inbound
port-mirroring outbound
port-mirroring to observe-index 33 34 35
#
interface GigabitEthernet5/1/1
port-observing observe-index 33
#
interface GigabitEthernet5/1/2
port-observing observe-index 34
#
interface GigabitEthernet5/1/3
port-observing observe-index 35
這樣R1和R2交互的流量都會復制一份到觀測口GE5/1/1-3上。如果流量過大可以考慮做策略控制,最後在鏡像口Eth-Trunk11下調用。當然ACL要自己玩。config模板如下:
acl number 2001
rule 5 permit source x.x.x.x 0
#
acl ipv6 number 2001
rule 5 permit source xxxx:xxxx::x 0
#
traffic classifier A
if-match acl 2001
if-match ipv6 acl 2001
#
traffic behavior B
port-mirroring enable
#
traffic policy C
share-mode
classifier A behavior B
#
interface Eth-Trunk11
traffic-policy C inbound
traffic-policy C outbound
注意一點是這個策略是會針對所有的抓包機,如果抓包機抓取不同的業務流量,建議還是從抓包機上做過濾。
Ⅱ Eth-trunk的2種模式理解
你第一個配置里g0/0/2的eth-trunk2應該是eth-trunk1,寫錯了。
第一種手工配置,是沒有辦法檢測單通的故障的,只要介面收到光,兩個介面都在trunk里。而第二種配置,會發報文給對端,對端回了,介面才會加入;而且你配置了需要兩個介面active,斷了一個介面,整個捆綁介面也會down。
Ⅲ 華為靜態鏈路聚合配置
華為鏈路聚合分為兩種:
● 手動負載均衡模式:在這種模式下,Eth-Trunk的建立、成員介面的加入都是手工配置的,沒有協議
的參與。在該模式下所有活動鏈路都參與數據轉發,平均分坦流量。如果某條活動鏈路出現故障,鏈
路聚合組自動在剩餘的活動鏈路上平均分配流量。
● LACP模式:在LACP模式中,鏈路兩端的設備相互發送LACP報文,協商聚合參數。協商完成後,兩台
設備確定活動介面和非活動介面。LACP模式需要的動創建一個Eth-Trunk口,並添加成員。LACP模式
也叫M:N模式,M代表活動成員鏈路。N代表非活動鏈路,用於冗餘備份。LACP與手動負載均衡的區別在
於,在LACP模式中,有一些鏈路充當備份鏈路,如果有一條活動鏈路發生故障,該鏈路傳輸的數據被
切換到一條優先順序最高的備用鏈路上,這條備用鏈路轉變為活動狀態。而在手動負載均衡模式中,所
有的成員都處於轉發狀態。
Ⅳ 關於三層交換機Eth-Trunk垮網段通信問題
老弟,既然是跨網通信肯定要用三層技術了,既然是三層技術怎麼會在LSW1和LSW2上開trank呢,那二層的技術。
如果想把那3根線全用上,可以起個Port-channel
int range gi 0/0/1 -3
channel-group 1 mode on/active
no switchport
ip add <你自己定>
no shutdown
回到config下面
ip routing
把默認路由都指到剛剛做的port-channel上就行了。
ip route 0.0.0.0 0.0.0.0 port-channel1
LSW1和LSW2上都這做就行了。
Ⅳ 華為S9300 eth-trunk介面一個UP一個down
這個情況有可能是正常呀;你這個聚合口中有一個物理口沒有起來,建議查看一下對端設備埠是否與93配置一樣(如雙工、速率等)又或者是這的埠的尾纖中斷或光衰過大引起
Ⅵ eth-trunk
只能實現活動鏈路流量的負載分擔;
手工完成eth-trunk介面的建立、成員埠的加入、都是活動介面;
實現活動鏈路流量的負載分擔,同時可實現非活動鏈路的冗餘備份;
手工完成eth-trunk介面的建立、成員埠的加入,LACP協議負責確定活動介面;
LACP協議協商失敗後,eth-trunk介面down,成員埠都不能轉發流量;
LACP協商失敗後,eth-trunk介面down,成員介面繼承屬性獨立轉發流量;
1、系統LACP優先順序數值越小越優先;
2、系統MAC地址數值越小越優先;
1、介面LACP優先順序數值越小越優先;
2、介面ID數值越小越優先;
1、src-ip
2、dst-ip
3、src-dst-ip
4、src-mac
5、dst-mac
6、src-dst-mac
成員埠超過最大活動介面數,成員埠按優先順序組成M:N冗餘備份;
優先順序高的介面故障後恢復,等待搶占延遲時間超時後,從備用介面變為活動介面;
以SW1為LACP主動端,SW2為LACP被動端,進行靜態LACP鏈路聚合配置:
SW1:
#
lacp priority 100
#
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
mode lacp-static
load-balance src-dst-mac
lacp preempt enable
max active-linknumber 2
#
interface GigabitEthernet0/0/1
eth-trunk 1
#
interface GigabitEthernet0/0/2
eth-trunk 1
#
interface GigabitEthernet0/0/3
eth-trunk 1
lacp priority 100
#
SW2:
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
mode lacp-static
load-balance src-dst-mac
#
interface GigabitEthernet0/0/1
eth-trunk 1
#
interface GigabitEthernet0/0/2
eth-trunk 1
#
interface GigabitEthernet0/0/3
eth-trunk 1
Ⅶ 華為鏈路聚合配置
配置鏈路聚合
1、創建聚合組
sys
interface eth-trunk 2
2、配置聚合模式為手工模式
interface eth-trunk 2
mode manual load-balance 表示手工模式
mode lacp lacp模式,可以自動檢測鏈路是否錯誤;
3、將介面成員加入聚合組
interface eth-trunk 2
trunkport g1/0/1 to 1/0/3 mode { active | passive }
或者進到介面模式下:
interface g1/0/1
eth-trunk 2 mode { active | passive }
注意:
一個乙太網介面只能加入到一個Eth-Trunk介面;
當成員介面加入Eth-Trunk後,學習MAC地址或ARP地址時是按照Eth-Trunk來學習的,而不是按照成員介面來學習;
刪除聚合組時需要先刪除聚合組中的成員介面
4、配置鏈路聚合的負載分擔方式(可選)
Eth-Trunk的負載分擔是逐流進行的,逐流負載分擔能保證包的順序,保證了同一數據
流的幀在同一條物理鏈路轉發。而不同數據流在不同的物理鏈路上轉發從而實現分擔負載;
可以配置普通負載分擔模式,基於報文的IP地址或MAC地址來分擔負載;
由於負載分擔只對出方向的流量有效,因此鏈路兩端介面的負載分擔模式可以不一致,兩端互不影響;
配置普通負載分擔方式:
interface eth-trunk 2
load-balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dstmac }
dst-ip(目的IP地址)模式:根據目的IP地址進行負載分擔;
dst-mac(目的MAC地址)模式;
src-ip(源IP地址)模式;
src-mac(源MAC地址)模式;
src-dst-ip(源IP地址異或目的IP地址)模式:根據源IP異或目的IP地址的結果進行負載分擔。
src-dst-mac(源MAC地址異或目的MAC地址)模式;
5、檢查配置結果
display eth-trunk 2 查看Eth-Trunk的配置信息;
display trunkmembership eth-trunk 2,查看Eth-Trunk的成員介面信息
Ⅷ 華為交換機命令,IT夥伴們,幫忙解釋下下面命令的啊
Eth-Trunk介面是一種可以動態創建的介面,該類型介面可以綁定若干物理的乙太網介面作為一個邏輯介面使用。加入到Eth-Trunk介面的乙太網介面稱為成員介面,用戶只需對Eth-Trunk介面進行配置,對這些配置最終會映射到成員介面上。Eth-Trunk介面有路由模式和交換模式之分。路由模式的Eth-Trunk介面與路由模式的乙太網介面類似,可以配置IP地址,運行各種路由協議、MPLS VPN等多種業務;交換模式的Eth-Trunk介面與交換模式乙太網介面類似,可以加入VLAN,運行STP等協議。
Eth-Trunk介面應用特點有拓展介面帶寬,增加鏈路可靠性以及流量的負載分擔。
Universal Media Gateway 通用媒體網關
Ⅸ 華為交換機防止環路配置
直接把兩條交換機之間的trunk互聯口。做成
eth-trunk 1
鏈路聚合。交換機會把這兩個埠虛擬成一個端虧正口。
命令如下。
interface eth-trunk 1
port link-type trunk
interface g0/0/1
eth-trunk 1
interface g0/0/2
eth-trunk 1
那麼這兩個口就聚合了
兩台交換機都這么數旦設置。
還有,你模擬器裡面默認開啟了stp協議。ensp默認的是 stp mode mstp
有這個協議在,一般環不了。銷畢悔
Ⅹ 華為路由器上多配了個eth-trunk,該怎麼刪除它啊,eth-trunk裡面已經沒有介面了為什麼還是刪不掉啊。。。
[lsw6]dis cu 得Eth-Trunk3到以下信息
#
interface Eth-Trunk3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
mode lacp-static
#
[lsw6]int Eth-Trunk3 #進入Eth-Trunk3
[lsw6-Eth-Trunk3]undo mode #刪除運行模式不用加lacp-static
[lsw6-Eth-Trunk3]undo port trunk allow-pass vlan all #刪除所有連接vlan
[lsw6-Eth-Trunk3]port trunk allow-pass vlan 1 #刪除默認可通過的vlan1(新版)
[lsw6-Eth-Trunk3]undo port link-type #刪除通信模式
[lsw6-Eth-Trunk3]q #退出Eth-Trunk3
[lsw6]undo interface Eth-Trunk 3 #在系統示圖下刪除interface Eth-Trunk 3記得要有interface不然刪不了。
好了你了[lsw6]dis cu #Eth-Trunk3不見了