The hub-mode enable command sets the VSI attribute of an AC interface to hub.
The undo hub-mode enable command sets the VSI attribute of an AC interface to spoke.
By default, the VSI attribute of an AC interface is hub.
Only the S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H and S6730-H support this command.
Usage Scenario
After the isolate spoken command is run in the VSI view, forwarding isolation is enabled on AC interfaces in a VSI, and all AC interfaces in this VSI have their VSI attribute set to spoke. If one AC interface wants to communicate with other AC interfaces in the same VSI, run the hub-mode enable command on this AC interface to set its VSI attribute to hub.
Prerequisites
Interfaces have been bound to a VSI instance by running the l2 binding command.
# Set the VSI attribute of VLANIF100 to hub.
<HUAWEI> system-view [HUAWEI] mpls l2vpn [HUAWEI-l2vpn] quit [HUAWEI] vsi v100 static [HUAWEI-vsi-v100] pwsignal ldp [HUAWEI-vsi-v100-ldp] vsi-id 100 [HUAWEI-vsi-v100-ldp] quit [HUAWEI-vsi-v100] isolate spoken [HUAWEI-vsi-v100] quit [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] l2 binding vsi v100 [HUAWEI-Vlanif100] hub-mode enable
# Set the VSI attribute of GE0/0/1 to hub.
<HUAWEI> system-view [HUAWEI] mpls l2vpn [HUAWEI-l2vpn] quit [HUAWEI] vsi v101 auto [HUAWEI-vsi-v101] pwsignal bgp [HUAWEI-vsi-v101-bgp] route-distinguisher 100:1 [HUAWEI-vsi-v101-bgp] quit [HUAWEI-vsi-v101] isolate spoken [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] l2 binding vsi v101 [HUAWEI-GigabitEthernet0/0/1] hub-mode enable