Table Of Contents
Interfaces Command Reference
clear counters
clear ip traffic
description (interface)
interface
ip address
ip default-gateway
ip domain-list
ip domain-lookup
ip domain-name
ip name-server
ip route
show hosts
show interface
show ip interface brief
show ip route
show ip traffic
Interfaces Command Reference
Revised: September 2011
This chapter includes the commands used for configuring interfaces on Cisco MXE-OS devices.
clear counters
To clear interface counters, use the clear counters command.
clear counters {ethernet slot/port | MGT1}
Syntax Description
ethernet
|
Specifies data interface.
|
slot/port
|
Ethernet slot and port values. The range is from 1 to 2.
|
MGT1
|
Specifies management interface.
|
Syntax Description
This command has no keywords or arguments.
Defaults
None
Command Modes
EXEC
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example clears the MGT1 counters:
clear ip traffic
To clear IP statistics, use the clear ip traffic command.
clear ip traffic
Syntax Description
This command has no keywords or arguments.
Defaults
None
Command Modes
EXEC
Supported User Roles
network-admin
network-operator
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example clears the IP interface statistics:
Related Commands
description (interface)
To configure the description of an interface, use the description command. To remove this configuration, use the no form of this command.
description description
no description
Syntax Description
description
|
Maximum of 80 characters.
|
Defaults
None
Command Modes
Interface configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example configures a description for an Ethernet 1/1 interface:
mxe(config)# interface ethernet 1/1
mxe(config-if)# description Ethernet Port 1 on Module 1
Related Commands
Command
|
Description
|
interface
|
Configures Ethernet or management interface.
|
interface
To configure the Ethernet or management interface, use the interface command. To remove this configuration, use the no form of this command.
interface {ethernet slot/port | MGT1}
no interface {ethernet slot/port | MGT1}
Syntax Description
ethernet
|
Specifies data interface.
|
slot/port
|
Ethernet slot and port values. The range is from 1 to 2.
|
MGT1
|
Specifies management interface.
|
Defaults
None
Command Modes
Global configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example configures an Ethernet interface:
mxe(config)# interface ethernet 1/1
Related Commands
ip address
To configure an IP address for an interface, use the ip address command. To remove an IP address configuration, use the no form of this command.
ip address ip-address netmask
no ip address ip-address netmask
Syntax Descriptiondefault-
ip-address
|
Use the A.B.D.C format.
|
netmask
|
Use the A.B.D.C format.
|
Defaults
None
Command Modes
Interface configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
These examples configure an IP address for an Ethernet interface:
mxe(config)# interface ethernet 1/1
mxe(config-if)# ip address 10.194.60.57 255.255.255.0
Related Commands
ip default-gateway
To configure an IP default gateway address for an interface, use the ip default-gateway command. To remove an IP address configuation, use the no form of this command.
ip default-gateway ip-address
no ip default-gateway ip-address
Syntax Descriptiondefault-
ip-address
|
Use the A.B.D.C format.
|
Defaults
None
Command Modes
Interface configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
These examples configure a default gateway for an Ethernet interface:
mxe(config)# interface ethernet 1/1
mxe(config-if)# ip default-gateway 10.194.60.1
Related Commands
ip domain-list
To declare the name(s) of the domain list(s) that Cisco MXE 5600 can use to complete unqualified host names, use the ip domain-list command. To remove an IP domain list name, use the no form of this command
ip domain-list domain-list-name
no ip domain-list domain-list-name
Syntax Description
domain-list-name
|
Maximum of 80 characters.
|
Defaults
None
Command Modes
Global configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
A maximum of ten ip domain-list names can be declared.
Examples
This example configures an ip domain-list name:
mxe(config)# ip domain-list mycompany.com
Related Commands
Command
|
Description
|
show hosts
|
Displays information about Domain Name Server (DNS) configuration.
|
ip domain-lookup
To enable Domain Name Server (DNS) address translation, use the ip domain-lookup command. To disable IP domain lookup, use the no form of this command
ip domain-lookup
no ip domain-lookup
Syntax Description
This command has no keywords or arguments.
Defaults
Disabled
Command Modes
Global configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example enables DNS-based address translation on the Cisco MXE 5600:
mxe(config)# ip domain-lookup
Related Commands
Command
|
Description
|
show hosts
|
Displays information about Domain Name Server (DNS) configuration.
|
ip domain-name
To declare the name of the default domain that the Cisco MXE 5600 will use to complete unqualified host names, use the ip domain-name command. To remove a default domain server, use the no form of this command
ip domain-name default-domain-name
no ip domain-name default-domain-name
Syntax Description
default-domain- name
|
Maximum of 80 characters.
|
Defaults
None
Command Modes
Global configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
The Cisco MXE 5600 appends the declared default-domain name to any host name that does not contain a complete domain name before starting a Domain Name Server (DNS) domain-name lookup.
Examples
This example declares myserver.com as the default domain server:
mxe(config)# ip domain-name myserver.com
Related Commands
Command
|
Description
|
show hosts
|
Displays information about Domain Name Server (DNS) configuration.
|
ip name-server
To configure the IP addresses of Domain Name Servers (DNS), use the ip name-server command. To remove a default domain server, use the no form of this command
ip name-server address [address2...address6]
no ip name-server address [address2...address6]
Syntax Description
address
|
Use the A.B.C.D format.
|
address2...address6
|
(Optional) Use the A.B.C.D format.
|
Defaults
None
Command Modes
Global configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
Up to six IP addresses are allowed. A space must be placed between each IP address.
Examples
This example declares two DNS server IP addresses:
mxe(config)# ip name-server 192.0.2.22 192.0.2.25
Related Commands
Command
|
Description
|
show hosts
|
Displays information about Domain Name Server (DNS) configuration.
|
ip route
To configure a static route, use the ip route command. To remove the static route, use the no form of this command.
ip route ip-prefix netmask ip-forward
no ip route ip-prefix netmask ip-forward
Syntax Description
ip-prefix
|
IP destination prefix. Use the A.B.C.D format.
|
netmask
|
Netmask for the destination prefix. Use the A.B.C.D format.
|
ip-forward
|
IP address of the gateway through which the specified destination can be routed. Use the A.B.C.D format.
|
Defaults
None
Command Modes
Global configuration
Supported User Roles
network-admin
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example creates a static route for destinations with the IP address prefix 10.0.0.0, reachable through the next-hop address 10.194.59.40:
mxe(config)# ip route 10.0.0.0 255.255.255.255 10.194.59.40
Related Commands
Command
|
Description
|
show ip route
|
Displays an IP route entry information.
|
show hosts
To display information about the Domain Name Server (DNS) configuration, use the show host command.
show hosts
Syntax Description
This command has no keywords or arguments.
Defaults
None
Command Modes
EXEC
Supported User Roles
network-admin
network-operator
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example shows DNS configuration information displayed using the show hosts command:
Default domain is myserver.com
Domain list: mycompany.com
Name/address lookup uses domain service
Name servers are 192.0.2.22 192.0.2.25
Related Commands
show interface
To display interface configurations and Cisco MXE-OS statistics, use the show interface command.
show interface [ethernet slot/port | mgt1]
Syntax Description
ethernet
|
(Optional) Displays data interface address and status summary.
|
slot/port
|
(Optional) Ethernet slot and port number. Range is 1 to 2.
|
mgt1
|
(Optional) Displays management interface address and status summary.
|
Defaults
None
Command Modes
EXEC
Supported User Roles
network-admin
network-operator
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
If no parameter is specified the show interface command displays all interfaces available in the system.
Examples
This example displays all Cisco MXE-OS interface configurations:
mxe-node10# show interface
Hardware type is ETHERNET
MAC address is 68:ef:bd:48:5a:83
IP address is 10.200.201.249 netmask is 255.255.255.0
MTU: 1500 bytes, BW: 1000000 Kbit/sec
Last clearing of "show interface" counters never
1409751 input packets 1347424 unicast packets 62319 multicast packets
8 broadcast packets 972273734 bytes
0 input error 0 short frame 0 overrun
0 input discard 0 Rx pause
0 output packets 0 unicast packets 0 multicast packets
0 broadcast packets 0 bytes
0 output error 0 collision 0 deferred 0 late collision
MAC address is 68:ef:bd:48:5a:55
IP address is 10.194.59.249 netmask is 255.255.255.0
MTU: 1500 bytes, BW: 1000000 Kbit/sec
Last clearing of "show interface" counters never
374710 input packets 45585 unicast packets 122800 multicast packets
206325 broadcast packets 63712267 bytes
0 input error 0 short frame 0 overrun
0 input discard 0 Rx pause
113936 output packets 113788 unicast packets 0 multicast packets
148 broadcast packets 156725183 bytes
0 output error 0 collision 0 deferred 0 late collision
This example displays an MGT1 interface configuration and related statistics:
MAC address is 00:e0:0c:00:02:fd
IP address is 10.194.58.222 netmask is 255.255.255.0
Description: Local Management Interface
This example displays an Ethernet interface configuration and related statistics:
mxe# show interface ethernet 1/1
Hardware type is ETHERNET
MAC address is 00:e0:0c:02:01:fd
IP address is 10.194.58.71 netmask is 255.255.255.0
Description: Layer 2 Gigabit Ethernet LAN Interface
Related Commands
show ip interface brief
To display brief summary of IP interface status, use the show ip interface brief command.
show ip interface brief [ethernet slot/port | mgt1]
Syntax Description
ethernet
|
(Optional) Displays data interface address and status summary.
|
slot/port
|
(Optional) Ethernet slot and port number. Range is 1 to 2.
|
mgt1
|
(Optional) Displays management interface address and status summary.
|
Defaults
None
Command Modes
EXEC
Supported User Roles
network-admin
network-operator
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example displays IP information for MGT1:
mxe# show ip interface brief
Interface IP-Address Status Protocol
Ethernet 1/1 10.194.58.95 up up
Related Commands
Command
|
Description
|
show interface
|
Displays interface configurations and Cisco MXE-OS statistics.
|
show ip route
To display an ip route table, use the show ip route command.
show ip route [summary]
Syntax Description
summary
|
(Optional) Displays all routes. This keyword is not supported in Release 1.0.
|
Defaults
None
Command Modes
EXEC
Supported User Roles
network-admin
network-operator
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example displays an IP route table:
Codes: H - host, I - interface, C - Connected
A - need arp resolve, E - ecmp
Destination Gateway Interface Flags
------------------------------------------------------------------------
10.0.0.0/8 0.0.0.0 MGT1 IAC
0.0.0.0/0 10.194.59.40 MGT1 IAS
Related Commands
Command
|
Description
|
no ip route
|
Clears entries in the route table.
|
show ip traffic
To display IP traffic information, use the show ip traffic command.
show ip traffic
Syntax Description
This command has no keywords or arguments.
Defaults
None
Command Modes
EXEC
Supported User Roles
network-admin
network-operator
Command History
Release
|
Modification
|
1.0
|
This command was introduced.
|
Usage Guidelines
None
Examples
This example displays the IP traffic information:
mxe(config)# show ip traffic
IP Statistics for Management Processor
--------------------------------------
937 input errors, 0 no route
Frags: 0 reassembled, 0 couldn't assemble
0 fragmented, 0 couldn't fragment
Bcast: 3374 received, 97 sent
Mcast: 181 received, 0 sent
Drop: 0 no route, 0 out discarded
Rcvd: 0 redirects, 14 unreachable
0 echo, 375 echo reply, 0 mask requests, 0 mask replies, 0 quench
Sent: 0 redirects, 59 unreachable, 375 echo, 0 echo reply
0 mask requests, 0 mask replies, 0 quench, 0 timestamp
0 parameter, 0 time exceeded
Rcvd: 203057 total, 0 errors
Rcvd: 168532 total, 0 errors, 148 no port