下面的接口都改为Etherent
[LSW1]int Eth-Trunk 1 创建一个eth-trunk 1
[LSW1-Eth-Trunk1]int g0/0/1
[LSW1-GigabitEthernet0/0/1]eth-trunk 1 将接口0/0/1加入eth-trunk 1
[LSW1-GigabitEthernet0/0/1]int g0/0/2
[LSW1-GigabitEthernet0/0/2]eth-trunk 1
[LSW1-GigabitEthernet0/0/2]dis interface Eth-Trunk 1
Eth-Trunk1 current state : DOWN
Line protocol current state : DOWN
Description:
Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
2G, Current BW: 0M, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-ccdc-3fb2
Current system time: 2023-08-09 16:47:36-08:00
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
-----------------------------------------------------
PortName Status Weight
-----------------------------------------------------
GigabitEthernet0/0/1 DOWN 1
GigabitEthernet0/0/2 DOWN 1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 0
LSW2同样也是两个端口加入eth-trunk1
[LSW2]int Eth-Trunk 1
[LSW2-Eth-Trunk1]port link-type access 指定vlan接口为access
[LSW2]vlan 10
[LSW2-vlan10]int eth 1
[LSW2-Eth-Trunk1]port default vlan 10
[LSW2-vlan10]int vlan 10
[LSW2-Vlanif10]ip add 1.1.1.1 24
LSW1也是如此配置