Руководство По Проектированию для Cisco Cisco Nexus 5010 Switch
© 2015 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public Information.
Page 91 of 119
nexus5500-1(config-sync-sp)# interface port-channel 21
nexus5500-1(config-sync-sp-if)# switchport trunk allowed vlan 50,60
nexus5500-1(config-sync-sp-if)# commit
Verification successful...
Proceeding to apply configuration. This might take a while depending on amount of
configuration in buffer.
configuration in buffer.
Please avoid other configuration changes during this time.
Commit Successful
nexus5500-1(config-sync)# switch-profile vpc-config
Switch-Profile started, Profile ID is 1
nexus5500-1(config-sync-sp)# int po21
nexus5500-1(config-sync-sp-if)# vpc 21
nexus5500-1(config-sync-sp-if)# commit
Verification successful...
In most cases, the Ethernet port configuration needs to be performed in configuration terminal mode, while the
PortChannel configuration can be performed in configuration synchronization mode. You should follow this exact
sequence to configure the PortChannel:
●
First, in config sync mode under switch-profile, configure interface Port-channel.
●
Then, in config t mode, assign interfaces to the channel group.
●
Then, in config sync mode under switch-profile, configure interface Port-channel.
Note: Because configuring port profiles may lead to incongruent configurations in which the port profile may be
in the configuration terminal portion of the configuration, and the PortChannel may be in the configuration
in the configuration terminal portion of the configuration, and the PortChannel may be in the configuration
synchronization portion, this chapter does not use both the config-sync feature and port profiles. Although both
features are useful, to avoid being confused by the dependencies, you should use either feature for a given port,
but not both.
The following configuration shows how to use configuration synchronization for a server-facing PortChannel:
nexus5500-1(config-if)# config sync
nexus5500-1(config-sync)# switch-profile vpc-config
Switch-Profile started, Profile ID is 1
nexus5500-1(config-sync-port-prof)# int po11
nexus5500-1(config-sync-sp-if)# vpc 11
nexus5500-1(config-sync-sp-if)# switchport access vlan 50
nexus5500-1(config-sync-sp-if)# commit
You can then assign the interfaces to the PortChannel:
nexus5500-1(config)# int eth1/11
nexus5500-1(config-if)# channel-group 11 mode on
nexus5500-2(config)# int eth1/11
nexus5500-2(config-if)# channel-group 11 mode on