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