The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco Nexus 1000V commands that begin with the letter N.
To name a VLAN, use the name command. To remove a VLAN name, use the no form of this command.
name name
no name
name |
VLAN name. The range is from 1 to 32. |
The VLAN has no name.
VLAN configuration (config-vlan)
network-admin
This example shows how to name a VLAN:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# vlan 10
n1000v(config-vlan)# name v10
n1000v(config-vlan)#
|
|
---|---|
show nsm |
Displays NSM information. |
show vlan |
Displays VLAN information. |
To set a segment as native on a uplink, use the native network segment command. To remove this command use no form of this command.
native network segment segment_name
no native network segment segment_name
segment_name |
Segment name. The name is a maximum of 64 case-sensitive, alphanumeric characters. |
None.
Global configuration (config)
Network uplink (config-uplink-net)
The command is used to set a VLAN that is carried by the segments as a native VLAN on the uplink interfaces connected to switches. NSM will auto generate a native VLAN configuration inside the uplink profile on issuing this command.
Note Changing the native VLAN causes ports to flap.
This example shows how to configure native segment
n1000v(config)# nsm network uplink LACP
n1000v(config-uplink-net)# native network segment vlan_342
n1000v(config-uplink-net)# end
n1000v# show running-config port-profile LACP
version 5.2(1)SM1(5.1)
port-profile type ethernet LACP
inherit port-profile uplink_network_default_policy
switchport mode trunk
switchport trunk allowed vlan 342
switchport trunk native vlan 342
guid a17cbcc8-216f-4e0e-a965-501476b70965
max-ports 512
description NSM created profile. Do not delete.
state enabled
To configure the network segmentation manager (NSM) IP pool, use the nsm ip pool template command. To remove the configuration, use the no form of this command.
nsm ip pool template name {in | out}
no nsm ip pool template name {in | out}
name |
Group name. The name is a maximum of 64 case-sensitive, alphanumeric characters. |
No NSM IP pool template with the given name exists.
Global configuration (config)
network-admin
See the Cisco Nexus 1000V for Microsoft Hyper-V Network Segmentation Manager Configuration Guide, Release 5.2(1)SM1(5.1) for instructions about how to configure an NSM IP pool template.
This example shows how to configure an IP pool template
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm ip pool template pool10
n1000v(config-ip-pool-template)# description pool
n1000v(config-ip-pool-template)# ip address 172.16.0.7 172.16.0.9
n1000v(config-ip-pool-template)# network 172.16.10.10 255.255.255.0
n1000v(config-ip-pool-template)# exit
To configure the network segmentation manager (NSM) logical network, use the nsm logical network command. To disable the logical network, use the no form of this command.
nsm logical network log_network_name
no nsm logical network log_network_name
log_network_name |
Logical network name. The name is case-sensitive, alphanumeric, and can have up to 64 characters. |
None
Global configuration (config)
network-admin
Use these steps to create a logical network.
•Enter the global configuration mode.
•Enter the command nsm logical network log_network_name to create the logical network. This command will also place you into the config-logical-net sub mode.
•(Optional) While in the config-logical-net sub mode, enter the keyword description followed by a description of the logical network. The description can be up to 256 characters long.
•Exit the config-logical-net sub mode.
This example shows how to create a logical network named IntranetSFO:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm logical network IntranetSFO
n1000v(config-logical-net)# description Network for external Internet connectivity
mode: conf
nsm logical network IntranetSFO
username: admin
n1000v(config-logical-net)# exit
n1000v(config)#show nsm logical network name IntranetSFO
Name: IntranetSFO
Description: Network for external Internet connectivity
This example shows how to disable a logical network named Hyper-v:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
no nsm logical network Hyper-v
n1000v(config)# end
n1000v#
To create a network segmentation manager (NSM) network segment, use the nsm network segment command. To remove a network segment, use the no form of this command.
nsm network segment seg_name
no nsm network segment seg_name
seg_name |
Network segment name. The name is a maximum of 64 case-sensitive, alphanumeric characters. |
None
Global configuration (config)
network-admin
See the Cisco Nexus 1000V for Microsoft Hyper-V Network Segmentation Manager Configuration Guide, Release 5.2(1)SM1(5.1) for instructions about how to configure an NSM network segment.
A network segment defines a Layer 2 network. In this release only VLAN backed network segments are supported. A NSM network segment must be added to a NSM network segment pool.
This example shows how to configure a network segment name VMNetwork:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment VMNetworkA
n1000v(config-net-seg)# switchport access vlan 100
n1000v(config-net-seg)# member-of network segment pool IntranetSJ
n1000v(config-net-seg)# ip pool import template pool10
n1000v(config-net-seg)# publish network segment
n1000v(config-net-seg)# end
n1000v#
To create a network segmentation manager (NSM) network consisting of a collection of network segments, use the nsm network segment pool command. To remove a network segment pool, use the command no option.
nsm network segment pool pool_name
pool_name |
Network segment pool name. The name is alphanumeric, case-sensitive, and has a maximum size of 64 characters. |
None
Global configuration (config)
network-admin
Network segment pools are a collection of network segments. All network segment pools should be part of a logical network.
See the Cisco Nexus 1000V for Microsoft Hyper-V Network Segmentation Manager Configuration Guide, Release 5.2(1)SM1(5.1) for instructions about how to configure an NSM network segment pool.
This example shows how to create a network segment pool named IntranetSJ that is a member of the logical network IntranetSFO:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v# configure terminal
n1000v(config)# nsm network segment pool IntranetSJ
n1000v(config-net-seg-pool)# member-of logical network IntranetSFO
n1000v(config-net-seg-pool)# exit
To configure a network segmentation manager (NSM) network uplink, use the nsm network uplink command. To remove a network uplink, use the no form of this command.
nsm network uplink uplink_name
no nsm network uplink uplink_name
uplink_name |
Uplink network name. The name is alphanumeric, case-sensitive, and have a maximum of 80 characters. |
None
Global configuration (config)
network-admin
network-operator
Uplink networks are collections of network segment pools. An uplink Ethernet port profile is automatically generated from an uplink network configuration command. Inheriting a classification profile configures features on an Ethernet interface. Uplink network objects are published to the Microsoft System Center Virtual Machine Manager (SCVMM). All changes to an uplink Ethernet port profile must be done through the command nsm network uplink uplink_name.
This example shows how to configure an uplink from one network to another:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network uplink NexusUplink
n1000v(config-uplink-net)# import port-profile PortChannelProfile
n1000v(config-uplink-net)# allow nsm network segment pool IntranetSanJose
n1000v(config-uplink-net)# publish nsm network uplink
n1000v(config-uplink-net)# end
This example shows how to configure a trunk uplink network:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network uplink uplink
n1000v(config-uplink-net)# allow nsm network segment pool net-seg-pool
n1000v(config-uplink-net)# allow nsm network segment pool net-seg-pool-1
n1000v(config-uplink-net)# publish network uplink
n1000v(config-uplink-net)# end
This example shows how to configure a trunk uplink network with native VLAN:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network uplink uplink-with-native
n1000v(config-uplink-net)# native-nsm network segment net-seg-100
n1000v(config-uplink-net)# nsm network segment pool net-seg-pool
n1000v(config-uplink-net)# nsm network segment pool net-seg-pool-1
n1000v(config-uplink-net)# publish nsm network uplink
n1000v(config-uplink-net)# end
To configure an uplink profile in port channel mode:
1.Create network-segments with VLANs carried by uplink
2. Associate each network segment to a network segment pool.
3. Create classification profile carrying channel-group command.
4. Create a uplink network object with all required network segment pool under it.
5. Inherit classification profile inside uplink network object.
6. Publish uplink network object to SCVMM.
This example shows how to configure a trunk uplink network in port channel mode:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm logical network Hyper-v
n1000v(config-logical-net)# description "Hyper-v Logic"
n1000v(config-logical-net)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment pool net-seg-pool
n1000v(config-net-seg-pool)# nsm network logical Hyper-v
n1000v(config-net-seg-pool)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment net-seg-101
n1000v(config-net-seg)# switchport access vlan 101
n1000v(config-net-seg)# nsm network segment pool net-seg-pool
n1000v(config-net-seg)# publish network-segment
n1000v(config-net-seg)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment net-seg-102
n1000v(config-net-seg)# switchport access vlan 102
n1000v(config-net-seg)# nsm network segment pool net-seg-pool
n1000v(config-net-seg)# publish network-segment
n1000v(config-net-seg)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# port-profile type ethernet PORT_CHANNEL
n1000v(config-port-prof)# channel-group auto mode on
n1000v(config-port-prof)# state enabled
n1000v(config-port-prof)# no shut
n1000v(config-port-prof)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network uplink trunk
n1000v(config-uplink-net)# nsm network segment pool net-seg-pool
n1000v(config-uplink-net)# import port-profile PORT_CHANNEL
n1000v(config-uplink-net)# publish nsm network uplink
n1000v(config-uplink-net)# end
n1000v#
To configure an uplink profile in trunk mode:
1.Create network segments with VLANs carried by uplink
2. Associate each network segment to a network segment pool.
3. Create a uplink network object with all required network segment pools under it.
4. Publish uplink network object to SCVMM.
This example shows how to configure an uplink profile in trunk mode:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm logical network Hyper-v
n1000v(config-logical-net)# description "Hyper-v Logic"
n1000v(config-logical-net)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment pool net-seg-pool
n1000v(config-net-seg-pool)# nsm network logical Hyper-v
n1000v(config-net-seg-pool)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment net-seg-101
n1000v(config-net-seg)# switchport access vlan 101
n1000v(config-net-seg)# nsm network segment pool net-seg-pool
n1000v(config-net-seg)# publish network-segment
n1000v(config-net-seg)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment net-seg-102
n1000v(config-net-seg)# switchport access vlan 102
n1000v(config-net-seg)# nsm network segment pool net-seg-pool
n1000v(config-net-seg)# publish network-segment
n1000v(config-net-seg)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network uplink trunk
n1000v(config-uplink-net)# nsm network segment pool net-seg-pool
n1000v(config-uplink-net)# publish nsm network uplink
n1000v(config-uplink-net)# end
n1000v#
To Configure an uplink profile in access mode:
1. Create network segment for access VLAN carried by uplink.
2. Associate each network segment to a network segment pool.
3. Create a uplink network object with the network segment pool carrying access VLAN.
4. Declare network segment to be native.
5. Publish the uplink network object to SCVMM.
This example shows how to configure an uplink profile in access mode:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm logical network Hyper-v
n1000v(config-logical-net)# description "Hyper-v Logic"
n1000v(config-logical-net)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment pool access-200
n1000v(config-net-seg-pool)# nsm network logical Hyper-v
n1000v(config-net-seg-pool)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment net-seg-200
n1000v(config-net-seg)# switchport access vlan 200
n1000v(config-net-seg)# nsm network segment pool access-200
n1000v(config-net-seg)# publish network-segment
n1000v(config-net-seg)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network uplink trunk
n1000v(config-uplink-net)# nsm network segment pool access-200
n1000v(config-uplink-net)# native-nsm network segment net-seg-200
n1000v(config-uplink-net)# publish nsm network uplink
n1000v(config-uplink-net)# end
n1000v#
To configure an uplink profile with features:
1.Create network segments with vlans carried by uplink.
2. Associate each network segment to a network segment pool.
3. Create classification profile of type "ethernet" with required features.
4. Create a nsm network uplink object with all required network segment pools under it.
5. Inherit classification profile inside uplink network object.
6. Publish the uplink network object to SCVMM.
This example shows how to configure an Uplink Profile with features:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm logical network Hyper-v
n1000v(config-logical-net)# description "Hyper-v Logic"
n1000v(config-logical-net)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment pool net-seg-pool
n1000v(config-net-seg-pool)# nsm network logical Hyper-v
n1000v(config-net-seg-pool)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment net-seg-101
n1000v(config-net-seg)# switchport access vlan 101
n1000v(config-net-seg)# nsm network segment pool net-seg-pool
n1000v(config-net-seg)# publish network-segment
n1000v(config-net-seg)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network segment net-seg-102
n1000v(config-net-seg)# switchport access vlan 102
n1000v(config-net-seg)# nsm network segment pool net-seg-pool
n1000v(config-net-seg)# publish network-segment
n1000v(config-net-seg)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# port-profile type ethernet PC_Qos
n1000v(config-port-prof)# channel-group auto mode on mac-pinning
n1000v(config-port-prof)# state enabled
n1000v(config-port-prof)# no shut
n1000v(config-port-prof)# end
n1000v#
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# nsm network uplink trunk
n1000v(config-uplink-net)# nsm network segment pool net-seg-pool
n1000v(config-uplink-net)# inherit port-profile PC_Qos
n1000v(config-uplink-net)# publish nsm network uplink
n1000v(config-uplink-net)# end
n1000v#
The following example shows how to create a new uplink network named NexusUplink, how to import a port profile named UplinkNoPortChannel that gives the policy for the uplink, how to associate the uplink network to a network segment pool, and publish the uplink network.
n1000v(config)# nsm network uplink NexusUplink
n1000v(config-uplink-net)# allow network segment pool IntranetSJ
n1000v(config-uplink-net)# import port-profile UplinkNoPortChannel
n1000v(config-uplink-net)# native network segment VMNetworkA
n1000v(config-uplink-net)# system network uplink
n1000v(config-uplink-net)# publish network uplink NexusUplink
n1000v(config-uplink-net)# exit
To enable The Network Time Protocol (NTP), use the ntp enable command. To disable NTP, use the no form of this command.
ntp enable
no ntp enable
This command has no arguments or keywords.
Enabled
Global configuration (config)
network-admin
This example shows how to enable NTP:
n1000v#
ntp enable
This example shows how to disable NTP:
n1000v#
no ntp enable
|
|
---|---|
ntp server |
Configures a remote NTP server. |
show ntp |
Displays NTP statistics. |
To do configure the Network Time Protocol (NTP) peer, use the ntp peer command. To remove the NTP peer, use the no form of this command.
ntp peer host [prefer] [use-vrf vrf]
no ntp peer host [prefer] [use-vrf vrf]
None
Global configuration (config)
network-admin
This example shows how to configure an NTP peer:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
ntp peer 192.0.2.2
|
|
---|---|
show ntp peer |
Displays information about the NTP peer. |
To do configure a Network Time Protocol (NTP) server, use the ntp server command. To remove the NTP server, use the no form of this command.
ntp server host [prefer] [use-vrf vrf]
no ntp server host [prefer] [use-vrf vrf]
None
Global configuration (config)
network-admin
This example shows how to configure an NTP server:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
ntp server 192.0.2.2
|
|
---|---|
show ntp peer |
Displays information about the NTP peer. |
To do configure the Network Time Protocol (NTP) source, use the ntp source command. To remove the NTP source, use the no form of this command.
ntp source addr
no ntp source addr
addr |
IPv4 or IPv6 address of the source. The IPv4 address format is dotted decimal, A.B.C.D. The IPv6 address format is hex A:B::C:D. |
None
Global configuration (config)
network-admin
This example shows how to configure the NTP source:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
ntp source 192.0.2.3
This example shows how to remove the NTP source:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
no ntp source 192.0.2.3
|
|
---|---|
show ntp source |
Displays information about the NTP source. |