Table Of Contents
Basic Router Configuration
Before You Configure Your Network
Configuring Basic Parameters
Configuring Global Parameters
Configuring the Ethernet Interface
Configuration Example
Verifying Your Configuration
Configuring the Dialer Interface
Configuration Example
Verifying Your Configuration
Configuring the Loopback Interface
Configuration Tasks
Sample Configuration
Verifying Your Configuration
Configuring the Asynchronous Transfer Mode Interface
AAL5SNAP Encapsulation Configuration Example
Verifying Your Configuration
AAL5MUX PPP Encapsulation Configuration Example
Verifying Your Configuration
Configuring Command-Line Access to the Router
Configuration Example
Configuring Bridging
Configuration Example
Verifying Your Configuration
Configuring Static Routing
Configuration Example
Verifying Your Configuration
Configuring Dynamic Routing
Configuring RIP
Configuration Example
Verifying Your Configuration
Configuring IP Enhanced IGRP
Configuration Example
Verifying Your Configuration
Configuring Addressing Parameters
Configuring NAT
Configuration Example
Verifying Your Configuration
Configuring Easy IP (Phase 1)
Configuring Easy IP (Phase 2)
Configuring DHCP
Configuring DHCP Client Support
Configuration Example
Configuring DHCP Server
Configuration Example
Verifying Your Configuration
Configuring the DHCP Relay
Configuration Example
Verifying Your Configuration
Configuring TACACS+
Configuring an Extended Access List
Configuration Example
Configuring Quality of Service Parameters
Configuring a Single PVC Environment
Configuring IP Precedence
Configuring an Access List and Voice Class
Configure a Policy Map and Specify Voice Queuing
Configuring a Policy Map and Specifying Priority Queuing for Voice Class
Associating the Policy Map to the ATM PVC and Decreasing the ATM Interface MTU
Configuration Example
Configuring a Multiple PVC Environment
Voice and Data on Different Subnets
Configuring the ATM Interface and Subinterfaces
Configuration Example
Voice and Data on the Same Subnet Using Virtual Circuit Bundling
Configuring the ATM Interface
Specifying IP Precedence and the Service Class for the Voice Network
Configuration Example
Configuring Multilink PPP Fragmentation and Interleaving
Configuration Example
Verifying Your Configuration
Configuring IP Precedence
Configuration Example
Configuring RSVP
Configuration Example
Configuring Dial Backup
Specifying the Backup Interface
Defining Backup Line Delays
Defining Traffic Load Threshold
Dial Backup Using the Console Port
Configuration Example
Configuration Example
Configuring IGMP Proxy and Sparse Mode
Configuration Example
Verifying Your Configuration
Configuring IP Security and GRE Tunneling
Configuring Internet Protocol Parameters
Configuring an Access List
Configuring IPSec
Configuring a GRE Tunnel Interface
Configuring the Ethernet Interfaces
Configuring Static Routes
Configuring and Monitoring High-Speed Crypto
Configuration Example
Configuring Multilink PPP Fragmentation and Interleaving
Configuration Example
Verifying Your Configuration
Configuring IP Precedence
Configuration Example
Configuring Voice
Prerequisite Tasks
Configuring Voice for H.323 Signaling
Configuring the POTS Dial Peers
Configuring Voice Dial Peers for H.323 Signaling
Configuring Voice Ports for H.323 Signaling
Configuring Number Expansion
Configuration Example
Cisco 827 Routers Configuration Examples
Cisco 827-4V Router Configuration
Cisco 827 Router Configuration
Corporate or Endpoint Router Configuration for Data Network
Corporate or Endpoint Router Configuration for Data and Voice Network
Basic Router Configuration
This chapter includes basic feature-by-feature configuration procedures. This chapter is useful if you have a network in place and you want to add specific basic features.
Note
Every feature described is not necessarily supported on every router model. Where possible and applicable, these feature limitations will be listed.
If you prefer to use network scenarios to build a network, see Chapter 2, "Network Scenarios." For advanced router configuration topics and feature descriptions, see Chapter 4, "Advanced Router Configuration."
This chapter contains the following sections:
•
Before You Configure Your Network
•
Configuring Basic Parameters
•
Configuring Bridging
•
Configuring Static Routing
•
Configuring Dynamic Routing
•
Configuring IP Enhanced IGRP
•
Configuring Addressing Parameters
•
Configuring DHCP
•
Configuring TACACS+
•
Configuring an Extended Access List
•
Configuring Quality of Service Parameters
•
Configuring Dial Backup
•
Configuring IGMP Proxy and Sparse Mode
•
Configuring IP Security and GRE Tunneling
•
Configuring IP Precedence
•
Configuring Voice
•
Cisco 827 Routers Configuration Examples
•
Corporate or Endpoint Router Configuration for Data and Voice Network
Each section includes a configuration example and verification steps, where available.
Before You Configure Your Network
Before you configure your network, you must do the following:
•
Order an ADSL or G.SHDSL line from your telephone service provider.
•
Determine the number of PVCs your service provider is giving you together with their virtual path identifiers (VPIs) and virtual channel identifiers (VCIs).
•
For each PVC determine the type of AAL5 encapsulation supported. It can be one of the following:
–
AAL5SNAP: This can be either routed RFC 1483 or bridged RFC 1483. In the case of routed RFC 1483, the service provider has to provide you with a static IP address. In the case of bridged RFC 1483, you may use DHCP to obtain your IP address or you may be given a static IP address from your service provider.
–
AAL5MUX PPP: With this type, you need to determine PPP-related configuration items.
•
If you are setting up an Internet connection, gather the following information:
–
Point-to-Point Protocol (PPP) client name that is assigned as your login name.
–
PPP authentication type: Challenge Handshake Authentication Protocol (CHAP) or Password Authentication Protocol (PAP).
–
PPP password to access your Internet Service Provider (ISP) account.
–
DNS server IP address and default gateways.
•
If you are setting up a connection to a corporate network, you and its network administrator must generate and share the following information for the WAN interfaces of the routers:
–
PPP authentication type: CHAP or PAP.
–
PPP client name to access the router.
–
PPP password to access the router.
•
If you are setting up IP routing, generate the addressing scheme for your IP network.
Configuring Basic Parameters
To configure the router, perform the tasks described in the following sections:
•
Configuring Global Parameters
•
Configuring the Ethernet Interface
•
Configuring the Dialer Interface
•
Configuring the Loopback Interface
•
Configuring the Asynchronous Transfer Mode Interface
•
Configuring Command-Line Access to the Router
A configuration file example that illustrates how to configure the network is presented after the tasks.
After your router boots, the following prompt displays. Enter no.
Would you like to enter the initial configuration dialog [yes]: no
For complete information on how to access global configuration mode, see the "Entering Global Configuration Mode" section in Appendix A, "Cisco IOS Basic Skills." For more information on the commands used in the following tables, see the Cisco IOS Release 12.2 documentation set.
Configuring Global Parameters
Use the following table to configure the router for global parameters.
| |
Command
|
Purpose
|
Step 1
|
configure terminal
|
Enters configuration mode.
|
Step 2
|
hostname name
|
Specifies the name for the router.
|
Step 3
|
enable secret password
|
Specifies an encrypted password to prevent unauthorized access to the router.
|
Step 4
|
ip subnet-zero
|
Configures the router to recognize zero subnet range as valid range of addresses.
|
Step 5
|
no ip domain-lookup
|
Disables the router from translating unfamiliar words (typos) entered during a console session into IP addresses.
|
For complete information on the global parameter commands, see the Cisco IOS Release 12.2 documentation set.
Configuring the Ethernet Interface
To configure the Ethernet interface, use the following table, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 2
|
ip address ip-address mask
|
Sets the IP address and subnet mask for the Ethernet interface.
|
Step 3
|
no shutdown
|
Enables the Ethernet interface to change the state from administratively down to up.
|
Step 4
|
exit
|
Exits configuration mode for the Ethernet interface.
|
For complete information on the Ethernet commands, see the Cisco IOS Release 12.2 documentation set. For more general information on Ethernet concepts, see "Concepts."
Note
The SOHO 97 Router Ethernet interface remains in an up state when the connected switchport is down and when no cable is connect to the Ethernet interface. In addition, the switchport that is connected to the SOHO 97 Ethernet port stays up when the SOHO 97 Ethernet port is down.
Configuration Example
The following example shows the Ethernet interface configuration. You do not need to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast (default)
Verifying Your Configuration
To verify that you have properly configured the Ethernet interface, enter the show interface ethernet0 command. You should see a verification output like the example shown below.
router#show interface eth0
Ethernet0 is up, line protocol is up
Hardware is PQUICC Ethernet, address is 0000.Oc13.a4db
Internet address is 170.1.4.101/24
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255., txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Configuring the Dialer Interface
Use these commands if you are using PPP encapsulation for the ATM PVC.
Use the following table to configure the dialer interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface dialer number
|
Enters configuration mode for the dialer interface.
|
Step 2
|
encapsulation ppp
|
Specifies the encapsulation type for the PVC as PPP.
|
Step 3
|
ip address ip-address mask
|
Sets the IP address and subnet mask for the dialer interface.
|
Step 4
|
dialer pool number
|
Specifies which dialer pool number you are using.
|
Step 5
|
pvc vpi/vci
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 6
|
encapsulation aal5mux ppp dialer
|
Specifies the encapsulation type as AAL5MUX PPP.
|
Step 7
|
dialer pool-member number
|
Specifies a dialer pool-member.
|
Step 8
|
dialer-group number
|
Specifies a dialer group. The dialer group is required to fast-switch outgoing packets.
|
Step 9
|
exit
|
Exits configuration mode for the ATM interface.
|
Configuration Example
The following example shows the dialer interface configuration. You do not need to input the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
encapsulation aal5mux ppp dialer
ip address 200.200.100.1 255.255.255.0
Verifying Your Configuration
To verify that you have properly configured the dialer interface, enter the show interface virtual-access 1 command. Both line protocol and dialer 0 should be up and running. You should see a verification output like the example shown below.
router(config-if)#show interface virtual-access 1
Virtual-Access1 is up, line protocol is up
Hardware is Virtual Access interface
Interface is unnumbered. Using address of Dialer0 (2.2.2.1)
MTU 1500 bytes, BW 100000 Kbit, DLY 100000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, loopback not set
Virtual-access 1 is up means that the interface is up and running. If you see the output Virtual-access 1 is down, it means that the interface is "administratively down," and the interface is configured with the shutdown command. To bring the interface up, you must enter the no shutdown command.
Configuring the Loopback Interface
This section describes configuring the loopback interface. The loopback interface acts as a placeholder for the static IP address and provides default routing information.
For complete information on the loopback commands, see the Cisco IOS Release 12.2 documentation set.
Configuration Tasks
Use the following table to configure the loopback interface.
| |
Command
|
Purpose
|
Step 1
|
interface Loopback 0
|
Enters configuration mode for the loopback interface.
|
Step 2
|
ip address ip-address mask
|
Sets the IP address and subnet mask for the loopback interface.
|
Step 3
|
ip nat outside
|
Sets the interface to be connected to the outside network.
|
Step 4
|
exit
|
Exits configuration mode for the loopback interface.
|
Sample Configuration
The loopback interface in this sample configuration is used to support NAT on the virtual-template interface. This sample configuration shows the loopback interface configured on the Ethernet interface with an IP address of 200.200.100.1/24, which acts as a static IP address. The loopback interface points back to virtual-template1, which has a negotiated IP address.
ip address 200.200.100.1 255.255.255.0 (static IP address)
interface Virtual-Template1
Verifying Your Configuration
To verify that you have properly configured the loopback interface, enter the show interface loopback 0 command. You should see a verification output similar to the following example.
Router #show interface loopback 0
Loopback0 is up, line protocol is up
Internet address is 200.200.100.1/24
MTU 1514 bytes, BW 8000000 Kbit, DLY 5000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation LOOPBACK, loopback not set
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Output queue 0/0, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
Another way to verify the loopback interface is to send multiple ping packets to it:
Router#ping 200.200.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.200.100.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Configuring the Asynchronous Transfer Mode Interface
To configure the Asynchronous Transfer Mode (ATM) interface, use the following table, beginning in global configuration mode.
Note
The default service class for configuring the ATM interface is unspecified bit rate (ubr). You can change the service class to variable bit rate non-real time (vbr-nrt) or variable bit rate real time (vbr-rt) by using one of these commands: vbr-nrt or vbr-rt. See the Cisco IOS Release 12.2 documentation set. For more information on definitions of service classes, see "Concepts."
| |
Command
|
Purpose
|
Step 1
|
interface ATM 0
|
Enters configuration mode for the ATM interface.
|
Step 2
|
dsl equipment-type {co | cpe}
|
Configures the DSL equipment type, if applicable.
|
Step 3
|
dsl linerate {number | auto}
|
Specifies the G.SHDSL line rate, if applicable. The range of valid numbers is between 72 and 2312.
|
Step 4
|
dsl operating-mode gshdsl symmetric annex annex
|
Sets the G.SHDSL operating mode, if applicable, and select the G.991.2 annex.
|
Step 5
|
ip address ip-address mask
|
Sets the IP address and subnet mask for the ATM interface.
|
Step 6
|
pvc vpi/vci
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 7
|
protocol ip ip-address broadcast
|
Sets the protocol broadcast for the IP address.
|
Step 8
|
encapsulation protocol
|
Specifies the encapsulation type for the PVC. Encapsulations can be specified as AAL5SNAP, AAL5MUX IP, or AAL5MUX PPP.1
|
Step 9
|
tx-ring-limit number
|
Configures the size of the PVC transmit queue. The default setting is 6.
|
Step 10
|
no shutdown
|
Enables the ATM interface.
|
Step 11
|
exit
|
Exits configuration mode for the ATM interface.
|
For complete information on the ATM commands, see the Cisco IOS Release 12.2 documentation set. For more general information on ATM concepts, see "Concepts."
AAL5SNAP Encapsulation Configuration Example
The following example shows the ATM interface configuration for AAL5SNAP encapsulation.
You do not need to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
ip address 200.200.100.1 255.255.255.0
no ip directed-broadcast (default)
no atm ilmi-keepalive (default)
protocol ip 200.200.100.254 broadcast
Verifying Your Configuration
To verify that you have properly configured the ATM interface with AAL5SNAP encapsulation, enter the show interface atm0 command. You should see a verification output like the example shown below.
ATM0 is up, line protocol is up
Hardware is PQUICC_SAR (with Alcatel ADSL Module)
Internet address is 1.1.1.1/24
MTU 1500 bytes, sub MTU 1500, BW 640 Kbit, DLY 80 usec, reliability
113/255. txload 1/255, rxload 1/255
Encapsulation aal5snap, loopback not set
DTR is pulsed for 5 seconds on reset
AAL5MUX PPP Encapsulation Configuration Example
The following example shows an ATM interface configuration for an AAL5MUX PPP encapsulation.
You do not need to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
no ip directed-broadcast (default)
no atm ilmi-keepalive (default)
encapsulation aal5mux ppp dialer
Verifying Your Configuration
To verify that you have properly configured the ATM interface with AAL5MUX PPP encapsulation, enter the virtual-access 1 command. You should see a verification output like the example shown below.
router#sh int virtual-access 1
Virtual-Access1 is up, line protocol is up
Hardware is Virtual Access interface
Interface is unnumbered. Using address of Dialer0 (2.2.2.1)
MTU 1500 bytes, BW 100000 Kbit, DLY 100000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, loopback not set
Virtual-access 1 is up means that the interface is up and running. If you see the output Virtual-access 1 is down, it means that the interface is "administratively down," and the interface is configured with the shutdown command. To bring the interface up, you must enter the no shutdown command.
Configuring Command-Line Access to the Router
To configure parameters to control access to the router, use the following table, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
line console 0
|
Enters line configuration mode, and specify the console terminal line.
|
Step 2
|
password password
|
Specifies a unique password on the line.
|
Step 3
|
login
|
Enables password checking at terminal session login.
|
Step 4
|
exec-timeout 10 0
|
Sets the interval that EXEC command interpreter waits until user input is detected. Exec-timeout 10 0 is the default.
|
Step 5
|
line vty 0 4
|
Specifies a virtual terminal for remote console access.
|
Step 6
|
password password
|
Specifies a unique password on the line.
|
Step 7
|
login
|
Enables password checking at virtual terminal session login.
|
Step 8
|
end
|
Exits line configuration mode, and return to privileged EXEC mode.
|
For complete information on the command line commands, see the Cisco IOS Release 12.2 documentation set.
Configuration Example
The following configuration shows the command-line access commands.
You do not need to input the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
transport input none (default)
Configuring Bridging
Bridges are store-and-forward devices that use unique hardware addresses to filter traffic that would otherwise travel from one segment to another. You can configure the routers as pure bridges.
To configure bridging, use the following table, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
no ip routing
|
Disables IP routing.
|
Step 2
|
bridge number protocol protocol
|
Specifies the bridge protocol to define the type of Spanning-Tree Protocol (STP).
|
Step 3
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 4
|
bridge-group number
|
Specifies the bridge-group number to which the Ethernet interface belongs.
|
Step 5
|
no shutdown
|
Enables the Ethernet interface.
|
Step 6
|
exit
|
Exits configuration mode for the Ethernet interface and the router.
|
Step 7
|
interface ATM 0
|
Enters configuration mode for the ATM interface.
|
Step 8
|
dsl equipment-type {co | cpe}
|
Configures the DSL equipment type, if applicable.
|
Step 9
|
dsl linerate {number | auto}
|
Specifies the G.SHDSL line rate, if applicable. The range of valid numbers is between 72 and 2312.
|
Step 10
|
dsl operating-mode gshdsl symmetric annex annex
|
Sets the G.SHDSL operating mode, if applicable, and select the G.991.2 annex.
|
Step 11
|
pvc vpi/vci
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 12
|
encapsulation type
|
Specifies the encapsulation type for the PVC.
|
Step 13
|
bridge-group number
|
Specifies the bridge-group number to which the ATM interface belongs.
|
Step 14
|
no shutdown
|
Enables the ATM interface.
|
Step 15
|
end
|
Exits the configuration mode for the ATM interface.
|
For complete information on the bridging commands, see the Cisco IOS Release 12.2 documentation set. For more general concepts on bridging, see "Concepts."
Configuration Example
The following configuration example uses bridging with AAL5SNAP encapsulation. You do not need to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
This configuration example shows the Ethernet and ATM interfaces configured. The Ethernet interface has IP addressing turned off for bridging, and IP directed broadcast is disabled, which prevents the translation of directed broadcasts to physical broadcasts. The bridge-group number to which the ATM interface is associated is set to 1.
The ATM interface has a PVC of 8/35, and the encapsulation is set to AAL5SNAP. The IP address is disabled for bridging and the IP directed broadcast is disabled, which prevents the translation of directed broadcasts to physical broadcasts. The bridge protocol is set to 1 to define the STP.
no ip directed-broadcast (default)
no ip directed-broadcast (default)
Verifying Your Configuration
To verify that you have properly configured bridging, enter the show spanning-tree command. You should see a verification output like the example shown below.
router#show spanning-tree
Bridge group 1 is executing the IEEE compatible Spanning Tree protocol
Bridge Identifier has priority 32768, address 1205.9356.0000
Configured hello time 2, max age 20, forward delay 15
We are the root of the spanning tree
Topology change flag set, detected flag set
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers:hello 1, topology change 34, notification 0
Port 2 (Ethernet0) of Bridge group 1 is forwarding
Port path cost 100, Port priority 128
Designated root has priority 32768, address 1205.9356.0000
Designated bridge has priority 32768, address 1205.9356.0000
Designated port is 2, path cost 0
Timers:message age 0, forward delay 0, hold 0
Port 3 (ATM0 RFC 1483) of Bridge group 1 is forwarding
Port path cost 1562, Port priority 128
Designated root has priority 32768, address 1205.9356.0000
Designated bridge has priority 32768, address 1205.9356.0000
Designated port is 3, path cost 0
Timers:message age 0, forward delay 0, hold 0
Configuring Static Routing
Static routes are routing information that you manually configure into the router. If the network topology changes, the static route must be updated with a new route. Static routes are private routes, unless they are redistributed by a routing protocol. Configuring static routing on the 800-series routers is optional.
To configure static routing, use the following table, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
ip classless
|
Sets up a best route for packets destined for networks unknown by the router.
|
Step 2
|
ip route network-number mask
|
Specifies the static route for the IP packets.
|
Step 3
|
end
|
Exits router configuration mode.
|
For complete information on the static routing commands, see the Cisco IOS Release 12.2 documentation set. For more general information on static routing, see "Concepts."
Configuration Example
In the following configuration example, the static route is sending all IP packets with a destination of 1.0.0.0 and a subnet mask of 255.0.0.0 out on the ATM interface to another device with an IP address of 14.0.0.1. Specifically, the packets are being sent to the configured PVC.
You do not need to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
ip route 1.0.0.0 255.0.0.0 atm0 14.0.0.1
no ip http server (default)
Verifying Your Configuration
To verify that you have properly configured static routing, enter the show ip route command and look for static routes signified by the "S."
You should see a verification output like the example shown below.
Codes:C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
5* 2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Ethernet0/0
S* 0.0.0.0/0 is directly connected, Ethernet0/0
Configuring Dynamic Routing
In dynamic routing, the network protocol adjusts the path automatically based on network traffic or topology. Changes in dynamic routing are shared with other routers in the network.
The IP routing protocol can use the Routing Information Protocol (RIP) or the Enhanced Interior Gateway Routing Protocol (IGRP) to learn routes dynamically. You can configure either one of these routing protocols.
Configuring RIP
To configure RIP routing protocol on the router, use the following table, beginning in global configuration mode.
| |
Command
|
Task
|
Step 1
|
router rip
|
Enter router configuration mode and enable RIP on the router.
|
Step 2
|
version 2
|
Specify use of RIP version 2.
|
Step 3
|
network network-number
|
Specify the network number for each directly connected network.
|
Step 4
|
no auto-summary
|
Disable automatic summarization of subnet routes into network-level routes. This allows subprefix routing information to transmit across classful network boundries.
|
Step 5
|
end
|
Exit router configuration mode.
|
For complete information on the dynamic routing commands, see the Cisco IOS Release 12.2 documentation set. For more general information on RIP, see "Concepts."
Configuration Example
The following configuration shows RIP version 2 enabled in IP network 10.10.10.0.
You do not need to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
Verifying Your Configuration
To verify that you have properly configured RIP, enter the show ip route command and look for RIP routes signified by "R." You should see a verification output like the example shown below.
Codes:C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Ethernet0/0
R 3.0.0.0/8 [120/1] via 2.2.2.1, 00:00:02, Ethernet0/0
Configuring IP Enhanced IGRP
To configure IP Enhanced IGRP, use the following table, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
router eigrp autonomous-system
|
Enters router configuration mode and enable Enhanced IGRP on the router. The autonomous-system number identifies the route to other Enhanced IGRP routers and is used to tag the Enhanced IGRP information.
|
Step 2
|
network network-number
|
Specifies the network number for each directly connected network.
|
Step 3
|
end
|
Exits router configuration mode.
|
For complete information on the IP Enhanced IGRP commands, see the Cisco IOS Release 12.2 documentation set. For more general information on Enhanced IGRP concepts, see "Concepts."
Configuration Example
The following configuration shows Enhanced IGRP routing protocol enabled in IP networks 10.0.0.0 and 172.17.0.0. The Enhanced IGRP autonomous system number is assigned as 100.
You do not need to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
Verifying Your Configuration
To verify that you have properly configured IP Enhanced IGRP, enter the show ip route command and look for Enhanced IGRP routes signified by "D." You should see a verification output like the example shown below.
Codes:C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Ethernet0/0
D 3.0.0.0/8 [90/409600] via 2.2.2.1, 00:00:02, Ethernet0/0
Configuring Addressing Parameters
This section describes how to configure addressing using Network Address Translation (NAT) and Easy IP Phase 1 and 2.
Configuring NAT
You can configure NAT for either static or dynamic address translations.
To configure static or dynamic inside source translation using NAT, use the following table, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
ip nat pool name start-ip end-ip {netmask netmask | prefix-length prefix-length}
|
Creates pool of global IP addresses for NAT.
|
Step 2
|
access-list access-list-number permit source [source-wildcard]
|
Defines a standard access list permitting addresses that need translation.
|
Step 3
|
ip nat inside source list access-list-number pool name
|
Enables dynamic translation of addresses permitted by access list to one of addresses specified in pool.
|
Step 4
|
ip nat inside source static local-ip global-ip number extendable
|
Enables static translation of specified inside local address to globally unique IP address. This command is optional.
|
Step 5
|
interface ethernet 0
|
Enters configuration mode for Ethernet interface.
|
Step 6
|
ip nat inside
|
Establishes Ethernet interface as inside interface.
|
Step 7
|
exit
|
Exits configuration mode for Ethernet interface.
|
Step 8
|
interface atm 0
|
Enters configuration mode for ATM interface.
|
Step 9
|
dsl equipment-type {co | cpe}
|
Configures the DSL equipment type, if applicable.
|
Step 10
|
dsl linerate {number | auto}
|
Specifies the G.SHDSL line rate, if applicable. The range of valid numbers is between 72 and 2312.
|
Step 11
|
dsl operating-mode gshdsl symmetric annex annex
|
Sets the G.SHDSL operating mode, if applicable, and select the G.991.2 annex.
|
Step 12
|
ip nat outside
|
Establishes ATM interface as outside interface.
|
Step 13
|
exit
|
Exits configuration mode for ATM interface.
|

Note
If you want to use NAT with a Virtual-Template interface, you must configure a loopback interface.
For complete information on the NAT commands, see the Cisco IOS Release 12.2 documentation set. For more general information on NAT concepts, see "Concepts."
Configuration Example
The following configuration shows NAT configured for the Ethernet and ATM interfaces.
The Ethernet 0 interface has an IP address of 192.168.1.1 with a subnet mask of 255.255.255.0. NAT is configured for inside, which means that the interface is connected to the inside network that is subject to NAT translation.
The ATM 0 interface has an IP address of 200.200.100.1 and a subnet mask of 255.255.255.0. NAT is configured for outside, which means that the interface is connected to an outside network, such as the Internet.
You do not need to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
ip address 192.168.1.1 255.255.255.0
no ip directed-broadcast (default)
ip address 200.200.100.1 255.255.255.0
no ip directed-broadcast (default)
no atm ilmi-keepalive (default)
ip route 0.0.0.0.0.0.0.0 200.200.100.254
ip nat pool test 200.200.100.1 200.200.100.1 netmask 255.255.255.0
ip nat inside source list 101 pool test overload
Verifying Your Configuration
To verify that you have properly configured NAT, enter the show ip nat statistics command. You should see a verification output like the example shown below.
router#show ip nat statistics
Total active translations:45 (10 static, 35 dynamic; 45 extended)
Hits:34897598 Misses:44367
Expired translations:119305
access-list 1 pool homenet refcount 14
pool homenet:netmask 255.255.255.0
start 200.200.100.1 end 200.200.100.1
type generic, total addresses 1, allocated 1 (100%), misses
Configuring Easy IP (Phase 1)
This section explains how to configure Easy IP (Phase 1). Easy IP Phase 1 includes NAT overload and PPP/Internet Protocol Control Protocol (IPCP). NAT overload means that you can use one registered IP address for the interface and use it to access the Internet from all devices in the network.
With PPP/IPCP, Cisco 800-series routers automatically negotiate a globally unique (registered or public) IP address for the interface from the ISP route.
To configure Easy IP (Phase 1), use the following table, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
access-list access-list-number permit source [source-wildcard]
|
Defines a standard access list that permits nonregistered IP addresses of hosts.
|
Step 2
|
ip nat inside source list access-list-number interface interface overload
|
Sets up translation of addresses identified by the access list defined in Step 1.
|
Step 3
|
interface ethernet 0
|
Enters configuration mode for Ethernet interface.
|
Step 4
|
ip nat inside
|
Establishes the Ethernet interface as inside interface for NAT.
|
Step 5
|
no shutdown
|
Enables the Ethernet interface and the configuration changes just made to it.
|
Step 6
|
exit
|
Exits configuration mode for Ethernet interface.
|
Step 7
|
interface dialer
|
Enters configuration mode for the dialer interface.
|
Step 8
|
ip address negotiated
|
Assigns a negotiated IP address to the dialer interface.
|
Step 9
|
ip nat outside
|
Establishes the dialer interface as the outside interface for NAT.
|
Step 10
|
dialer pool number
|
Specifies which dialer pool number you are using.
|
Step 11
|
exit
|
Exits the dialer interface.
|
Step 12
|
interface ATM 0
|
Enters configuration mode for the ATM interface.
|
Step 13
|
dsl equipment-type {co | cpe}
|
Configures the DSL equipment type, if applicable.
|
Step 14
|
dsl linerate {number | auto}
|
Specifies the G.SHDSL line rate, if applicable. The range of valid numbers is between 72 and 2312.
|
Step 15
|
dsl operating-mode gshdsl symmetric annex annex
|
Sets the G.SHDSL operating mode, if applicable, and select the G.991.2 annex.
|
Step 16
|
pvc vpi/vci
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 17
|
encapsulation aal5mux ppp dialer
|
Specifies the encapsulation type for the PVC to be AAL5MUX PPP and point back to the dialer interface.
|
Step 18
|
dialer pool-member number
|
Specifies which dialer pool-member you are using.
|
Step 19
|
no shutdown
|
Enables the interface and configuration changes just made to the ATM interface.
|
Step 20
|
exit
|
Exits configuration mode for the ATM interface.
|
For complete information on the Easy IP commands, see the Cisco IOS Release 12.2 documentation set. For more general information on Easy IP (Phase 1) concepts, see "Concepts."
Configuring Easy IP (Phase 2)
This section explains how to configure the Cisco 800 series routers as DHCP servers.
The Easy IP (Phase 2) feature combines DHCP server and relay. With DHCP, LAN devices on an IP network (DHCP clients) can request IP addresses from the DHCP server. The DHCP server allocates IP addresses from a central pool as needed. A DHCP server can be a workstation, PC, or a Cisco router. With the DHCP relay feature configured on the router, the routers can relay IP address requests from the LAN interface and to the DHCP server as shown in Figure 3-1.
Figure 3-1 Easy IP (Phase 2) - DHCP Server and Relay
1
|
DHCP client
|
4
|
Corporate office
|
2
|
Remote office
|
5
|
DHCP server
|
3
|
DHCP relay
|
|
|
Configuring DHCP