- packet vlan
- password strength-check
- permit (IPv4)
- permit (MAC)
- permit interface
- ping
- pinning
- pinning id
- police
- policy-map
- port-channel load-balance ethernet
- port-profile
- port-security stop learning
- private-vlan association
- private-vlan { community | isolated}
- private-vlan primary
- protocol vmware-vim
- pwd
P Commands
This chapter describes the Cisco Nexus 1000V commands that begin with the letter P.
packet vlan
To identify a packet VLAN, use the packet vlan command. To remove the packet vlan, use the no form of this command.
packet vlan {vlan-number}
no packet vlan {vlan-number}
Syntax Description
vlan-number |
Specifies the packet VLAN ID. The range of values is 1 to 3967 and 4048 to 4093. |
Defaults
None
Command Modes
SVS domain (config-svs-domain)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Examples
This example shows how to create packet VLAN 261:
n1000v# configure terminal
n1000v(config)# svs-domain
n1000v(config-svs-domain)# packet vlan 261
n1000v(config-svs-domain)#
This example shows how to remove the packet VLAN 261:
n1000v# configure terminal
n1000v(config)# svs-domain
n1000v(config-svs-domain)# no packet vlan 261
n1000v(config-svs-domain)#
Related Commands
|
|
---|---|
show running-config |
Displays information about the running configuration on the switch. |
password strength-check
To enable password-strength checking, use the password strength-check command. To disable the checking of password strength, use the no form of this command.
password strength-check
no password strength-check
Syntax Description
This command has no arguments or keywords.
Defaults
This feature is enabled by default.
Command Modes
Global configuration (config)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Examples
This example shows how to enable the checking of password strength:
n1000v# config t
n1000v(config)# password strength-check
n1000v(config)#
This example shows how to disable the checking of password strength:
n1000v# config t
n1000v(config)# no password strength-check
n1000v(config)#
Related Commands
permit (IPv4)
To create an IPv4 access control list (ACL) rule that permits traffic matching its conditions, use the permit command. To remove a rule, use the no form of this command.
General Syntax
[sequence-number] permit protocol source destination [dscp dscp | precedence precedence]
no permit protocol source destination [dscp dscp | precedence precedence]
no sequence-number
Internet Control Message Protocol
[sequence-number] permit icmp source destination [icmp-message] [dscp dscp | precedence precedence]
Internet Group Management Protocol
[sequence-number] permit igmp source destination [igmp-message] [dscp dscp | precedence precedence]
Internet Protocol v4
[sequence-number] permit ip source destination [dscp dscp | precedence precedence]
Transmission Control Protocol
[sequence-number] permit tcp source [operator port [port] | portgroup portgroup] destination [operator port [port] | portgroup portgroup] [dscp dscp | precedence precedence]
User Datagram Protocol
[sequence-number] permit udp source [operator port [port] | portgroup portgroup] destination [operator port [port] | portgroup portgroup] [dscp dscp | precedence precedence]
Syntax Description
Defaults
A newly created IPv4 ACL contains no rules.
If you do not specify a sequence number, the device assigns to the rule a sequence number that is 10 greater than the last rule in the ACL.
Command Modes
IPv4 ACL configuration (config-acl)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
When the device applies an IPv4 ACL to a packet, it evaluates the packet with every rule in the ACL. The device enforces the first rule that has conditions that are satisfied by the packet. When the conditions of more than one rule are satisfied, the device enforces the rule with the lowest sequence number.
Source and Destination
You can specify the source and destination arguments in one of several ways. In each rule, the method you use to specify one of these arguments does not affect how you specify the other. When you configure a rule, use the following methods to specify the source and destination arguments:
•Address and network wildcard—You can use an IPv4 address followed by a network wildcard to specify a host or a network as a source or destination. The syntax is as follows:
IPv4-address network-wildcard
The following example shows how to specify the source argument with the IPv4 address and network wildcard for the 192.168.67.0 subnet:
n1000v(config-acl)# permit tcp 192.168.67.0 0.0.0.255 any
•Address and variable-length subnet mask—You can use an IPv4 address followed by a variable-length subnet mask (VLSM) to specify a host or a network as a source or destination. The syntax is as follows:
IPv4-address/prefix-len
The following example shows how to specify the source argument with the IPv4 address and VLSM for the 192.168.67.0 subnet:
n1000v(config-acl)# permit udp 192.168.67.0/24 any
•Host address—You can use the host keyword and an IPv4 address to specify a host as a source or destination. The syntax is as follows:
host IPv4-address
This syntax is equivalent to IPv4-address/32 and IPv4-address 0.0.0.0.
The following example shows how to specify the source argument with the host keyword and the 192.168.67.132 IPv4 address:
n1000v(config-acl)# permit icmp host 192.168.67.132 any
•Any address—You can use the any keyword to specify that a source or destination is any IPv4 address. For examples of the use of the any keyword, see the examples in this section. Each example shows how to specify a source or destination by using the any keyword.
ICMP Message Types
The icmp-message argument can be the ICMP message number, which is an integer from 0 to 255. It can also be one of the following keywords:
•administratively-prohibited—Administratively prohibited
•alternate-address—Alternate address
•conversion-error—Datagram conversion
•dod-host-prohibited—Host prohibited
•dod-net-prohibited—Net prohibited
•echo—Echo (ping)
•echo-reply—Echo reply
•general-parameter-problem—Parameter problem
•host-isolated—Host isolated
•host-precedence-unreachable—Host unreachable for precedence
•host-redirect—Host redirect
•host-tos-redirect—Host redirect for ToS
•host-tos-unreachable—Host unreachable for ToS
•host-unknown—Host unknown
•host-unreachable—Host unreachable
•information-reply—Information replies
•information-request—Information requests
•mask-reply—Mask replies
•mask-request—Mask requests
•mobile-redirect—Mobile host redirect
•net-redirect—Network redirect
•net-tos-redirect—Net redirect for ToS
•net-tos-unreachable—Network unreachable for ToS
•net-unreachable—Net unreachable
•network-unknown—Network unknown
•no-room-for-option—Parameter required but no room
•option-missing—Parameter required but not present
•packet-too-big—Fragmentation needed and DF set
•parameter-problem—All parameter problems
•port-unreachable—Port unreachable
•precedence-unreachable—Precedence cutoff
•protocol-unreachable—Protocol unreachable
•reassembly-timeout—Reassembly timeout
•redirect—All redirects
•router-advertisement—Router discovery advertisements
•router-solicitation—Router discovery solicitations
•source-quench—Source quenches
•source-route-failed—Source route failed
•time-exceeded—All time exceeded messages
•timestamp-reply—Timestamp replies
•timestamp-request—Timestamp requests
•traceroute—Traceroute
•ttl-exceeded—TTL exceeded
•unreachable—All unreachables
TCP Port Names
When you specify the protocol argument as tcp, the port argument can be a TCP port number, which is an integer from 0 to 65535. It can also be one of the following keywords:
bgp—Border Gateway Protocol (179)
chargen—Character generator (19)
cmd—Remote commands (rcmd, 514)
daytime—Daytime (13)
discard—Discard (9)
domain—Domain Name Service (53)
drip—Dynamic Routing Information Protocol (3949)
echo—Echo (7)
exec—Exec (rsh, 512)
finger—Finger (79)
ftp—File Transfer Protocol (21)
ftp-data—FTP data connections (2)
gopher—Gopher (7)
hostname—NIC hostname server (11)
ident—Ident Protocol (113)
irc—Internet Relay Chat (194)
klogin—Kerberos login (543)
kshell—Kerberos shell (544)
login—Login (rlogin, 513)
lpd—Printer service (515)
nntp—Network News Transport Protocol (119)
pim-auto-rp—PIM Auto-RP (496)
pop2—Post Office Protocol v2 (19)
pop3—Post Office Protocol v3 (11)
smtp—Simple Mail Transport Protocol (25)
sunrpc—Sun Remote Procedure Call (111)
tacacs—TAC Access Control System (49)
talk—Talk (517)
telnet—Telnet (23)
time—Time (37)
uucp—UNIX-to-UNIX Copy Program (54)
whois—WHOIS/NICNAME (43)
www—World Wide Web (HTTP, 8)
UDP Port Names
When you specify the protocol argument as udp, the port argument can be a UDP port number, which is an integer from 0 to 65535. It can also be one of the following keywords:
biff—Biff (mail notification, comsat, 512)
bootpc—Bootstrap Protocol (BOOTP) client (68)
bootps—Bootstrap Protocol (BOOTP) server (67)
discard—Discard (9)
dnsix—DNSIX security protocol auditing (195)
domain—Domain Name Service (DNS, 53)
echo—Echo (7)
isakmp—Internet Security Association and Key Management Protocol (5)
mobile-ip—Mobile IP registration (434)
nameserver—IEN116 name service (obsolete, 42)
netbios-dgm—NetBIOS datagram service (138)
netbios-ns—NetBIOS name service (137)
netbios-ss—NetBIOS session service (139)
non500-isakmp—Internet Security Association and Key Management Protocol (45)
ntp—Network Time Protocol (123)
pim-auto-rp—PIM Auto-RP (496)
rip—Routing Information Protocol (router, in.routed, 52)
snmp—Simple Network Management Protocol (161)
snmptrap—SNMP Traps (162)
sunrpc—Sun Remote Procedure Call (111)
syslog—System Logger (514)
tacacs—TAC Access Control System (49)
talk—Talk (517)
tftp—Trivial File Transfer Protocol (69)
time—Time (37)
who—Who service (rwho, 513)
xdmcp—X Display Manager Control Protocol (177)
Examples
This example shows how to configure an IPv4 ACL named acl-lab-01 with rules permitting all TCP and UDP traffic from the 10.23.0.0 and 192.168.37.0 networks to the 10.176.0.0 network:
n1000v# config t
n1000v(config)# ip access-list acl-lab-01
n1000v(config-acl)# permit tcp 10.23.0.0/16 10.176.0.0/16
n1000v(config-acl)# permit udp 10.23.0.0/16 10.176.0.0/16
n1000v(config-acl)# permit tcp 192.168.37.0/16 10.176.0.0/16
n1000v(config-acl)# permit udp 192.168.37.0/16 10.176.0.0/16
This example shows how to configure an IPv4 ACL named acl-eng-to-marketing with a rule that permits all IP traffic from an IP-address object group named eng_workstations to an IP-address object group named marketing_group:
n1000v# config t
n1000v(config)# ip access-list acl-eng-to-marketing
n1000v(config-acl)# permit ip addrgroup eng_workstations addrgroup marketing_group
Related Commands
permit (MAC)
To create a MAC ACL rule that permits traffic matching its conditions, use the permit command. To remove a rule, use the no form of this command.
[sequence-number] permit source destination [protocol] [cos cos-value] [vlan VLAN-ID]
no permit source destination [protocol] [cos cos-value] [vlan VLAN-ID]
no sequence-number
Syntax Description
Defaults
None
Command Modes
MAC ACL configuration (config-acl)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
A newly created MAC ACL contains no rules.
If you do not specify a sequence number, the device assigns a sequence number that is 10 greater than the last rule in the ACL.
When the device applies a MAC ACL to a packet, it evaluates the packet with every rule in the ACL. The device enforces the first rule that has conditions that are satisfied by the packet. When the conditions of more than one rule are satisfied, the device enforces the rule with the lowest sequence number.
Source and Destination
You can specify the source and destination arguments in one of two ways. In each rule, the method you use to specify one of these arguments does not affect how you specify the other. When you configure a rule, use the following methods to specify the source and destination arguments:
•Address and mask—You can use a MAC address followed by a mask to specify a single address or a group of addresses. The syntax is as follows:
MAC-address MAC-mask
The following example specifies the source argument with the MAC address 00c0.4f03.0a72:
n1000v(config-acl)# permit 00c0.4f03.0a72 0000.0000.0000 any
The following example specifies the destination argument with a MAC address for all hosts with a MAC vendor code of 00603e:
n1000v(config-acl)# permit any 0060.3e00.0000 0000.0000.0000
•Any address—You can use the any keyword to specify that a source or destination is any MAC address. For examples of the use of the any keyword, see the examples in this section. Each of the examples shows how to specify a source or destination by using the any keyword.
MAC Protocols
The protocol argument can be the MAC protocol number or a keyword. The protocol number is a four-byte hexadecimal number prefixed with 0x. Valid protocol numbers are from 0x0 to 0xffff. Valid keywords are the following:
•aarp—Appletalk ARP (0x80f3)
•appletalk—Appletalk (0x809b)
•decnet-iv—DECnet Phase IV (0x6003)
•diagnostic—DEC Diagnostic Protocol (0x6005)
•etype-6000—Ethertype 0x6000 (0x6000)
•etype-8042—Ethertype 0x8042 (0x8042)
•ip—Internet Protocol v4 (0x0800)
•lat—DEC LAT (0x6004)
•lavc-sca—DEC LAVC, SCA (0x6007)
•mop-console—DEC MOP Remote console (0x6002)
•mop-dump—DEC MOP dump (0x6001)
•vines-echo—VINES Echo (0x0baf)
Examples
This example shows how to configure a MAC ACL named mac-ip-filter with a rule that permits all IPv4 traffic between two groups of MAC addresses:
n1000v# config t
n1000v(config)# mac access-list mac-ip-filter
n1000v(config-mac-acl)# permit 00c0.4f00.0000 0000.00ff.ffff 0060.3e00.0000 0000.00ff.ffff ip
Related Commands
permit interface
To specify the interfaces that users assigned to this role can access, use the permit interface command.
To remove the policy restrictions, use the no form of this command.
permit interface interface-list
no permit interface interface-list
Syntax Description
interface-list |
List of one or more interfaces that can be accessed by users with a specified role. |
Defaults
None
Command Modes
Interface configuration (config-role-interface)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
Repeat this command to specify all interface lists that users assigned to this role are permitted to access.
Examples
This example shows how to specify ethernet 2/1-4 as interfaces that users assigned to this role can access:
n1000v# config t
n1000v(config)# role name network-observer
n1000v(config-role)# interface policy deny
n1000v(config-role-interface)# permit interface ethernet 2/1-4
n1000v(config-role-interface)#
This example shows how to remove the policy restrictions for ethernet 2/1-4:
n1000v# config t
n1000v(config)# role name network-observer
n1000v(config-role)# interface policy deny
n1000v(config-role-interface)# no permit interface ethernet 2/1-4
n1000v(config-role-interface)#
Related Commands
ping
To determine the network connectivity to another device using IPv4 addressing, use the ping command.
ping [dest-ipv4-address | hostname | mulitcast multicast-group-address interface [ethernet slot/port | loopback number | mgmt0 | port-channel channel-number | vethernet number]] [count {number | unlimited}] [df-bit] [interval seconds] [packet-size bytes] [source src-ipv4-address] [timeout seconds] [vrf vrf-name]
Syntax Description
Defaults
For the default values, see the "Syntax Description" section for this command.
Command Modes
Any
network-admin
Command History
|
|
---|---|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
To determine the network connectivity to another device using IPv6 addressing, use the ping6 command.
Examples
This example shows how to determine connectivity to another device using IPv4 addressing:
n1000v# ping 172.28.231.246 vrf management
PING 172.28.231.246 (172.28.231.246): 56 data bytes
Request 0 timed out
64 bytes from 172.28.231.246: icmp_seq=1 ttl=63 time=0.799 ms
64 bytes from 172.28.231.246: icmp_seq=2 ttl=63 time=0.597 ms
64 bytes from 172.28.231.246: icmp_seq=3 ttl=63 time=0.711 ms
64 bytes from 172.28.231.246: icmp_seq=4 ttl=63 time=0.67 ms
--- 172.28.231.246 ping statistics ---
5 packets transmitted, 4 packets received, 20.00% packet loss
round-trip min/avg/max = 0.597/0.694/0.799 ms
Related Commands
|
|
---|---|
ping6 |
Determines connectivity to another device using IPv6 addressing. |
pinning
To pin control or packet VLAN traffic to a specific sub group, use the pinning command. To remove the configuration, use the no form of this command.
pinning {control-vlan | packet-vlan} sub-group_id
no pinning {control-vlan | packet-vlan} sub-group_id
Syntax Description
Defaults
None
Command Modes
Port profile configuration (config-port-prof)
network-admin
Command History
|
|
4.0(4)SV1(2) |
This command was introduced. |
Examples
This example shows how to pin traffic on the control VLAN to a sub group 0:
n1000v# config t
n1000v(config)# port-profile SystemProfile1
n1000v(config-port-prof)# pinning control-vlan 3
n1000v(config-port-prof)# show port-profile SystemProfile1
port-profile SystemProfile1
description:
type: ethernet
status: disabled
capability l3control: no
pinning control-vlan: 3
pinning packet-vlan: -
system vlans: 1
port-group: SystemProfile1
max ports: -
inherit:
config attributes:
switchport mode trunk
switchport trunk allowed vlan 1-5
no shutdown
evaluated config attributes:
switchport mode trunk
switchport trunk allowed vlan 1-5
no shutdown
assigned interfaces:
n1000v(config-port-prof)# copy running-config startup-config
This example shows how to pin traffic on the packet VLAN to sub group 0:
n1000v# config t
n1000v(config)# port-profile SystemProfile1
n1000v(config-port-prof)# pinning packet-vlan 0
n1000v(config-port-prof)# show port-profile name SystemProfile1
port-profile SystemProfile1
description:
type: ethernet
status: disabled
capability l3control: no
pinning control-vlan: -
pinning packet-vlan: 0
system vlans: 1
port-group:
max ports: -
inherit:
config attributes:
switchport mode access
switchport access vlan 1
switchport trunk native vlan 1
no shutdown
evaluated config attributes:
switchport mode access
switchport access vlan 1
switchport trunk native vlan 1
no shutdown
assigned interfaces:
n1000v(config-port-prof)# copy running-config startup-config
Related Commands
pinning id
To pin vEthernet traffic to a specific sub-group, use the pinning id command. To remove the configuration, use the no form of this command.
pinning id sub-group-id
no pinning id
Syntax Description
sub-group-id |
ID number of the sub group. Range is from 0 to 31. |
Defaults
None
Command Modes
Interface configuration mode (config-if)
Port profile configuration (config-port-prof)
network-admin
Command History
|
|
4.0(4)SV1(2) |
This command was introduced. |
Examples
This example shows how to pin vEthernet interfaces to sub-group 3:
n1000v(config)# config t
n1000v(config)# interface vethernet 1
n1000v(config-if)# pinning id 0
n1000v(config-if)# show running-config interface vethernet 1
version 4.0(4)SV1(2)
interface Vethernet3
service-policy type qos input policy1
pinning id 0
n1000v(config-if)# exit
n1000v(config)# exit
n1000v# module vem 3 execute vemcmd show pinning
LTL IfIndex PC_LTL VSM_SGID VEM_SGID Eff_SGID
48 1b040000 304 0 0 0
n1000v(config-if)# copy running-config startup-config
Related Commands
police
To control traffic rates, use the police command. To remove control, use the no form of this command.
police {{[cir] {cir [bps|kbps|mbps|gbps] | percent cir-percent} [[bc] {committed-burst [bytes|kbytes|mbytes|ms|us]}] [pir {pir- [bps2|kbps2|mbps2|gbps2] | percent pir-percent} [[be] {extended-burst [bytes2|kbytes2|mbytes2|ms2|us2]}]] [conform {transmit | set-prec-transmit {precedence-number} | set-dscp-transmit {dscp-value | dscp-number} | set-cos-transmit cos-value | set-discard-class-transmit discard-class-value | set-qos-transmit qos-group-value} [exceed {drop1 | set exc-from-field exc-to-field table cir-markdown-map}] [violate {drop2 | set vio-from-field vio-to-field table2 pir-markdown-map}]]}}
no police {{[cir] {cir [bps|kbps|mbps|gbps] | percent cir-percent} [[bc] {committed-burst [bytes|kbytes|mbytes|ms|us]}] [pir {pir [bps2|kbps2|mbps2|gbps2] | percent pir-percent} [[be] {extended-burst [bytes2|kbytes2|mbytes2|ms2|us2]}]] [conform {transmit | set-prec-transmit {precedence-number} | set-dscp-transmit {dscp-value | dscp-number} | set-cos-transmit cos-value | set-discard-class-transmit discard-class-value | set-qos-transmit qos-group-value} [exceed {drop1 | set exc-from-field exc-to-field table cir-markdown-map}] [violate {drop2 | set vio-from-field vio-to-field table2 pir-markdown-map}]]}}
Syntax Description
Defaults
None
Command Modes
Policy map configuration (config-pmap-c-qos)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Examples
This example shows how to control traffic rates:
n1000v#
configure terminal
n1000v(config)#
policy-map pm10
n1000v(config-pmap-qos)#
class class-default
n1000v(config-pmap-c-qos)# police 100000 bps 10000 bytes
n1000v(config-pmap-c-qos)#
Related Commands
|
|
---|---|
show policy-map |
Displays the policy map configuration for all policy maps or for a specified policy map. |
policy-map
To create and configure policy maps, use the policy-map command. To remove policy maps, use the no form of this command.
policy-map {name | type qos name}
no policy-map {name | type qos name}
Syntax Description
name |
Policy map name. The range of valid values is 1 to 40. |
type qos |
Specifies the policy map type as QoS. |
Defaults
The policy map does not exist.
Command Modes
Global configuration (config)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
When you create or configure a policy map, you automatically enter configure policy map mode.
Examples
This example shows how to create policy maps:
n1000v# configure terminal
n1000v(config)# policy-map pm20
n1000v(config-pmap-qos)#
This example shows how to remove policy maps:
n1000v# configure terminal
n1000v(config)# no policy-map pm20
n1000v(config)#
Related Commands
|
|
---|---|
show policy-map |
Displays policy map information. |
port-channel load-balance ethernet
To set the load-balancing method among the interfaces in the channel-group bundle, use the port-channel load-balance ethernet command. To return the system priority to the default value, use the no form of this command.
port-channel load-balance ethernet method [module slot]
no port-channel load-balance ethernet [method [module slot]]
Syntax Description
method |
Load-balancing method. See the "Usage Guidelines" section for a list of valid values. |
module |
(Optional) Specifies a module number. The range is 1 to 66. |
Defaults
Layer 2 packets—source-mac
Layer 3 packets—source-mac
Command Modes
Global configuration (config)
network-admin
Command History
|
|
---|---|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
When you do not specify a module, you are configuring load balancing for the entire device. When you use the module parameter, you are configuring load balancing for the specified modules
Valid method values are as follows:
•dest-ip-port—Loads distribution on the destination IP address and L4 port.
•dest-ip-port-vlan—Loads distribution on the destination IP address, L4 port, and VLAN.
•destination-ip-vlan—Loads distribution on the destination IP address and VLAN
•destination-mac—Loads distribution on the destination MAC address.
•destination-port—Loads distribution on the destination L4 port.
•source-dest-ip-port—Loads distribution on the source and destination IP address and L4 port.
•source-dest-ip-port-vlan—Loads distribution on the source and destination IP address, L4 port, and VLAN.
•source-dest-ip-vlan—Loads distribution on the source and destination IP address and VLAN.
•source-dest-mac—Loads distribution on the source and destination MAC address.
•source-dest-port—Loads distribution on the source and destination L4 port.
•source-ip-port—Loads distribution on the source IP address.
•source-ip-port-vlan—Loads distribution on the source IP address, L4, and VLAN
•source-ip-vlan—Loads distribution on the source IP address and VLAN.
•source-mac—Loads distribution on the source MAC address.
•source-port—Loads distribution on the source port.
•source-virtual-port-id—Loads distribution on the source virtual port ID.
•vlan-only—Loads distribution on the VLAN only.
Use the module argument to configure the module independently for port-channeling and load-balancing mode. When you do this, the remaining module use the current load-balancing method configured for the entire device, or the default method if you have not configured a method for the entire device. When you enter the no argument in conjunction with a module argument, the load-balancing method for the specified module takes the current load-balancing method that is in use for the entire device. If you configured a load-balancing method for the entire device, the specified module uses that configured method, rather than the default source-mac. The per module configuration takes precedence over the load-balancing method configured for the entire device.
Use the option that provides the balance criteria with the greatest variety in your configuration. For example, if the traffic on a port channel is going only to a single MAC address and you use the destination MAC address as the basis of port channel load balancing, the port channel always chooses the same link in that port channel; using source addresses or IP addresses might result in better load balancing.
Examples
This example shows how to set the load-balancing method for the entire device to use the source port:
n1000v(config)#
port-channel load-balance ethernet src-port
n1000v(config)#
Related Commands
|
|
---|---|
show port-channel load-balance |
Displays information on port-channel load balancing. |
port-profile
To create a port profile and enter port-profile configuration mode, use the port-profile command. To remove the port profile configuration, use the no form of this command.
port-profile [type {ethernet | vethernet}] profilename
no port-profile [type {ethernet | vethernet}] profilename
Syntax Description
type |
(Optional) Specify interface of type ethernet or vethernet. The default is vethernet. |
profilename |
Specifies the port profile name. The name can be up to 80 characters in length. |
Defaults
Default type is vethernet.
Command Modes
Global configuration (config)
network-admin
Command History
|
|
4.0(4)SV1(2) |
Port profiles are not classified as uplink, but are, instead, configured as type Ethernet or type vEthernet. |
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
The port profile name must be unique for each port profile on the Cisco Nexus 1000V.
The port profile type can be Ethernet or vEthernet. Once configured, the type cannot be changed.
Defining a port profile type as Ethernet allows the port profile to be used for physical (Ethernet) ports. In the vCenter Server, the corresponding port group can be selected and assigned to physical ports (PNICs).
If a port profile is configured as an Ethernet type, then it cannot be used to configure VMware virtual ports.
Examples
This example shows how to create an Ethernet type port profile with the name AccessProf:
n1000v# configure terminal
n1000v(config-port-prof)
This example shows how to remove the port profile with the name AccessProf:
n1000v# configure terminal
n1000v(config)# no port-profile AccessProf
n1000v(config)
Related Commands
|
|
---|---|
show port-profile name |
Displays information about the port profiles. |
port-security stop learning
To set the Drop on Source Miss (DSM) bit on the port so that it prevents the port from learning new MAC addresses, use the port-security stop learning command. To clear the DSM bit, use the no form of this command.
port-security stop learning
no port-security stop learning
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Any
network-admin
network-operatorr
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Examples
This example shows how to set the DSM bit on the port:
n1000v# port-security stop learning
n1000v#
This example shows how to clear the DSM bit on the port:
n1000v# no port-security stop learning
n1000v#
Related Commands
private-vlan association
To configure an association between a primary and secondary private VLAN, use the private-vlan association command. To remove the association, use the no form of this command.
private-vlan association [{add | remove}] secondary-vlan-ids
no private-vlan association [secondary-vlan-ids]
Syntax Description
add |
Adds a secondary VLAN to a private VLAN list. |
remove |
Removes a secondary VLAN from a private VLAN list. |
secondary-vlan-ids |
IDs of the secondary VLANs to be added or removed. |
Defaults
None
Command Modes
VLAN (config-vlan)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
You must enable the private VLAN feature (feature private-vlan command) before the private VLAN commands are visible in the CLI for configuration.
Examples
This example shows how to associate primary VLAN 202 with secondary VLAN 303:
n1000v#configure t
n1000v(config)# vlan 202
n1000v(config-vlan)# private-vlan association add 303
n1000v(config-vlan)#
Related Commands
private-vlan { community | isolated}
To designate a VLAN as either a community or isolated private VLAN, use the private-vlan {community | isolated} command. To remove the configuration, use the no form of this command.
private-vlan {community | isolated}
no private-vlan {community | isolated}
Syntax Description
community |
Designates the VLAN as a community private VLAN. |
isolated |
Designates the VLAN as an isolated private VLAN. |
Defaults
None
Command Modes
VLAN (config-vlan)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
You must enable the private VLAN feature (feature private-vlan command) before the private VLAN commands are visible in the CLI for configuration.
Examples
This example shows how to configure VLAN 303 as a community private VLAN:
n1000v#configure t
n1000v(config)# vlan 303
n1000v(config-vlan)# private-vlan community
n1000v(config-vlan)#
Related Commands
private-vlan primary
To designate a private VLAN as a primary VLAN, use the private-vlan primary command. To remove the configuration, use the no form of this command.
private-vlan primary
no private-vlan primary
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
VLAN (config-vlan)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
You must enable the private VLAN feature (feature private-vlan command) before the private VLAN commands are visible in the CLI for configuration.
Examples
This example shows how to configure VLAN 202 as the primary VLAN in a private VLAN:
n1000v#configure t
n1000v(config)# vlan 202
n1000v(config-vlan)# private-vlan primary
n1000v(config-vlan)# show vlan private-vlan
Primary Secondary Type Ports
------- --------- --------------- -------------------------------------------
202 primary
n1000v(config-vlan)#
Related Commands
protocol vmware-vim
To enable the VMware VI SDK, use the protocol vmware-vim command. To disable the VMware VI SDK, use the no form of this command.
protocol vmware-vim
no protocol vmware-vim
Syntax Description
This command has no arguments or keywords.
Defaults
The VMware VI SDK is disabled.
Command Modes
SVS connection configuration (config-svs-conn)
network-admin
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Usage Guidelines
The VMware VI SDK is published by VMware and it allows clients to talk to VMware vCenter.
You must first create an SVS connection before you you enable the VMware VI SDK.
Examples
This example shows how to enable the VMware VI SDK.:
n1000v# configure terminal
n1000v(config)# svs connection svs1
n1000v(config-svs-conn)# protocol vmware-vim
n1000v(config-svs-conn)#
Related Commands
|
|
---|---|
show svs connection |
Displays SVS connection information. |
pwd
To view the current directory, use the pwd command.
pwd
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Any
network-admin
network-operator
Command History
|
|
4.0(4)SV1(1) |
This command was introduced. |
Examples
This example shows how to view the current directory:
n1000v# pwd
bootflash:
n1000v#
Related Commands
|
|
---|---|
dir |
Displays the contents of a directory. |