Published On: August 6ᵗʰ, 2019 02:04
Cisco Enterprise Network Function Virtualization Infrastructure Software Command Reference
Ports and Port Channel Commands
pnic
pnic name [ adminstatus { up | down } ] [ type { ethernet | port_channel } ] [ bond_mode { active-backup | balance-slb | balance-tcp } ] [ lacp_type { active | passive | off } ] [ member_of portchannel_name] [ trunks vlan_num] [ lldp { enabled | disabled } ]
no pnic name [ adminstatus] [ type] [ bond_mode] [ lacp_type] [ lldp] [ member_of portchannel_name]
Syntax Description
name |
Specifies the name of the port. |
adminstatus |
Brings a port up or down administratively. Valid values are up and down. |
type |
Specifies the type of the port. Valid values are ethernet and port_channel. To create a port channel, you must specify the value as port_channel. |
bond_mode |
Specifies the bond mode for a port channel. Valid values are active-backup, balance-slb, and balance-tcp. Default is balance-tcp. |
lacp_type |
Specifies the LACP type for a port channel. Valid values are off, active, and passive. Default is off. |
member_of portchannel_name |
Adds the port to the specified port channel. |
trunks vlan_num |
Specifies the VLANs. Valid range is from 1 to 4096. Default is VLAN 1. Enter VLANs separated by commas, VLAN ranges separated by dashes, or a combination of both. |
lldp |
Enables or disables LLDP on a port. Valid values are enable and disable. Default is disable. |
Command History
show pnic
show pnic [ name] [ adminstatus | link_state | mac_address | mtu | operational-speed | passthrough | pch_state | refcnt | speed | sriov_intf | stats ]
Syntax Description
name |
Specifies the name of the port for which the information is displayed. |
adminstatus |
Displays the up or down status. |
link_state |
Displays the link state. |
mac_address |
Displays the MAC address. |
mtu |
Displays the maximum transmission unit (MTU) size. |
operational-speed |
Displays the operational speed. |
passthrough |
Displays the passthrough mode. |
pch_state |
Displays the port channel state. |
refcnt |
Displays the reference count. |
speed |
Displays the interface speed. |
sriov_intf |
Displays the SRIOV interface. |
stats |
Displays the statistics. |
Command History
Examples
nfvis# show pnic Name Link Admin MTU Mac Passthrough Speed Op-speed Rx Bytes Packets Errors Dropped Mbps Broadcast Multicast TX Bytes Packets Errors Dropped Collisions Mbps Broadcast Multicast ================================================================================================================================================================================ eth0 up up 9000 d8:b1:90:ff:f5:88 none 1G 1000 1469476983 17749881 0 0 14156964 2888574 198310581 272571 0 0 40 68440 eth1 up up 9000 d8:b1:90:ff:f5:89 none 1G 1000 19826137 329353 0 0 0 325498 4180179 27586 0 0 0 27586 eth2 down up 9000 d8:b1:90:ff:d8:3c none 1G 0 0 0 0 0 0 0 0 0 0 0 0 0 eth3 down up 9000 d8:b1:90:ff:d8:3d none 1G 0 0 0 0 0 0 0 0 0 0 0 0 0 eth4 down up 9000 d8:b1:90:ff:d8:3e none 1G 0 0 0 0 0 0 0 0 0 0 0 0 0 eth5 down up 9000 d8:b1:90:ff:d8:3f none 1G 0 0 0 0 0 0 0 0 0 0 0 0 0
Examples
nfvis# show pnic stats Name Rx Bytes Packets Errors Dropped Mbps Broadcast Multicast TX Bytes Packets Errors Dropped Collisions Mbps Broadcast Multicast ========================================================================================================================================================================= eth0 1469743586 17753343 0 0 14159834 2889066 198318715 272603 0 0 40 68450 eth1 19830637 329428 0 0 0 325573 4181034 27591 0 0 0 27591 eth2 0 0 0 0 0 0 0 0 0 0 0 0 eth3 0 0 0 0 0 0 0 0 0 0 0 0 eth4 0 0 0 0 0 0 0 0 0 0 0 0 eth5 0 0 0 0 0 0 0 0 0 0 0 0 0
Examples
nfvis# show pnic eth1 stats stats receive bytes 19862257 stats receive packets 329955 stats receive errors 0 stats receive dropped 0 stats receive broadcast 0 stats receive multicast 326100 stats transmit bytes 4187361 stats transmit packets 27628 stats transmit errors 0 stats transmit dropped 0 stats transmit broadcast 0 stats transmit multicast 27628
show port-channel
Syntax Description
Command History
Examples
nfvis# show port-channel ---- bondtrue ---- bond_mode: active-backup bond may use recirculation: no, Recirc-ID : -1 bond-hash-basis: 0 updelay: 0 ms downdelay: 0 ms lacp_status: off active slave mac: 00:00:00:00:00:00(none) slave eth1: disabled may_enable: false slave eth2: disabled may_enable: false
show lldp neighbors
To display information about LLDP neighbors, use the show lldp neighbors command in privileged EXEC mode.
Syntax Description
Command History
Examples
nfvis# show lldp neighbors NAME DEVICE ID HOLDTIME CAPS PLATFORM PORTID DESCRIPTION ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- eth0 Switch1623 120 Bridge, Router Cisco IOS Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 15.0(1)EX3, RELEASE SOFTWARE (fc2) Ifname: Gi1/0/4 GigabitEthernet1/0/4 eth1 None 0 None None None None eth2 None 0 None None None None eth3 None 0 None None None None eth4 None 0 None None None None eth5 None 0 None None None None