2-2Configuring Monitor LinkConfiguration PrerequisitesBefore assigning a port to a monitor link group, make sure the port is not the member port of anyaggregation group.Configuration ProcedureFollow these steps to configure monitor link:To do… Use the command… RemarksEnter system view system-view —Create a monitor link group and entermonitor link group view monitor-link group group-id RequiredIn monitor linkgroup viewport interface-typeinterface-number uplinkConfigure theuplink for themonitor link group In Ethernet portview or Layer 2aggregateinterface viewport monitor-link groupgroup-id uplinkUse either approachRepeat this step toadd more uplink portsIn monitor linkgroup viewport interface-typeinterface-number downlinkConfigure thedownlink for themonitor link groupIn Ethernet portview or Layer 2aggregateinterface viewport monitor-link groupgroup-id downlinkUse either approachRepeat this step toadd more downlinkportsz A port can be assigned to only one monitor link group.z You are recommended to configure uplink ports prior to downlink ports, thus avoiding undesireddown/up state changes on the downlink ports.Monitor Link Configuration ExampleNetwork requirementsGigabitEthernet1/0/1 and GigabitEthernet1/0/2 of a device are up. Configure GigabitEthernet1/0/2 tochange its up/down state as GigabitEthernet1/0/1.Configuration procedure system-view[Sysname] monitor-link group 1[Sysname-mtlk-group1] port gigabitethernet 1/0/1 uplink[Sysname-mtlk-group1] port gigabitethernet 1/0/2 downlink