- Preface
- Product Overview
- Using the Command Line
- Configuring the Interfaces
- IP Mobility
- Introduction to Radio Aware Routing and MANET
- Understanding and Configuring DLEP
- Configuring R2CP
- Configuring PPPoE
- OSPFv3 Address Families
- Configuring OSPFv3 for a MANET
- Configuring EIGRP in a MANET
- Understanding and Configuring IP Multiplexing
- Zeroization
- Command Reference
- System Message Overview
- Technical Support Reference
Configuring the Interfaces
This chapter provides the following major sections to describe how to configure and verify a router-to-modem interface.
Note For complete command syntax and usage, see Appendix A, “Command Reference.”
Using the Interface Command
The following general instructions apply to all interface-configuration processes:
Step 1 At the privileged EXEC prompt, enter the configure terminal command to enter global configuration mode:
Step 2 In global configuration mode, enter the interface command. Identify the interface type and the number of the connector on the interface card. The following example shows how to select a fast Ethernet interface of 0:
Note You do not need to add a space between the interface type and interface number. For example, in the preceding line you can specify either fastEthernet0/0 or fastEthernet 0/0.
Step 3 Interface numbers are assigned at the factory at the time of installation. Enter the show interfaces EXEC command to see a list of all interfaces installed on your router. A report is provided for each interface that your router supports, as shown in this display:
Step 4 Follow each interface command with the interface-configuration commands your particular interface requires. The commands you enter define the protocols and applications that run on the interface. The commands are collected and applied to the interface command until you enter another interface command or press Ctrl-Z to exit interface configuration mode and return to privileged EXEC mode.
Step 5 You can use the exit command to exit interface configuration mode and return to global configuration mode.
Step 6 After you configure an interface, you can check the status of the interface by using the EXEC show commands listed in the “Monitoring and Maintaining Interfaces” section.
Configuring Interfaces
The following subsections describe interface configuration procedures:
Configuring an IP Address
To configure an IPv4 address and subnet mask on an interface, perform the following task:
|
|
|
---|---|---|
|
||
|
Example
The following example shows how to set the IPv4 address 10.108.1.27 with subnet mask 255.255.255.0 on interface gigabitEthernet 0/0:
Adding a Description for an Interface
You can add a description about an interface to help you remember its function. The description displays in the output of the following commands: show configuration, show running-config, and
show interfaces.
To add a description for an interface, enter the following command in interface configuration mode:
|
|
---|---|
|
Examples
This example shows how to add the description Operations on gigabitEthernet interface 0/0
:
This example shows how to verify the configuration:
Monitoring and Maintaining Interfaces
The following sections describe how to monitor and maintain the interfaces:
Monitoring Interface and Controller Status
The router contains commands that you can enter at the EXEC prompt to display information about the interface. The following table lists some of the interface monitoring commands. You can display the full list of show commands by entering the show ? command at the EXEC prompt. These commands are fully described in the Interface Command Reference.
To display information about the interface, enter any of the following commands in user EXEC mode:
This example shows how to display information about fastEthernet interface 0/0:
Clearing and Resetting the Interface Counters
To clear the interface counters shown with the show interfaces command, enter the following command:
|
|
---|---|
|
This example shows how to clear and reset the counters on Gigabit Ethernet interface 0/0:
The clear counters command (without any arguments) clears all the current interface counters from all interfaces.
Note The clear counters command does not clear counters retrieved with SNMP; it clears only those counters displayed with the EXEC show interfaces command.