Hosts are usually connected to an external network through a default gateway. If the outbound interface of the default gateway fails, the hosts cannot communicate with the external network, and service packets cannot be transmitted properly. The port protection function resolves this problem. Two interfaces on a switch can form a port protection group without changing the networking, implementing interface backup in active/standby mode. When the active interface fails, services are immediately switched to the standby interface, ensuring non-stop service transmission.
The active interface carries service data when working properly. When the active interface fails and goes Down, the switch automatically switches services to the standby interface to ensure service transmission and improve switch reliability. Services carried on the standby interface are not switched back to the active interface after the active interface recovers and are switched back only when the standby interface is faulty.
A port protection group contains only an active interface and a standby interface.
Configure a port protection group, and configure GE1/0/1 as the active interface and GE1/0/2 as the standby interface.
<HUAWEI> system-view [HUAWEI] port protect-group 1 [HUAWEI-protect-group1] protect-group member gigabitethernet 1/0/1 master [HUAWEI-protect-group1] protect-group member gigabitethernet 1/0/2 standby