注意事项
R1配置
[R1-Eth-Trunk1]undo portswitch
[R1]int Eth-Trunk 1
[R1-GigabitEthernet0/0/0]eth-trunk 1
[R1-GigabitEthernet0/0/1]eth-trunk 1
[R1]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 1
The number of interface that is DOWN in Protocol is 3
Interface IP Address/Mask Physical Protocol
Eth-Trunk1 unassigned up down
GigabitEthernet0/0/1 unassigned up down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
[R1]int Eth-Trunk 1
[R1-Eth-Trunk1]ip add 192.168.1.1 255.255.255.0
查看三层配置结果
[R1]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
Eth-Trunk1 192.168.1.1/24 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
查看二层配置结果
[R1]display interface brief
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
^down: standby
(e): ETHOAM down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface PHY Protocol InUti OutUti inErrors outErrors
Eth-Trunk1 up up 0% 0% 0 0
GigabitEthernet0/0/0 up up 0% 0% 0 0
GigabitEthernet0/0/1 up up 0% 0% 0 0
GigabitEthernet0/0/2 down down 0% 0% 0 0
NULL0 up up(s) 0% 0% 0 0
R2 配置
[R2]int Eth-Trunk 1
[R2-Eth-Trunk1]undo portswitch
[R2-Eth-Trunk1]int gi0/0/1
[R2-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[R2-GigabitEthernet0/0/1]int gi0/0/0
[R2-GigabitEthernet0/0/0]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[R2]int Eth-Trunk 1
[R2-Eth-Trunk1]ip add 192.168.1.2 255.255.255.0