Eth-Trunk配置-手動模式


手工模式

 

 

SW1配置:


[SW1]interface et
[SW1]interface Eth-Trunk 10 #設置trunk虛擬端口
[SW1-Eth-Trunk10]trunkport gi
[SW1-Eth-Trunk10]trunkport GigabitEthernet 0/0/1 to 0/0/3 #將1-3物理端口加入trunk虛擬端口
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk10]
Oct 30 2020 01:48:44-08:00 SW1 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk10
has turned into UP state.
Oct 30 2020 01:48:45-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 4095.
[SW1-Eth-Trunk10]q
[SW1]dis eth-trunk 10 #查看trunk配置
Eth-Trunk10's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 3
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Up 1       #手動配置的端口自動up,不管對端有沒有up
GigabitEthernet0/0/2 Up 1
GigabitEthernet0/0/3 Up 1

 

SW2配置:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys SW2    #命名SW2
[SW2]int
[SW2]interface et
[SW2]interface Eth-Trunk
Oct 30 2020 01:59:17-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 409
^
Error:Incomplete command found at '^' position.
[SW2]interface Eth-Trun
[SW2]interface Eth-Trunk 12    #創建trunk12端口
[SW2-Eth-Trunk12]int g 0/0/1    #切換至0/0/1端口
[SW2-GigabitEthernet0/0/1]et
[SW2-GigabitEthernet0/0/1]eth-trunk 12  #在0/0/1端口直接輸入eth-trunk 12就加入了trunk口
Info: This operation may take a few seconds. Please wait for a moment...
Oct 30 2020 02:00:08-08:00 SW2 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk12
has turned into UP state.done.
[SW2-GigabitEthernet0/0/1]int g 0/0
Oct 30 2020 02:00:17-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 4095.
^
Error: Unrecognized command found at '^' position.
[SW2-GigabitEthernet0/0/1]int g 0/0/2
[SW2-GigabitEthernet0/0/2]et
[SW2-GigabitEthernet0/0/2]eth-trunk 12
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-GigabitEthernet0/0/2]int g 0/0/
Oct 30 2020 02:00:47-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of record
[SW2-GigabitEthernet0/0/2]
[SW2-GigabitEthernet0/0/2]int g 0/0/3
[SW2-GigabitEthernet0/0/3]et
[SW2-GigabitEthernet0/0/3]eth-trunk 12
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-GigabitEthernet0/0/3]
Oct 30 2020 02:01:17-08:00 SW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 7, the c
hange loop count is 0, and the maximum number of records is 4095.
[SW2-GigabitEthernet0/0/3]q     
[SW2]dis et
[SW2]dis eth-trunk 12      #查看trunk口配置
Eth-Trunk12's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 3
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Up 1     #自動up 權重默認為1
GigabitEthernet0/0/2 Up 1
GigabitEthernet0/0/3 Up 1

--------------------------------------------------------------------------------------------------------------------

shutdown一個端口測試

[SW1-GigabitEthernet0/0/1]shu
[SW1-GigabitEthernet0/0/1]shutdown
[SW1-GigabitEthernet0/0/1]
Oct 30 2020 02:17:45-08:00 SW1 %%01PHY/1/PHY(l)[0]: GigabitEthernet0/0/1: cha
nge status to down
Oct 30 2020 02:17:46-08:00 SW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.
[SW1-GigabitEthernet0/0/1]dis eth 10
Eth-Trunk10's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Down 1
GigabitEthernet0/0/2 Up 1
GigabitEthernet0/0/3 Up 1

 

<SW2>dis eth 12
Eth-Trunk12's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Down 1
GigabitEthernet0/0/2 Up 1
GigabitEthernet0/0/3 Up 1

 

 關閉eth-trunk

進入端口 undo eth-trunk

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM