N Commands


This chapter describes the Cisco Nexus 1000V commands that begin with the letter N.

name

To name a VLAN, use the name command. To remove a VLAN name, use the no form of this command.

name name

no name

Syntax Description

name

VLAN name. The range of valid values is 1 to 32.


Defaults

The VLAN has no name.

Command Modes

VLAN configuration (config-vlan)

Supported User Roles

network-admin

Command History

Release
Modification

4.0(4)SV1(1)

This command was introduced.


Examples

This example shows how to name a VLAN:

n1000v# configure terminal
n1000v(config)# vlan 10
n1000v(config-vlan)# name v10
(config-vlan)#

Related Commands

Command
Description

show vlan

Displays VLAN information.


ntp enable

To enable NTP, use the ntp enable command. To disable, use the no command form.

ntp enable

no ntp enable

Syntax Description

This command has no arguments or keywords.

Defaults

Enabled

Command Modes

Global Configuration (config)

Supported User Roles

network-admin

Command History

Release
Modification

4.0(4)SV1(1)

This command was introduced.


Usage Guidelines

Examples

This example shows how to enable NTP:

n1000v# ntp enable

This example shows how to disable NTP:

n1000v# no ntp enable

Related Commands

Command
Description

ntp server

Configures a remote NTP server.


ntp peer

To do configure the Network Time Protocol peer, use the ntp peer command. To remove the peer, use the no form of this command.

ntp peer host [prefer] [use-vrf vrf]

no ntp peer host [prefer] [use-vrf vrf]

Syntax Description

host

Hostname or IP address of the NTP peer.

prefer

(Optional) Specifies this peer as the preferred peer.

use-vrf vrf

(Optional) Specifies the virtual routing and forwarding (VRF) used to reach this peer.


Defaults

None

Command Modes

Global Configuration (config)

Supported User Roles

network-admin

Command History

Release
Modification

4.0(4)SV1(1)

This command was introduced.


Usage Guidelines

Examples

This example shows how to configure an NTP peer:

n1000v(config)# ntp peer 192.0.2.2

Related Commands

Command
Description

show ntp peer

Displays information about the NTP peer.


ntp server

To do configure a Network Time Protocol server, use the ntp server command. To remove the server, use the no form of this command.

ntp server host [prefer] [use-vrf vrf]

no ntp server host [prefer] [use-vrf vrf]

Syntax Description

host

Hostname or IP address of the NTP server.

prefer

(Optional) Specifies this server as the preferred server.

use-vrf vrf

(Optional) Specifies the virtual routing and forwarding (VRF) used to reach this peer.


Defaults

None

Command Modes

Global Configuration (config)

Supported User Roles

network-admin

Command History

Release
Modification

4.0(4)SV1(1)

This command was introduced.


Usage Guidelines

Examples

This example shows how to configure an NTP server:

n1000v(config)# ntp server 192.0.2.2

Related Commands

Command
Description

show ntp peer

Displays information about the NTP peer.


ntp source

To do configure the Network Time Protocol 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

Syntax Description

addr

IPv4 or IPv6 address of the source. The IPv4 address format is dotted decimal, x.x.x.x. The IPv6 address format is hex A:B::C:D.


Defaults

None

Command Modes

Global Configuration (config)

Supported User Roles

network-admin

Command History

Release
Modification

4.0(4)SV1(1)

This command was introduced.


Usage Guidelines

Examples

This example shows how to configure the NTP source:

n1000v(config)# ntp source 192.0.2.3

This example shows how to remove the NTP source:

n1000v(config)# no ntp source 192.0.2.3

Related Commands

Command
Description

show ntp source

Displays information about the NTP source.