Link Dependency Commands
Use these commands to make the link status of ports dependent on the link status of other ports.
Link dependency allows the link status of specified ports to be dependent on the link status of one port or many ports. Consequently, if a port on which other ports depend loses a link, the dependent ports either become administratively disabled and are brought down or become administratively enabled and are brought up.
link state group action
M4250
M4350
Use this command to indicate if the downstream interfaces of a specified group must mirror or invert the status of the upstream interfaces. The default configuration for a group is down. That is, the downstream interfaces mirror the upstream link status by going down when all upstream interfaces are down. Specifying the up keyword allows the downstream interfaces to come up when all upstream interfaces are down.
| Default | down |
| Format | link state group group-id action {up | down} |
| Mode | Global Config |
no link state group action
Use this command to reset the link state action for downstream interfaces to the default action (down).
| Format | no link state group group-id action |
| Mode | Global Config |
link state group downstream
M4250
M4350
Use this command to add a group of interfaces to the downstream interface list. Adding an interface to a downstream list brings the interface down until an upstream interface is added to the group. The link status then follows the interface that is specified in the link state group upstream command. To prevent interfaces from being brought down, enter the link state group upstream command before you enter the link state group downstream command.
| Format | link state group group-id downstream |
| Mode | Interface Config |
no link state group downstream
Use this command to remove a group of interfaces from the downstream list.
| Format | no link state group group-id downstream |
| Mode | Interface Config |
link state group upstream
M4250
M4350
Use this command to add a group of interfaces to the upstream interface list.
An interface that is defined as an upstream interface cannot also be defined as a downstream interface in the same link state group or as a downstream interface in a different link state group if either configuration creates a circular dependency between groups.
| Format | link state group group-id upstream |
| Mode | Interface Config |
no link state group upstream
Use this command to remove a group of interfaces from the upstream list.
| Format | no link state group group-id upstream |
| Mode | Interface Config |
show link state group
M4250
M4350
Use this command to display information about all configured link-dependency groups or a specific link-dependency group.
| Format | show link state group [group-id] |
| Mode | Privileged EXEC |
Command example:
This example displays information about all configured link-dependency groups.
(Switching) #show link-state group
GroupId Downstream Interfaces Upstream Interfaces Link Action Group State
------- -------------------------- -------------------- ----------- -----------
1 2/0/3-2/0/7,2/0/12-2/0/17 2/0/12-2/0/32,0/3/5 Link Up Up
4 2/0/18,2/0/27 2/0/22-2/0/33,0/3/1 Link Up Down
Command example:
This example displays information about a specific link-dependency group.
(Switching) #show link state group 1
GroupId Downstream Interfaces Upstream Interfaces Link Action Group State
------- -------------------------- -------------------- ----------- -----------
1 2/0/3-2/0/7,2/0/12-2/0/17 2/0/12-2/0/32,0/3/5 Link Up Up
show link state group detail
M4250
M4350
Use this command to display detailed information about the state of upstream and downstream interfaces for a selected link-dependency group. The Group Transitions field shows a count of the number of times that the downstream interface went into its action state as a result of the upstream interfaces link state.
| Format | show link state group group-id detail |
| Mode | Privileged EXEC |
Command example:
(Switching) #show link state group 1 detail
GroupId: 1
Link Action: Up
Group State: Up
Downstream Interface State:
Link Up: 2/0/3
Link Down: 2/0/4-2/0/7,2/0/12-2/0/17
Upstream Interface State:
Link Up: -
Link Down: 2/0/12-2/0/32,0/3/5
Group Transitions: 0
Last Transition Time: 00:52:35 (UTC+0:00) Nov 3 2015