2018年2月2日

Cisco NX-OS CLI - Part2

Cisco IOS CLICisco NX-OS CLI
Configuring a Routed Interface
interface gigabitethernet 1/1
ip address 192.168.1.1 255.255.255.0

no shutdown
interface ethernet 1/1
ip address 192.168.1.1/24
no shutdown
Configuring a Switched Interface (VLAN 10)
vlan 10

interface gigabitethernet 1/1

switchport
switchport mode access
switchport access vlan 10

no shutdown
vlan 10

interface ethernet 1/1
switchport
switchport mode access
switchport access vlan 10
no shutdown
Configuring a Switched Virtual Interface (SVI)
Cisco IOS Software does not have the ability to enable or disable SVI interfaces using the feature command.

interface vlan 10

ip address 192.168.1.1 255.255.255.0
no shutdown
feature interface-vlan

interface vlan 10
ip address 192.168.1.1./24
no shutdown
Configuring a Switched Trunk Interface
interface GigabitEthernet 1/1
switchport

switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 10,20
switchport mode trunk

no shutdown
interface ethernet 1/1
switchport mode trunk
switchport trunk allowed vlan 10,20
switchport trunk native vlan 2
no shutdown
Configuring a Routed Trunk Sub-Interface
interface gigabitethernet 1/1
no switchport

no shutdown

interface gigabitethernet1/1.10
encapsulation dot1Q 10
ip address 192.168.1.1 255.255.255.0

no shutdown
interface ethernet 1/1
no switchport
no shutdown

interface ethernet 1/1.10
encapsulation dot1q 10
ip address 192.168.1.1/24
no shutdown

Configuring a Loopback Interface
interface loopback 1
ip address 192.168.1.1 255.255.255.255

no shutdown
interface loopback 1
ip address 192.168.1.1/32
no shutdown
Configuring a Tunnel Interface
Cisco IOS Software does not have the ability to enable or disable Tunnel interfaces using the feature command.

interface Tunnel 1

ip address 192.168.1.1 255.255.255.0
tunnel source 172.16.1.1
tunnel destination 172.16.2.1

no shutdown
feature tunnel

interface tunnel 1
ip address 192.168.1.1/24
tunnel source 172.16.1.1
tunnel destination 172.16.2.1
no shutdown
Configuring an Interface Description
interface gigabitethernet 1/1
description Test Interface
interface ethernet 1/1
description Test Interface
Configuring Jumbo Frames
interface gigabitethernet 1/1
mtu 9216
interface ethernet 1/1
mtu 9216
Configuring Multiple Interfaces (Examples)
interface range gigabitethernet 1/1-2
or

interface range gigabitethernet 1/1, gigabitethernet 2/1
interface ethernet 1/1-2
or
interface ethernet 1/1, ethernet 2/1
Configuring Port Profiles
Cisco IOS Software does not have the ability to configure port profiles.port-profile type ethernet Email-Template
switchport
switchport access vlan 10
spanning-tree port type edge
no shutdown
description Email Server Port
state enabled

interface ethernet 2/1-48
inherit port-profile Email-Template
TDR Cable Diagnostics
test cable-diagnostics tdr interface gigabitethernet 1/1test cable-diagnostics tdr interface etherent 1/1
Configuring the Interface Locator-LED (Beacon)
Cisco IOS Software does not have the ability to enable a located-led per interface.interface ethernet 1/1
beacon
Configuring a Nexus 2000(FEX) Host Interface
Cisco IOS Software does not have the ability to connect a Nexus 2000(FEX).interface ethernet 101/1/1

Verification Command Comparison
The following table lists some useful show commands for verifying the status and troubleshooting an interface.

Cisco NX-OS InterfaceCisco IOS Software InterfaceCommand Description
show interfaceshow interfaceDisplays the status and statistics for all interfaces or a specific interface
show interface ethernet -Displays the status and statistics for a FEX host interface
show interface ethernet  cable-diagnostics tdrshow cable-diagnostics tdr interface type Displays TDR test results
show interface brief-Displays a brief list of the interfaces (type, mode, status, speed, MTU)
show interface capabilitiesshow interface capabilitiesDisplays interface capabilities
show interface countersshow interface countersDisplays interface counters (input/output unicast, multicast & broadcast)
show interface debounceshow interface debounceDisplays the de-bounce status and time in ms for all interfaces
show interface descriptionshow interface descriptionDisplays all interfaces with configured descriptions
show interface ethernetshow interface ethernetDisplays status and statistics for a specific interface
show interface fex-fabric-Displays FEX fabric interface status
show interface flowcontrolshow interface flowcontrolDisplays Flow Control (802.1p) status and state for all interfaces
show interface loopbackshow interface loopbackDisplays status and statistics for a specific loopback interface
show interface mac-address-Displays all interfaces and their associated MAC Addresses
show interface mgmt-Displays status and statistics for the management interface located on the supervisor
show interface port-channelshow interface port-channelDisplays status and statistics for a specific port-channel
show interface priority-flow-control-Displays PFC information
show interface pruningshow interface pruningDisplays trunk interfaces VTP pruning information
show interface snmp-ifindex-Displays SNMP interface index
show interface statusshow interface statusDisplays all interfaces and their current status
show interface switchportshow interface switchportDisplays a list of all interfaces that are configured as switchports
show interface transceivershow interface transceiverDisplays a list of all interfaces and optic information (calibrations, details)
show interface trunkshow interface trunkDisplays a list of all interfaces configured as trunks
show interface tunnel <#>show interface tunnel <#>Displays status and statistics for a specific tunnel interface
show interface vlan <#>show interface vlan <#>Displays status and statistics for a specific VLAN interface
---
show port-profile-Displays all port profile information
show port-profile brief-Displays brief port profile information
show port-profile expand-interface-Displays active profile configuration applied to an interface
show port-profile name-Displays specific port profile
show port-profile sync-status-Displays interfaces out of sync with port profiles
show port-profile usage-Displays interfaces inherited to a port profile

0 回應:

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.