This example shows how to configure a vEthernet interface to use in a PVLAN:
switch# configure terminal
switch(config)# interface vethernet 1
switch(config-if)# switchport access vlan 5
switch(config-if)# switchport mode private-vlan host
switch(config-if)# switchport private-vlan host-association 5
switch(config-if)# show interface vethernet 1
Vethernet1 is up
Port description is gentoo, Network Adapter 1
Hardware is Virtual, address is 0050.5687.3bac
Owner is VM "gentoo", adapter is Network Adapter 1
Active on module 4
VMware DVS port 1
Port-Profile is vm
Port mode is access
5 minute input rate 1 bytes/second, 0 packets/second
5 minute output rate 94 bytes/second, 1 packets/second
Rx
655 Input Packets 594 Unicast Packets
0 Multicast Packets 61 Broadcast Packets
114988 Bytes
Tx
98875 Output Packets 1759 Unicast Packets
80410 Multicast Packets 16706 Broadcast Packets 0 Flood Packets
6368452 Bytes
0 Input Packet Drops 0 Output Packet Drops
switch(config-if)#
Enabling or Disabling a vEthernet Interface
You can enable or disable a vEthernet interface.
Before You Begin
Log in to the CLI in EXEC mode.
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Enters the interface configuration mode for the specified
vEthernet interface (from 1 to 1048575).
switch(config)# interface vethernet
interface-number
Step 2
Enables or disables the vEthernet interface in the running
configuration:
switch(config-if)# [no] shutdown
Step 3
•
shutdown: Disables the vEthernet interface.
•
no shutdown: Enables the vEthernet interface.
(Optional)
Displays the interface status and information.
switch(config-if)# show interface
Step 4
Cisco Nexus 1000V for VMware vSphere Interface Configuration Guide, Release 5.x
40
Configuring Virtual Ethernet Interfaces
Enabling or Disabling a vEthernet Interface