Table Of Contents
Network Scenarios
Cisco 827 Router Network Connections
Cisco 831 Router Virtual Private Network Connections
Cisco 836 or Cisco SOHO 96 Network Connection
Cisco 837 Router Network Connections
Internet Access Scenarios
Before You Configure Your Internet Access Network
Replacing a Bridge or Modem with a Cisco 827 Router
Configuring the Scenario
Configuration Example
PPP over Ethernet with NAT
Configuring the Virtual Private Dial-Up Network Group Number
Configuring the ATM Interface
Configuring the Dialer Interface
Configuration Example
PPP over Ethernet with NAT Using a Dial-on-Demand PPP-over- Ethernet Connection
Configuring the Virtual Private Dial-Up Network Group Number
Configuring the ATM Interface
Configuring the Dialer Interface
Configuration Example
PPP over ATM with NAT
Configuring the Ethernet interface
Configuring the Dialer Interface
Configuring the ATM Interface
Configuring NAT
Configuration Example
Configuring Dial Backup
Dial Backup Feature Limitations and Configuration
Cisco 836 and Cisco 837 Routers and Cisco SOHO 96 and Cisco SOHO 97 Routers
Cisco 831 and Cisco SOHO 91 Routers
Configuring Dial Backup and Remote Management for the Cisco 837 and Cisco SOHO 97 Routers
Configuring Dial Backup and Remote Management for the Cisco 836 and Cisco SOHO 96 Routers
PPP over ATM with Centrally Managed Addressing and with Dial Backup
Configuring Dial Backup and Remote Management for the Cisco 837 Router
Configuration Example
Configuring Dial Backup and Remote Management for the Cisco 836 Router
Configuring the Cisco 836 Router's ISDN Settings
Configuring Dial Backup and Remote Management Settings
Configuring Backup Interface
Configuring Floating Static Route
Configuring Dialer Watch
Configuration Example
Configuring the Aggregator and ISDN Peer Router
Configuring Remote Management for the Cisco SOHO 97 Router
Configuration Example
Configuring Dial Backup and Remote Management for Cisco 831 Router and Cisco SOHO 91 Router
Configuration Example for the Cisco 831 Router
Configuring Remote Management for the Cisco SOHO 91 Router
Configuration Example
Configuring the DHCP Server
Configuring the Ethernet Interface
Dynamic Addressing Received via IPCP
Configuring the Central Cisco 3620
Configuring the Central RADIUS Server
RFC 1483 Encapsulation with NAT
Configuring the Ethernet Interface
Configuring the ATM Interface
Configuring NAT
Configuration Examples
Integrated Routing and Bridging
Configuring the Default Gateway
Configuring the Ethernet Interface and IRB
Configuring the ATM Interface
Configuring the BVI
Configuring NAT
Configuration Example
Concurrent Routing and Bridging
Specifying CRB and Configuring the Ethernet Interface
Configuring the ATM Interface and Subinterfaces
Configuring Voice Ports
Configuring the POTS Dial Peers
Configuring VoIP Dial Peers for H.323 Signaling
Configuration Example
Voice Scenario
Data Network
Voice Network
Configuration Tasks
Configuring the Class Map, Route Map, and Policy Map
Configuring the Ethernet Interface
Configuring the ATM Interface
Configuring Enhanced IGRP
Configuring the POTS Dial Peers
Configuring VoIP Dial Peers for H.323 Signaling
Configuration Examples
Cisco 827-4V Router Configuration Example
Cisco 3640 Gateway Configuration Example
Cisco 3640 Gatekeeper Configuration Example
Network Scenarios
This chapter includes some example network scenarios and their configurations using Cisco 827 and Cisco 827-4V routers and Cisco 831, Cisco 836, Cisco 837, Cisco SOHO 91, Cisco SOHO 96, and Cisco SOHO 97 routers. This chapter is useful if you are building a new network and want some guidance. Most of the lessons here can be applied as well to networks incorporating Cisco 826, Cisco 828, Cisco SOHO 76, Cisco SOHO 77, and/or Cisco SOHO 78 routers.
Note
To verify that a feature is compatible with your router, you can use the software advisor too.
If you already have a network set up and you want to add specific features, see "Basic Router Configuration" and "Advanced Router Configuration."
The following sections are included in this chapter:
•
Cisco 827 Router Network Connections
•
Cisco 831 Router Virtual Private Network Connections
•
Cisco 836 or Cisco SOHO 96 Network Connection
•
Cisco 837 Router Network Connections
•
Internet Access Scenarios
•
Configuring Dial Backup
•
Configuring the DHCP Server
•
Voice Scenario
Each scenario in this chapter is described with a network diagram and configuration network examples are provided as models after which you can pattern your network. They cannot, however, anticipate all of your network needs. You can choose not to use features presented in the examples or to add or substitute features that better suit your needs.
Cisco 827 Router Network Connections
Figure 2-1 illustrates an example network topology employing Cisco 827 routers connecting to the following:
•
Public switched telephone network (PSTN)
•
Corporate intranet
•
Service provider on the Internet
•
Service provider data center
Figure 2-1 Cisco 827 Routers Network Connections
1
|
Corporate network connecting through a Cisco 3640 voice gateway
|
4
|
Data and voice local exchange carrier connecting through a Cisco MGX voice gateway
|
2
|
Wholesale ISP business
|
5
|
Small business or remote user, connecting to the network through a Cisco 827/827-4V router
|
3
|
ISP POP (data center) with video conferencing MCUs and IP/TV video servers
|
|
|
In the example, Cisco 827 routers send data or voice packets from the remote user to the service provider or corporate network through a high-speed, point-to-multi-point asymmetric digital subscriber line (ADSL) technology.
Cisco 831 Router Virtual Private Network Connections
Figure 2-2 shows how a Cisco 831 router can be used in a Virtual Private Network (VPN). The Cisco 831 router is linked to the ISP via a digital subscriber line (DSL) or a cable modem. Security is provided via IP security (IPSec) configuration.
Figure 2-2 Cisco 831 Router Virtual Private Network
1
|
Small business or remote user, connecting to the network through a Cisco 831 router.
|
3
|
Dial backup, as a failover link when primary line goes down
|
2
|
Corporate network connecting through a Cisco router
|
4
|
Branch office network connecting through a Cisco router
|
Cisco 836 or Cisco SOHO 96 Network Connection
Figure 2-3 shows an example of a network topology employing a Cisco 836 router or a Cisco SOHO 96 router connecting to the following:
•
ISDN
•
Corporate intranet
•
Service provider on the Internet
•
Service provider data center
•
Dial backup and remote management
Figure 2-3 Cisco 836 Router Network Connections
1
|
Corporate network connecting through a Cisco 3640 gateway
|
4
|
Dial backup or remote management that keeps the traffic working in case of primary line shutdown
|
2
|
Wholesale ISP business
|
5
|
ISDN to serve as an interface for dial backup or remote management
|
3
|
ISP POP (data center) with videoconferencing MCUs and IP/TV video servers
|
6
|
Small business or remote user, connecting to the network through a Cisco 836 router
|
Cisco 837 Router Network Connections
Figure 2-4 shows an example of a network topology employing a Cisco 837 router connecting to the following:
•
PSTN
•
Corporate intranet
•
Service provider on the Internet
•
Service provider data center
•
Dial backup and remote management
Figure 2-4 Cisco 837 Router Network Connections
1
|
Corporate network connecting through a Cisco 3640 voice gateway
|
4
|
Dial backup or remote management that keeps the traffic working in case the primary line's traffic shuts down
|
2
|
Wholesale ISP business
|
5
|
PSTN to serve as an analog modem for dial backup or remote management
|
3
|
ISP POP (data center) with videoconferencing MCUs and IP/TV video servers
|
6
|
Small business or remote user, connecting to the network through a Cisco 837 router
|
In the topology, Cisco 837 routers send data packets from the remote user to the service provider or corporate network through high-speed, point-to-multipoint ADSL technology.
Internet Access Scenarios
Each network access scenario is described with a network diagram, configuration steps for setting up the network, and an example configuration.
Before You Configure Your Internet Access Network
You need to gather the following information before configuring networks based on the Internet access scenarios:
•
Order an ADSL or G.SHDSL line from your public telephone service provider. For ADSL lines, determine that the ADSL signaling type is DMT, also called ANCII T1.413, or just DMT Issue 2. For G.SHDSL verify that the G.SHDSL line conforms to ITU standard G.991.2 and supports Annex A, for North America, or Annex B, for Europe.
•
Gather information to set up a PPP Internet connection, including the PPP client name authentication type, and PPP password.
•
Determine the IP routing information, including IP address, and ATM permanent virtual circuits (PVCs). These PVC parameters are typically virtual path identifier (vpi), virtual circuit identifier (vci), and traffic shaping parameters if applicable.
•
Gather DNS server IP address and default gateways.
Replacing a Bridge or Modem with a Cisco 827 Router
This scenario shows a remote user connected to the Internet. You may want to use a network similar to this one if you want to set up a minimal connection to the Internet and bridge it through the Cisco 827 routers.
This network replaces an Alcatel 1000 bridge or modem with a Cisco 827 or Cisco 827-4V router by using AAL5SNAP encapsulation and bridging (RFC 1483 bridge mode) on the ATM interface.
Figure 2-5 shows the network topology for this scenario.
Figure 2-5 Replacing a Bridge or Modem with a Cisco 827 Router
1
|
Small business or remote user, connecting to the network through a Cisco 827 or Cisco 827-4V router
|
2
|
The Internet
|
The Cisco 827 router is configured to act as a bridge on the WAN, so the data packets are bridged through the 6400 router onto the Internet. This network setup creates the simplicity of bridging data but also maintains router control. This network is very simple but limits more complex services such as stopping broadcast traffic. If you want more services available on your network, you may want to consider Scenario 2 or 3.
Configuring the Scenario
Note
If you have only a single ATM PVC for your bridging network, you do not have to configure the protocol bridge broadcast.
This scenario includes configuration tasks and a configuration example. To add additional features to this network, see "Basic Router Configuration," and "Advanced Router Configuration."
After configuring your router, you need to configure the PVC endpoint. For a general configuration example, see "Cisco 3640 Gateway Configuration Example" at the end of this chapter.
Follow the steps below to replace a bridge or modem with the Cisco 827 router, beginning in global configuration mode. Each step includes the same values that are shown in the bridging configuration example at the end of this section.
| |
Command
|
Purpose
|
Step 1
|
no ip routing
|
Disables IP routing.
|
Step 2
|
bridge 1 protocol ieee
|
Specifies the bridge protocol to define the type of Spanning-Tree protocol.
|
Step 3
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 4
|
bridge-group 1
|
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
|
pvc 8/35
|
Creates an ATM permanent virtual circuit (PVC) for each end node with which the router communicates.
|
Step 9
|
encapsulation aal5snap
|
Specifies the encapsulation type for the PVC.
|
Step 10
|
bridge-group 1
|
Specifies the bridge-group number to which the ATM interface belongs.
|
Step 11
|
no shutdown
|
Enables the ATM interface.
|
Step 12
|
exit
|
Exits the configuration mode for the ATM interface.
|
Configuration Example
The following is a configuration example for this network scenario. You do not have 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 ip directed-broadcast (default)
PPP over Ethernet with NAT
The Cisco 837 and SOHO 97 routers support a PPP-over-Ethernet (PPPoE) client, with Network Addressing Translation (NAT) and with multiple PCs on the LAN. Figure 2-6 shows a typical deployment scenario for PPPoE support.
Figure 2-6 PPPoE Deployment Scenario
1
|
Multiple PCs in LAN
|
3
|
Access concentrator, concentrating data and LAN into ATM service over E1/T1 links
|
2
|
Multiple PCs connected in a LAN
|
4
|
PPPoE session. A PPPoE session is initiated on the client side by the Cisco 837 and SOHO 97 routers
|
A PPPoE session is initiated on the client side by the Cisco 837 or SOHO 97 router. If the session has a timeout, or if the session is disconnected, the PPPoE client immediately attempts to reestablish the session.
This section covers the following topics:
•
Configuring the Virtual Private Dial-Up Network Group Number
•
Configuring the ATM Interface
•
Configuring the Dialer Interface
•
Configuration Example
Configuring the Virtual Private Dial-Up Network Group Number
Follow the steps below to configure a virtual private dial-up network (VPDN), starting in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
vpdn enable
|
Enables VPDN.
|
Step 2
|
vpdn group tag
|
Sets the VPDN group.
|
Step 3
|
request-dialin
|
Specifies the dialing direction.
|
Step 4
|
protocol pppoe
|
Specifies the protocol type for the VPDN.
|
Step 5
|
interface ATM0
mtu 1492
pvc 8/35
|
Enters configuration mode for the ATM interface. Sets the maximum transmission unit (MTU) size and PVC number.
|
Step 6
|
pppoe-client dial-pool-number 1
|
Defines the PPPoE client in dial pool number 1.
|
Step 7
|
interface Dialer 1 ip address negotiated encapsulation ppp dialer-pool 1
|
Enters configuration mode for the Dialer 1 interface to obtain the IP address via IPCP. Specifies the encapsulation type for the PVC using dialer pool number 1.
|
Configuring the ATM Interface
Follow the steps below to configure the ATM interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface atm 0
|
Enters configuration mode for the ATM interface.
|
Step 2
|
dsl linerate {number | auto}
|
Specifies the DSL line rate. The range of valid numbers is from 72 to 2312. Note that this command is applicable only to Cisco 828 and SOHO 78 routers.
|
Step 3
|
ip address 200.200.100.1 255.255.255.0
|
Sets the IP address and subnet mask for the ATM interface.
|
Step 4
|
pvc vpi/vci
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 5
|
ppoe-client dial-pool-number 1
|
Binds the dialer to the interface.
|
Step 6
|
no shutdown
|
Enables the ATM 0 interface.
|
Configuring the Dialer Interface
Follow the steps below to configure the dialer interface, starting in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
ip route default-gateway-ip-address mask dialer 0
|
Sets the IP route for the default gateway for the Dialer 0 interface.
|
Step 2
|
interface dialer 0
|
Enters the Dialer 0 interface configuration.
|
Step 3
|
ip address negotiated
|
Specifies that the IP address is to be negotiated over PPP.
|
Step 4
|
ip mtu 1492
|
Sets the size of the IP maximum transmission unit (MTU).
|
Step 5
|
encapsulation ppp
|
Sets the encapsulation type to PPP.
|
Step 6
|
dialer pool 1
|
Specifies the dialer pool to be used.
|
Step 7
|
dialer-group 1
|
Assigns this interface to a dialer list.
|
Step 8
|
ppp authentication chap
|
Sets the PPP authentication method to Challenge Handshake Authentication Protocol (CHAP).
|
Step 9
|
exit
|
Exits the Dialer 0 interface configuration.
|
Step 10
|
dialer-list 1 protocol ip permit
|
Creates a dialer list for interested packets to be forwarded through the specified interface dialer group.
|
If you enter the clear vpdn tunnel pppoe command with a PPPoE client session already established, the PPPoE client session terminates, and the PPPoE client immediately tries to reestablish the session.
Configuration Example
The following example shows a configuration of a PPPoE client.
pppoe-client dial-pool-number 1
dialer-list 1 protocol ip permit
PPP over Ethernet with NAT Using a Dial-on-Demand PPP-over- Ethernet Connection
The Cisco 831, Cisco 836, Cisco 837, Cisco SOHO 91, Cisco SOHO 96, and Cisco SOHO 97 routers support a PPP-over-Ethernet (PPPoE) client, using a dial-on-demand PPP-over-Ethernet connection. For deployment scenario, see Figure 2-6.
Configuring the Virtual Private Dial-Up Network Group Number
Complete the following tasks to configure a VPDN, starting in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
vpdn enable
|
Enables VPDN.
|
Step 2
|
vpdn group tag
|
Sets the VPDN group.
|
Step 3
|
request-dialin
|
Specifies the dialing direction.
|
Step 4
|
protocol pppoe
|
Specifies the protocol type for the VPDN.
|
Configuring the ATM Interface
Follow the steps below to configure the ATM interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface atm 0
|
Enters configuration mode for the ATM interface.
|
Step 2
|
ip address 200.200.100.1 255.255.255.0
|
Sets the IP address and subnet mask for the ATM interface.
|
Step 3
|
pvc vpi/vci
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 4
|
ppoe-client dial-pool-number 1 dial-on-demand
|
Binds the dialer to the interface.
|
Step 5
|
no shutdown
|
Enables the ATM 0 interface.
|
Configuring the Dialer Interface
Follow the steps below to configure the dialer interface, starting in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
ip route default-gateway-ip-address mask dialer 0
|
Sets the IP route for the default gateway for the Dialer 0 interface.
|
Step 2
|
interface dialer 0
|
Enters Dialer 0 interface configuration.
|
Step 3
|
ip address negotiated
|
Specifies that the IP address is to be negotiated over PPP.
|
Step 4
|
ip mtu 1492
|
Sets the size of the IP maximum transmission unit (MTU).
|
Step 5
|
ip nat outside
|
Establishes the Dialer 0 interface as the outside interface.
|
Step 6
|
encapsulation ppp
|
Sets the encapsulation type to PPP.
|
Step 7
|
dialer pool 1
|
Specifies the dialer pool to be used.
|
Step 8
|
dialer-group 1
|
Assigns this interface to a dialer list.
|
Step 9
|
ppp authentication chap
|
Sets the PPP authentication method to Challenge Handshake Authentication Protocol (CHAP).
|
Step 10
|
exit
|
Exits the Dialer 0 interface configuration.
|
Step 11
|
dialer-list 1 protocol ip permit
|
Creates a dialer list for packets of interest to be forwarded through the interface dialer group.
|
If you enter the clear vpdn tunnel pppoe command with a PPPoE client session already established, the PPPoE client session terminates, and the PPPoE client immediately tries to reestablish the session.
Configuration Example
The following example shows a configuration of a PPPoE client.
pppoe-client dial-pool-number 1 dial-on-demand
dialer-list 1 protocol ip permit
PPP over ATM with NAT
This network shows a user connected to the Internet through PPP over ATM and one static IP address. You may want to use this scenario in your network if you want to access the network with ATM support at the endpoints. PPP over ATM provides a network solution with simplified address handling and gives straight user verification as you would get in a dial network.
Figure 2-7 shows the network topology for this scenario.
Figure 2-7 PPP over ATM with NAT
1
|
Small business or remote user
|
3
|
PPP over ATM PVC 8/35
|
2
|
Connection to Ethernet 0 address 192.168.1.1/24 through a dialer interface
|
4
|
The Internet
|
In this scenario, the small business or remote user on the Ethernet LAN can connect to the Internet through ADSL. The Ethernet interface carries the data packet through the LAN and offloads it to the PPP connection on the ATM interface. The dialer interface is used to connect to the Internet or the corporate office. The number of ATM PVCs is set by default.
NAT (represented as the dashed line at the edge of the 827 routers) signifies two addressing domains and the inside source address. The source list defines how the packet travels through the network.
The following configuration topics are covered in this section:
•
Configuring the Ethernet Interface
•
Configuring the Dialer Interface
•
Configuring the ATM Interface
•
Configuring NAT
•
Configuration Example
To add additional features to this network, see"Basic Router Configuration" and "Advanced Router Configuration."
After configuring your router, you need to configure the PVC endpoint. For a general configuration example, see"Cisco 3640 Gateway Configuration Example" at the end of this chapter.
Configuring the Ethernet interface
Follow the steps below to configure the Ethernet interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 2
|
ip address 192.168.1.1 255.255.255.0
|
Sets the IP address and subnet mask for the Ethernet interface.
|
Step 3
|
no shutdown
|
Enables the interface and configuration changes just made to the Ethernet interface.
|
Step 4
|
exit
|
Exits configuration mode for the Ethernet interface.
|
Configuring the Dialer Interface
Follow the steps below to configure the dialer interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface dialer 0
|
Enters configuration mode for the dialer interface.
|
Step 2
|
ip address negotiated
|
Configures a negotiated IP address.
|
Step 3
|
ip nat outside
|
Sets the interface to be connected to the outside network.
|
Step 4
|
encapsulation ppp
|
Specifies the encapsulation type for the PVC to be PPP.
|
Step 5
|
dialer pool 1
|
Specifies which dialer pool number you are using.
|
Step 6
|
exit
|
Exits configuration mode for the dialer interface.
|
Configuring the ATM Interface
Follow the steps below to configure the ATM interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ATM 0
|
Enters configuration mode for the ATM interface.
|
Step 2
|
pvc 8/35
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 3
|
encapsulation aal5mux ppp dialer
|
Specifies the encapsulation type for the PVC to be aal5mux (PPP) and point back to the dialer interface.
|
Step 4
|
dialer pool-member 1
|
Specifies a dialer pool-member.
|
Step 5
|
no shutdown
|
Enables interface and configuration changes just made to the ATM interface.
|
Step 6
|
exit
|
Exits configuration mode for the ATM interface.
|
Configuring NAT
Follow the steps below to configure NAT, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
ip nat inside source list 1 interface dialer 0 overload
|
Enables dynamic translation of addresses permitted by the access list to one of addresses specified in the dialer interface.
|
Step 2
|
ip route 0.0.0.0.0.0.0.0 dialer
|
Sets the ip route to point to the dialer interface as a default gateway.
|
Step 3
|
access-list 1 permit 192.168.1 0 0.0.0.255
|
Defines a standard access list permitting addresses that need translation.
|
Step 4
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 5
|
ip nat inside
|
Establishes the Ethernet interface as the inside interface.
|
Step 6
|
no shutdown
|
Enables interface and configuration changes just made to the Ethernet interface.
|
Step 7
|
exit
|
Exits configuration mode for the Ethernet interface.
|
Configuration Example
In the following configuration example, you do not have 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)
no ip directed-broadcast (default)
no atm ilmi-keepalive (default)
encapsulation aal5mux ppp dialer
no ip directed-broadcast (default)
ip nat inside source list 1 interface Dialer0 overload
ip route 0.0.0.0 0.0.0.0 Dialer 0 (default gateway)
access-list 1 permit 192.168.1.0 0.0.0.255
Configuring Dial Backup
By allowing you to configure a backup modem line connection, dial backup provides protection against WAN downtime. Dial backup is inactive until it is configured. On Cisco 831, Cisco 837, Cisco SOHO 91, and Cisco SOHO 97 routers, both the console port and the auxiliary port in the Cisco IOS software configuration are on the same physical RJ-45 port. Therefore, both ports cannot be activated simultaneously, and the command-line interface (CLI) must be used to enable or disable either one.
Like the Cisco 831 and Cisco 837 routers and the Cisco SOHO 91 and Cisco SOHO 97 routers, the Cisco 836 router supports dial-in (for remote management) and dial-out (for dial backup) capabilities across the ISDN interface. The Cisco SOHO 96 router supports only the dial-in feature. Unlike the Cisco 831 and Cisco 837 routers and the Cisco SOHO 91 and Cisco SOHO 97 routers, the dial backup and remote management functions are configured on the Cisco 836 and Cisco SOHO 96 routers through the router's ISDN S/T port.
Note
The remote management described in the "Configuring Dial Backup and Remote Management for the Cisco 837 and Cisco SOHO 97 Routers" section refers to backup remote management, the function that allows external control of the router via the ISDN when the ATM link goes down.
Dial Backup Feature Limitations and Configuration
This section discusses the limitations and configuration of the dial backup feature on the Cisco 831, Cisco 836, and Cisco 837 routers and the Cisco SOHO 91, Cisco SOHO 96, and Cisco SOHO 97 routers.
Cisco 836 and Cisco 837 Routers and Cisco SOHO 96 and Cisco SOHO 97 Routers
The following can be used to bring up the dial backup feature in the Cisco IOS software for the Cisco 836 and Cisco 837 routers and the Cisco SOHO 96 and Cisco SOHO 97 routers:
•
Backup Interfaces
•
Floating Static Routes
•
Dialer Watch
Backup Interfaces
When the device receives an indication that the primary line is down, the backup interface is brought up. You can configure the backup interface to go down (after a specified time) when the primary connection is restored.
The dial-on-demand routing (DDR) backup call is triggered by traffic of interest. Even if the backup interface comes out of standby mode, the router will not trigger the backup call unless it receives traffic of interest for that backup interface.
Floating Static Routes
Floating static routes depend on traffic of interest to trigger the DDR backup call. The router does not actually trigger the backup call unless it receives traffic of interest for that backup interface, even if the router installs the floating static route in the route table.
Floating static routes are independent of line protocol status. This is an important consideration on Frame Relay circuits wherein line protocol may not go down if the data-link connection identifier (DLCI) is inactive. Floating static routes are also encapsulation independent.
Note
When static routes are configured, the primary interface protocol must go down in order to activate the floating static route.
Dialer Watch
Only the Extended Interior Gateway Routing Protocol (EIGRP) link-state dynamic routing protocols are supported.
There is a bottleneck in supporting bridging over console backup interfaces because bridging is not supported over slower interfaces such as console ports or auxiliary ports.
In the Cisco 836 and Cisco 837 routers, the dial backup feature is supported for the encapsulations identified in Table 2-1.
Table 2-1 Encapsulation Types Supported by Dial Backup Feature on the Cisco 836 and Cisco 837 Routers
Encapsulation Type (WAN)
|
Dial Backup Possible
|
Type of Dial Backup Method
|
Limitations
|
PPP over ATM
PPP over Ethernet
|
Yes
|
• Backup interface method
• Floating static routes
• Dialer watch
|
Floating static route and dialer watch need a routing protocol to run in the router. The dialer watch method brings up the backup interface as soon as the primary link goes down. The backup interface is brought down as soon as the dialer timeout is reached and the primary interface is up. Router checks the primary interface only when the dialer timeout expires. The backup interface remains up until the dialer timeout is reached, even though the primary interface is up.
For the dialer watch method, a routing protocol does not need to be running in the router, if the IP address of the peer is known.
|
RFC 1483 (AAL5, SNAP, and MUX)
|
Yes
|
• Backup interface method
• Floating static routes
• Dialer watch
|
If bridging is done through the WAN interface, it is not supported across the auxiliary port.
|
Cisco 831 and Cisco SOHO 91 Routers
Support for the dial backup feature on the Cisco 831 router is limited because the Ethernet WAN interface is always up, even when ISP connectivity is down across the modem connected to the Cisco 831 router. Support for dial backup is possible only for the PPPoE environment. The only way to bring up the backup interface is to simultaneously use the dialer watch feature. You also need to add the IP addresses of the peer in the dialer watch command and in the static route command to enable the dial backup when primary line goes down.
For the Cisco SOHO 91 router, only dial-in capability is supported.
Table 2-2 shows the encapsulation types supported by the Cisco 831 router dial backup.
Table 2-2 Encapsulation Types Supported by Dial Backup for the Cisco 831 Router
Encapsulation Type
|
Dial Backup Possible
|
Type of Dial Backup Method
|
Limitations
|
PPPoE
|
Yes
|
Dialer watch
|
Bridging is not supported across a slow interface, for example, an auxiliary port. The peer IP address of the ISP provider is needed to configure the dialer watch command and the IP static route.
|
Normal IP in cable modem scenario
|
No
|
Dialer watch
|
The IP addresses of the peers are needed for dialer watch to work properly. If a lease time obtained by DHCP is not set short enough (one or two minutes), dial backup will not be supported.
|
Configuring Dial Backup and Remote Management for the Cisco 837 and Cisco SOHO 97 Routers
Figure 2-8 shows how dial backup and remote management work in a network system when the primary line goes down.
Figure 2-8 Cisco 837 Router Dial Backup and Remote Management
1
|
Main WAN link; primary connection to Internet service provider
|
2
|
Dial backup; serves as a failover link when primary line goes down
|
3
|
Remote management; serves as dial-in access to allow changes or updates to Cisco IOS configurations
|
Configuring Dial Backup and Remote Management for the Cisco 836 and Cisco SOHO 96 Routers
Figure 2-9 and Figure 2-10 show how dial backup and remote management work in a network system when the primary line goes down. Two scenarios are typical applications of the Cisco 836 and the Cisco SOHO 96 routers. In Figure 4-9, the dial backup link goes through CPE splitter, DSLAM, and CO splitter before connecting to the ISDN switch. In Figure 4-10, the dial backup link goes directly from the Cisco 836 router to the ISDN switch.
Figure 2-9 Cisco 836 Router Dial Backup and Remote Management—Dial Backup Through CPE Splitter, DSLAM, and CO Splitter
1
|
Primary ADSL interface
|
2
|
Dial backup and remote management via ISDN interface; serves as a failover link when primary line goes down
|
3
|
Administrator remote management via ISDN interface when the primary ADSL link is down; serves as dial-in access to allow changes or updates to Cisco IOS configuration
|
Figure 2-10 Cisco 836 Router Dial Backup and Remote Management—Dial Backup Directly from Router to ISDN Switch
1
|
Primary ADSL interface
|
2
|
Dial backup and remote management via ISDN interface; serves as a failover link when primary line goes down
|
3
|
Administrator remote management via ISDN interface when the primary ADSL link is down; serves as dial-in access to allow changes or updates to Cisco IOS configuration
|
PPP over ATM with Centrally Managed Addressing and with Dial Backup
When customer premises equipment such as a Cisco 837 router is connected to an ISP, an IP address is dynamically assigned to the router, or the IP address may be assigned by its peer through the centrally managed function. The dial backup feature can be added to provide a failover route in case the primary line fails.
Configuring Dial Backup and Remote Management for the Cisco 837 Router
Follow the steps below to configure dial backup and remote management for the Cisco 837 router.
| |
Command
|
Purpose
|
Step 1
|
ip name-server 206.13.28.12
|
Enters your ISP DNS IP address.
|
Step 2
|
ip dhcp pool 1
|
Configures CPE as a local DHCP server.
|
Step 3
|
vpdn enable
|
Enables VPDN.
|
Step 4
|
vpdn-group 1
|
Specifies VPDN group for protocol PPPoE.
|
Step 5
|
chat-script Dialout ABORT ERROR ABORT BUSY "" "AT" OK "ATDT 5555102 T" TIMEOUT 45 CONNECT \c
|
Configures a chat script for a modem.
|
Step 6
|
interface Async1
|
Enters configuration mode for the async interface.
|
Step 7
|
interface Dialer3
|
Enters configuration mode for the dialer interface.
|
Step 8
|
dialer watch-group 1
|
Specifies the group number for watch-list.
|
Step 9
|
ip nat inside source list 101 interface Dialer3 overload
|
Establishes the Ethernet interface as the inside interface.
|
Step 10
|
ip route 0.0.0.0 0.0.0.0 ! (dial backup peer address @ISP)
|
Sets the IP route to point to the dialer interface as a default gateway.
|
Step 11
|
access-list 101 permit ip 192.168.0.0 0.0.255.255 any
|
Defines an extended access list permitting addresses that need translation.
|
Step 12
|
dialer watch-list 1 ip ! (ATM peer address @ISP) 255.255.255.255
|
Evaluates the status of the primary link, based on the existence of routes to the peer.
|
Step 13
|
line con 0
|
Enters configuration mode for the console interface.
|
Step 14
|
modem enable
|
Changes the console port to auxiliary port function.
|
Step 15
|
line aux 0
|
Enters configuration mode for the auxiliary interface.
|
Step 16
|
flow control hardware
|
Enables hardware signal flow control.
|
Configuration Example
The following configuration example for a Cisco 837 router specifies an IP address for the ATM interface via PPP/IPCP address negotiation and dial backup over the console port.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
ip name-server 206.13.28.12
ip name-server 206.13.31.12
ip name-server 63.203.35.55
ip dhcp excluded-address 192.168.1.1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
ip audit po max-events 100
! Need to use your own correct ISP phone number
modemcap entry MY-USER_MODEM:MSC=&F1S0=1
chat-script Dialout ABORT ERROR ABORT BUSY "" "AT" OK "ATDT 5555102\T"
ip address 192.168.1.1 255.255.255.0
pppoe-client dial-pool-number 1
!Dial backup and remote management physical interface
ppp authentication pap callin
ppp authentication pap callin
ppp pap sent-username account password 7 pass
! Dialer backup logical interface
dialer string 5555102 modem-script Dialout
! Remote management PC ip address
peer default ip address 192.168.2.2
! Need to use your own ISP account and password
ppp pap sent-username account password 7 pass
! IP NAT over Dialer interface using route-map
ip nat inside source route-map main interface Dialer1 overload
ip nat inside source route-map secondary interface Dialer3 overload
! When primary link is up again, distance 50 will override 80 if dial backup hasn't
timeout
! Multiple routes because peer ip addresses are alternated among them when CPE gets
connected
ip route 0.0.0.0 0.0.0.0 64.161.31.254 50
ip route 0.0.0.0 0.0.0.0 66.125.91.254 50
ip route 0.0.0.0 0.0.0.0 64.174.91.254 50
ip route 0.0.0.0 0.0.0.0 63.203.35.136 80
ip route 0.0.0.0 0.0.0.0 63.203.35.137 80
ip route 0.0.0.0 0.0.0.0 63.203.35.138 80
ip route 0.0.0.0 0.0.0.0 63.203.35.139 80
ip route 0.0.0.0 0.0.0.0 63.203.35.140 80
ip route 0.0.0.0 0.0.0.0 63.203.35.141 80
ip route 0.0.0.0 0.0.0.0 Dialer1 150
! PC ip address behind CPE
access-list 101 permit ip 192.168.0.0 0.0.255.255 any
access-list 103 permit ip 192.168.0.0 0.0.255.255 any
! Watch multiple ip address because peers are alternated among them when CPE gets
connected
dialer watch-list 1 ip 64.161.31.254 255.255.255.255
dialer watch-list 1 ip 64.174.91.254 255.255.255.255
dialer watch-list 1 ip 64.125.91.254 255.255.255.255
! Dial backup will kick in if primary link is not available 5 minutes after CPE starts up
dialer watch-list 1 delay route-check initial 300
dialer-list 1 protocol ip permit
! To direct traffic to an interface only if the Dialer gets assigned with an ip address
route-map secondary permit 10
! Change console to aux function
! To enable and communicate with the external modem properly
modem autoconfigure discovery
scheduler max-task-time 5000
Configuring Dial Backup and Remote Management for the Cisco 836 Router
Follow the steps given in the "Configuring the Cisco 836 Router's ISDN Settings" section to configure dial backup and remote management on the Cisco 836 router's ISDN S/T port.
Configuring the Cisco 836 Router's ISDN Settings
The user must first configure the Cisco 836 router ISDN settings to configure the router interface as a backup interface. Follow the steps below to configure the Cisco 836 router ISDN interface as a backup interface, beginning in global configuration mode.
Note
Traffic of interest must be present to activate the backup ISDN line by means of the backup interface and floating static routes methods. Traffic of interest is not needed for the dialer watch to activate the backup ISDN line.
| |
Command
|
Purpose
|
Step 1
|
isdn switch-type basic-net3
|
Specifies the ISDN switch type.
|
Step 2
|
interface BRI0
|
Enters configuration mode for the ISDN Basic Rate Interface (BRI).
|
Step 3
|
encapsulation ppp
|
Sets BRI0 interface encapsulation type to PPP.
|
Step 4
|
dialer pool-member 1
|
Specifies the dialer pool membership.
|
Step 5
|
isdn switch-type basic-net3
|
Specifies the ISDN switch type.
|
Step 6
|
exit
|
Exits to return to global configuration mode.
|
Step 7
|
interface Dialer0
|
Enters configuration mode for the dialer interface.
|
Step 8
|
ip address negotiated
|
Obtains the IP address from the peer.
|
Step 9
|
encapsulation ppp
|
Specifies Dialer 0 encapsulation type as PPP.
|
Step 10
|
dialer pool 1
|
Specifies the dialer pool to be used. Dialer pool 1 setting associates Dialer 0 interface with BRI0 because the BRI0 dialer pool-member value is "1."
|
Step 11
|
dialer string 384040
|
Specifies the telephone number to be dialed.
|
Step 12
|
dialer-group 1
|
Assigns this interface to a dialer group.
|
Step 13
|
exit
|
Exits to return to global configuration mode.
|
Step 14
|
dialer-list 1 protocol ip permit
|
Creates a dialer list for packets of interest to be forwarded through the specified interface dialer group. Dialer-list 1 corresponds to dialer-group 1.
|
Configuring Dial Backup and Remote Management Settings
As described in the "Dial Backup Feature Limitations and Configuration" section, backup interface, static routes, and dialer watch are the three methods used for implementing dial backup and remote management. This section provides detailed procedures for configuring these three methods.
Configuring Backup Interface
Follow the steps below to configure the Cisco 836 router ISDN interface as a backup interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ATM0
|
Enters ATM interface configuration mode.
|
Step 2
|
backup interface BRI0
|
Assigns BRI0 as the secondary backup interface.
|
Configuring Floating Static Route
Static route and dynamic route are the two components of floating static routes. Complete the following steps to configure the static route on the Cisco 836 router ISDN port, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
ip route 0.0.0.0 0.0.0.0 22.0.0.2
|
Assigns the primary route.
|
Step 2
|
ip route 0.0.0.0 0.0.0.0 192.168.2.2 150
|
Assigns the lower routing administrative distance value for the backup interface route. 192.168.2.2 is the peer IP address of the backup interface.
|
Note
When the static routes are configured, the primary interface protocol must go down in order to activate the floating static route.
Follow the steps below to configure the dynamic route on the Cisco 836 router ISDN port, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
router rip
|
Enables RIP routing.
|
Step 2
|
network 22.0.0.0
|
Defines the primary interface network. 22.0.0.0 is the network value of the primary interface.
|
Step 3
|
ip route 0.0.0.0 0.0.0.0 192.168.2.2 150
|
Assigns the lower routing administrative distance value for the backup interface route. 192.168.2.2 is the peer IP address of the backup interface.
|
Note
The floating static route depends on the routing protocol convergence times when dynamic routing is activated.
Configuring Dialer Watch
Use the steps in the table below to configure the dialer watch on the Cisco 836 router's ISDN port, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface Dialer0
|
Enters configuration mode for the dial backup interface.
|
Step 2
|
dialer watch-group 1
|
Specifies the group number for the watch list.
|
Step 3
|
exit
|
Exits to return to global configuration mode.
|
Step 4
|
ip route 0.0.0.0 0.0.0.0 22.0.0.2
|
Assigns the primary route. 22.0.0.2 is the peer IP address of the primary interface.
|
Step 5
|
ip route 0.0.0.0 0.0.0.0 192.168.2.2 150
|
Assigns the lower routing administrative distance value for the backup interface route. 192.168.2.2 is the peer IP address of the backup interface.
|
Step 6
|
dialer watch-list 1 ip 22.0.0.2 255.255.255.255
|
Assigns an IP address to the watch list via the dialer watch command. If the connection on the primary interface is lost and the IP address is unavailable on the Cisco 836 router, the dial-out feature on the backup interface is triggered. 22.0.0.2 is the peer IP address of the primary interface.
|
Configuration Example
The next three configuration examples shows sample configurations for the three dial backup interface and remote management methods.
The following is an example of configuring dial backup and remote management using the backup interface command.
!Specifies the ISDN switch type
isdn switch-type basic-net3
ip address 192.168.1.1 255.255.255.0
!ISDN interface to be used as a backup interface
isdn switch-type basic-net3
pppoe-client dial-pool-number 2
! Dial backup interface, associated with physical BRI0 interface. Dialer pool 1 associates
it with BRI0's dialer pool member 1
! Primary interface associated with physical ATM0's interface, dialer pool 2 associates it
with ATM0's dial-pool-number2
!Primary and backup interface given route metric
ip route 0.0.0.0 0.0.0.0 22.0.0.2
ip route 0.0.0.0 0.0.0.0 192.168.2.2 80
!Specifies interesting traffic to trigger backup ISDN traffic
dialer-list 1 protocol ip permit
The following is an example of configuring dial backup and remote management using floating static routes.
!Specifies the ISDN switch type
isdn switch-type basic-net3
ip address 192.168.1.1 255.255.255.0
!ISDN interface to be used as a backup interface
isdn switch-type basic-net3
pppoe-client dial-pool-number 2
! Dial backup interface, associated with physical BRI0 interface. Dialer pool
1 associate it with BRI0's dialer pool member 1
! Primary interface associated with physical ATM0's interface, dialer pool 2 associates it
with ATM0's dial-pool-number2
!Primary and backup interface given route metric (This example using static routes, thus
atm0 line protocol must be brought down for backup interface to function.)
ip route 0.0.0.0 0.0.0.0 22.0.0.2
ip route 0.0.0.0 0.0.0.0 192.168.2.2 150
!Specifies interesting traffic to trigger backup ISDN traffic
dialer-list 1 protocol ip permit
The following is an example of configuring dial backup and remote management using dialer watch.
!Specifies the ISDN switch type
isdn switch-type basic-net3
ip address 192.168.1.1 255.255.255.0
!ISDN interface to be used as a backup interface
isdn switch-type basic-net3
pppoe-client dial-pool-number 2
! Dial backup interface, associated with physical BRI0 interface. Dialer pool 1 associates
it with BRI0's dialer pool member 1. Note "dialer watch-group 1" associates a watch list
with corresponding "dialer watch-list" command
! Primary interface associated with physical ATM0 interface, dialer pool 2 associates it
with ATM0's dial-pool-number2
!Primary and backup interface given route metric
ip route 0.0.0.0 0.0.0.0 22.0.0.2
ip route 0.0.0.0 0.0.0.0 192.168.2.2 80
!Watch for interesting traffic
dialer watch-list 1 ip 22.0.0.2 255.255.255.255
!Specifies interesting traffic to trigger backup ISDN traffic
dialer-list 1 protocol ip permit
Configuring the Aggregator and ISDN Peer Router
The aggregator is typically a concentrator router where the Cisco 836 router ATM PVC will terminate. In the configuration example shown below, the aggregator is configured as a PPPoE server to correspond with the Cisco 836 router configuration example that is given in this chapter.
The ISDN peer router is any router that has an ISDN interface and can communicate through a public ISDN network to reach the Cisco 836 router ISDN interface. The ISDN peer router provides Internet access for the Cisco 836 router during the ATM network downtime.
The following is a configuration example of an aggregator used in the Cisco 836 router network.
ip address 40.1.1.1 255.255.255.0
ip address 30.1.1.1 255.255.255.0
interface Virtual-Template1
ip address 22.0.0.2 255.255.255.0
peer default ip address pool adsl
ip local pool adsl 22.0.0.1
ip route 0.0.0.0 0.0.0.0 22.0.0.1 50
ip route 0.0.0.0 0.0.0.0 30.1.1.2.80
The following is a configuration example of an ISDN peer router used in the Cisco 836 router network.
isdn switch-type basic-net3
ip address 30.1.1.2 255.0.0.0
description "to 836-dialbackup"
isdn switch-type basic-net3
ip address 192.168.2.2 255.255.255.0
peer default ip address pool isdn
ip local pool isdn 192.168.2.1
ip route 0.0.0.0 0.0.0.0 192.168.2.1
ip route 40.0.0.0 255.0.0.0 30.1.1.1
dialer-list 1 protocol ip permit
Configuring Remote Management for the Cisco SOHO 97 Router
Complete the following steps to configure remote management for the Cisco SOHO 97 router.
| |
Command
|
Purpose
|
Step 1
|
interface Async1
|
Enters configuration mode for the async interface.
|
Step 2
|
line con 0
|
Enters configuration mode for the console interface.
|
Step 3
|
modem enable
|
Changes the console port to the auxiliary port.
|
Step 4
|
line aux 0
|
Enters configuration mode for the auxiliary interface.
|
Step 5
|
flowcontrol hardware
|
Enables hardware signal flow control.
|
Configuration Example
The following configuration example for a Cisco SOHO 97 router specifies the IP address for the ATM interface via PPP/IPCP address and supports dial-in maintenance over the console port.
!Remote management account
username dialin password cisco
modemcap entry MY_USR_MODEM:MSC=&F1S0=1
ip address 192.168.1.1 255.255.255.0
encapsulation aal5mux ppp dialer
autodetect encapsulation ppp
pap authentication pap callin
peer default ip address 192.168.2.2
ip nat inside source list 101 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1 150
access-list 101 permit ip 192.168.0.0 0.0.255.255 any
dialer-list 1 protocol ip permit
modem autoconfigure discovery
scheduler max-task-time 5000
Configuring Dial Backup and Remote Management for Cisco 831 Router and Cisco SOHO 91 Router
Figure 2-11 shows how dial backup and remote management work in a DSL modem environment when the primary line goes down. Note that the cable modem environment is currently not supported.
Figure 2-11 Cisco 831 Router Dial Backup and Remote Management in a DSL Modem Environment
1
|
Main WAN link; primary connection to Internet service provider
|
2
|
Dial backup; serves as a failover link when primary line goes down
|
3
|
Remote management; serves as a dial-in access to allow change or update of Cisco IOS configurations
|
Follow the steps below to configure dial backup and remote management for the Cisco 831 router.
| |
Command
|
Purpose
|
Step 1
|
ip name-server 206.13.28.12
|
Enters your ISP DNS IP address.
|
Step 2
|
ip dhcp pool 1
|
Configures CPE as a local DHCP server.
|
Step 3
|
vpdn enable
|
Enables VPDN.
|
Step 4
|
vpdn-group 1
|
Specifies VPDN group for protocol PPPoE.
|
Step 5
|
chat-script Dialout ABORT ERROR ABORT BUSY "" "AT" OK "ATDT 5555102 T" TIMEOUT 45 CONNECT \c
|
Configures a chat script for a modem.
|
Step 6
|
interface Async1
|
Enters configuration mode for the async interface.
|
Step 7
|
interface Dialer3
|
Enters configuration mode for the dialer interface.
|
Step 8
|
ip nat inside source list 101 interface Dialer3 overload
|
Establishes the Ethernet interface as the inside interface.
|
Step 9
|
ip route 0.0.0.0 0.0.0.0 ! (dial backup peer address @ISP)
|
Sets the IP route to point to the dialer interface as a default gateway.
|
Step 10
|
access-list 101 permit ip 192.168.0.0 0.0.255.255 any
|
Defines an extended access list permitting addresses that need translation.
|
Step 11
|
dialer watch-list 1 ip ! (peer address @ISP) 255.255.255.255
|
Evaluates the status of the primary link, based on the existence of routes to the peer.
|
Step 12
|
line con 0
|
Enters configuration mode for the console interface.
|
Step 13
|
modem enable
|
Changes the console port to the auxiliary port.
|
Step 14
|
line aux 0
|
Enters configuration mode for the auxiliary interface.
|
Step 15
|
flowcontrol hardware
|
Enables hardware signal flow control.
|
Configuration Example for the Cisco 831 Router
The following example configures dial backup and remote management on a Cisco 831 router.
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
ip name-server 206.13.28.12
ip name-server 206.13.31.12
ip name-server 63.203.35.55
ip dhcp excluded-address 192.168.1.1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
ip audit po max-events 100
! Need to use your own correct ISP phone number
modemcap entry MY-USER_MODEM:MSC=&F1S0=1
chat-script Dialout ABORT ERROR ABORT BUSY "" "AT" OK "ATDT 5555102\T"
ip address 192.168.1.1 255.255.255.0
pppoe-client dial-pool-number 1
!Dial backup and remote management physical interface
ppp authentication pap callin
ppp authentication pap callin
ppp pap sent-username account password 7 pass
! Dialer backup logical interface
dialer string 5555102 modem-script Dialout
! Remote management PC ip address
peer default ip address 192.168.2.2
! Need to use your own ISP account and password
ppp pap sent-username account password 7 pass
! IP NAT over Dialer interface using route-map
ip nat inside source route-map main interface Dialer1 overload
ip nat inside source route-map secondary interface Dialer3 overload
! When primary link is up again, distance 50 will override 80 if dial backup hasn't
timeout
! Multiple routes because peer ip address are alternated among them when CPE gets
connected
ip route 0.0.0.0 0.0.0.0 64.161.31.254 50
ip route 0.0.0.0 0.0.0.0 66.125.91.254 50
ip route 0.0.0.0 0.0.0.0 64.174.91.254 50
ip route 0.0.0.0 0.0.0.0 63.203.35.136 80
ip route 0.0.0.0 0.0.0.0 63.203.35.137 80
ip route 0.0.0.0 0.0.0.0 63.203.35.138 80
ip route 0.0.0.0 0.0.0.0 63.203.35.139 80
ip route 0.0.0.0 0.0.0.0 63.203.35.140 80
ip route 0.0.0.0 0.0.0.0 63.203.35.141 80
ip route 0.0.0.0 0.0.0.0 Dialer1 150
! PC ip address behind CPE
access-list 101 permit ip 192.168.0.0 0.0.255.255 any
access-list 103 permit ip 192.168.0.0 0.0.255.255 any
! Watch multiple ip addresses because peers are alternated among them when CPE gets
connected
dialer watch-list 1 ip 64.161.31.254 255.255.255.255
dialer watch-list 1 ip 64.174.91.254 255.255.255.255
dialer watch-list 1 ip 64.125.91.254 255.255.255.255
! Dial backup will kick in if primary link is not available 5 minutes after CPE starts up
dialer watch-list 1 delay route-check initial 300
dialer-list 1 protocol ip permit
! To direct traffic to an interface only if the Dialer gets assigned with an ip address
route-map backup permit 10
! Change console to aux function
! To enable and communicate with the external modem properly
modem autoconfigure discovery
scheduler max-task-time 5000
Configuring Remote Management for the Cisco SOHO 91 Router
Follow the steps below to configure remote management for the Cisco SOHO 91 router.
| |
Command
|
Purpose
|
Step 1
|
interface Async1
|
Enters configuration mode for the async interface.
|
Step 2
|
line con 0
|
Enters configuration mode for the console interface.
|
Step 3
|
modem enable
|
Changes the console port to the auxiliary port.
|
Step 4
|
line aux 0
|
Enters configuration mode for the auxiliary interface.
|
Step 5
|
flowcontrol hardware
|
Enables hardware signal flow control.
|
Configuration Example
The following example shows how to configure a Cisco SOHO 91 router to obtain the IP address for ATM interface via PPP/IPCP address negotiation and shows how to configure and support dial-in maintenance over the console port.
!Remote management account
username dialin password cisco
modemcap entry MY_USR_MODEM:MSC=&F1S0=1
ip address 192.168.1.1 255.255.255.0
autodetect encapsulation ppp
pap authentication pap callin
peer default ip address 192.168.2.2
ip nat inside source list 101 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1 150
access-list 101 permit ip 192.168.0.0 0.0.255.255 any
dialer-list 1 protocol ip permit
modem autoconfigure discovery
scheduler max-task-time 5000
Configuring the DHCP Server
Dynamic Host Configuration Protocol (DHCP) is an industry-standard protocol for automatically assigning IP configurations to workstations. DHCP uses a client-server model for address allocation. As administrator, you can configure one or more DHCP servers to provide IP address assignment and other TCP/IP-oriented configuration information to your workstations. DHCP frees you from having to manually assign an IP address to each client. The DHCP protocol is described in RFC 2131.
When configuring a DHCP server, you must configure the server properties, policies, and associated DHCP options.
Note
Whenever you change server properties, you must reload the server to load the configuration data from the Network Registrar database.
To configure the DHCP server, you must accept Network Registrar's defaults or supply the data explicitly:
•
The IP address of the server's interface (Ethernet card). This interface must have a static IP address that is not assigned dynamically by DHCP.
•
The subnet mask, which identifies the network membership of the interface. The subnet mask defaults to the appropriate value, based on the network class of the interface address. In most cases, the subnet mask is 255.255.255.0.
Network Registrar uses the interface named default to provide configurable default values for interfaces that the DHCP server discovers automatically. If you delete the default interface, the DHCP server uses hard-coded default values for port numbers and socket buffer sizes for the interfaces that it autodiscovers.
If you enable discover-interfaces, the DHCP server uses the operating system platform support to enumerate all the active interfaces on the machine and (unless there is an interface configuration with the ignore feature enabled) attempts to listen on all of these. If you disable discover-interfaces, the DHCP server listens on the interface that you specify, as long as it does not have the ignore feature enabled.
Use the dhcp-interface commands to add, remove, and list the IP addresses of your server's hardware cards. Interfaces are named with the IP address and net mask for the physical device.
If you have two interface cards for the server host, use two dhcp-interface create commands to register them both. Use the net mask suffix 16 or 24 as part of the address.
nrcmd> dhcp-interface 192.168.1.12/24 create
nrcmd> dhcp-interface 10.1.2.3/24 create
Use the dhcp-interface set ignore=true command to set all but one interface to ignore Network Registrar.
nrcmd> dhcp-interface 10.1.2.3/24 set ignore=true
Configuring the Ethernet Interface
Follow the steps below to configure the Ethernet interface, 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."
Dynamic Addressing Received via IPCP
Use the ip address negotiated interface command to enable a Cisco router to automatically negotiate its own registered WAN interface IP address from a central server (via PPP/IPCP). Use the same command to enable all remote hosts to use this single registered IP address to access the global Internet. The following example shows an IPCP configuration.
encapsulation aal5mux ppp dialer
ppp authentication pap callin
ppp pap sent-username ! USER SPECIFIC password ! USER SPECIFIC
Configuring the Central Cisco 3620
The following example configures peer and dial backup on the Cisco 3620 router.
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
boot system flash slot0:c3620-jk2o3s-mz.121-5.3.T
logging rate-limit console 10 except errors
username ISP password ISP
ip audit po max-events 100
no ip dhcp-client network-discovery
chat-script Dialout ABORT ERROR ABORT BUSY "" "AT" OK "ATDT 5555101\T" TIMEOUT 45 CONNECT
\c
modemcap entry MY_USR_MODEM:MSC=&F1S0=1
ip address 21.0.0.2 255.255.255.0
ip address 22.0.0.2 255.255.255.0
interface ATM1/0.1 point-to-point
encapsulation aal5mux ppp Virtual-Template1
interface ATM1/0.2 point-to-point
interface Virtual-Template1
peer default ip address pool test
interface Virtual-Template2
autodetect encapsulation ppp
dialer string 5555101 modem-script Dialout
autodetect encapsulation ppp
ip local pool test 21.0.0.10 21.0.0.200
ip kerberos source-interface any
dialer-list 1 protocol ip permit
modem autoconfigure type MY_USR_MODEM
Configuring the Central RADIUS Server
Remote Authentication Dial-In User Service (RADIUS) enables you to secure your network against unauthorized access. A RADIUS server must be configured in the service provider or corporate network in order for a Cisco 800 series router to use RADIUS client features.
To configure RADIUS on your router, you must perform the following tasks:
•
Use the aaa new-model global configuration command to enable authentication, authorization, and accounting (AAA). AAA must be configured if you plan to use RADIUS.
•
Use the aaa authentication global configuration command to define the method lists for RADIUS authentication.
•
Use line and interface commands to enable the defined method lists to be used.
For instructions on configuring a RADIUS client, see the Cisco IOS Security Configuration Guide.
RFC 1483 Encapsulation with NAT
This network shows a remote user connecting to the Internet through an ATM connection with RFC 1483 encapsulation and NAT. You may want to use this scenario if RFC 1483 connections can be used for the network, since there is slightly less overhead than PPP.
Figure 2-12 shows the network topology for this scenario.
Figure 2-12 RFC 1483 Encapsulation with NAT
1
|
Small business or remote user
|
2
|
Connection to Ethernet 0 address 192.168.1.1/24
|
3
|
ATM 0 PVC 8/35
|
4
|
The Internet
|
In this scenario, the small business or remote user on the Ethernet LAN can connect to the Internet through ADSL. The Ethernet interface carries the data packet through the LAN and offloads it to the RFC 1483 connection on the ATM interface. The number of ATM PVCs is set by default.
NAT, represented as the dashed line at the edge of the 827 routers, signifies two addressing domains and the inside source address. The source list defines how the packet travels through the network.
The following configuration topics are covered in this section:
•
Configuring the Ethernet Interface
•
Configuring the ATM Interface
•
Configuring NAT
•
Configuration Examples
To add additional features to this network, see "Basic Router Configuration," and "Advanced Router Configuration."
After configuring your router, you need to configure the PVC endpoint. For a general configuration example, see "Cisco 3640 Gateway Configuration Example" at the end of this chapter.
Configuring the Ethernet Interface
Follow the steps below to configure the Ethernet interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 2
|
ip address 192.168.1.1 255.255.255.0
|
Sets the IP address and subnet mask for the Ethernet interface.
|
Step 3
|
no shutdown
|
Enables the Ethernet interface.
|
Step 4
|
exit
|
Exits configuration mode for the Ethernet interface.
|
Configuring the ATM Interface
Use this table to configure the ATM interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ATM 0
|
Enters configuration mode for the ATM interface.
|
Step 2
|
ip address 200.200.100.1 255.255.255.0
|
Sets the IP address and subnet mask for the ATM interface.
|
Step 3
|
pvc 8/35
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 4
|
protocol ip 200.200.100.254 broadcast
|
Sets the protocol broadcast for the IP address.
|
Step 5
|
encapsulation type
|
Specifies the encapsulation type for the PVC to be AAL5SNAP or AAL5MUX IP.
|
Step 6
|
no shutdown
|
Enables the ATM interface.
|
Step 7
|
exit
|
Exits configuration mode for the ATM interface.
|
Configuring NAT
Follow the steps below to configure NAT, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
ip nat inside source list 1 pool interface ATM0 overload
|
Enables dynamic translation of addresses permitted by the access list to one of addresses specified in the ATM interface.
|
Step 2
|
ip route 0.0.0.0.0.0.0.0 atm0
|
Sets the IP route to point to the ATM interface as a default gateway.
|
Step 3
|
access-list 1 permit 192.168.1.0.0.0.0.255
|
Defines a standard access list permitting addresses that need translation.
|
Step 4
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 5
|
ip nat inside
|
Establishes the Ethernet interface as inside interface.
|
Step 6
|
exit
|
Exits configuration mode for the Ethernet interface.
|
Step 7
|
interface atm 0
|
Enters configuration mode for the ATM interface.
|
Step 8
|
ip nat outside
|
Establishes the ATM interface as outside interface.
|
Step 9
|
exit
|
Exits configuration mode for the ATM interface.
|
Configuration Examples
In the following configuration examples, you do not have to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
The following is an RFC 1483 LLC/SNAP encapsulation over ATM configuration example.
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)
protocol ip 200.200.100.254 broadcast
ip nat inside source list 1 interface ATM0 overload
ip route 0.0.0.0 0.0.0.0 200.200.100.254
access-list 1 permit 192.168.1.0 0.0.0.255
The following is an RFC 1483 VC-MUX configuration example.
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)
protocol ip 200.200.100.254 broadcast
ip nat inside source list 1 interface ATM0 overload
ip route 0.0.0.0 0.0.0.0 200.200.100.254
access-list 1 permit 192.168.1.0 0.0.0.255
Integrated Routing and Bridging
This network shows a user connecting to the Internet using integrated routing and bridging (IRB) to use NAT across a bridged interface. This scenario might work for you if you want to add functionality to an endpoint router without reconfiguring the central site. For example, you can provide an IP address and NAT in a bridged network without having to reconfigure the central site for routing.
Exchanging the bridge with a router enables feature additions such as voice and Quality of Service (QoS). IRB provides more secure control of the central site and more efficient use of the WAN link.
Figure 2-13 shows an IRB scenario.
Figure 2-13 IRB Internet Scenario
1
|
Small business or remote user
|
3
|
Connection to Ethernet 0 address 192.168.1.1/24
|
2
|
ATM 0 PVC 8/35
|
4
|
The Internet
|
One side of the network (WAN in this scenario) is configured to act as a bridge. The Bridge-Group Virtual Interface (BVI) is configured to act as a routed interface from the WAN bridge-group to the nonbridged LAN interface. From the LAN, the network appears as a router. From the WAN, the network appears as a bridge.
The ATM interface uses AAL5SNAP encapsulation, and the number of PVCs is set by default.
NAT, represented as the dashed line at the edge of the Cisco 827 routers, signifies two addressing domains and the inside source address. The source list defines how the packet travels through the network.
The following configuration topics are covered in this section:
•
Configuring the Default Gateway
•
Configuring the Ethernet Interface and IRB
•
Configuring the ATM Interface
•
Configuring the BVI
•
Configuring NAT
•
Configuration Example
To add additional features to this network, see "Basic Router Configuration," and "Advanced Router Configuration."
After configuring your router, you need to configure the PVC endpoint. For a general configuration example, see "Cisco 3640 Gateway Configuration Example" at the end of this chapter.
Configuring the Default Gateway
Enter the following command to set the IP route for the default gateway:
ip route default-gateway ip address-mask
Configuring the Ethernet Interface and IRB
Follow the steps below to configure the Ethernet interface and IRB, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
bridge irb
|
Specifies IRB.
|
Step 2
|
bridge 1 route ip
|
Enables IP routing to and from bridge-group 1.
|
Step 3
|
bridge 1 protocol ieee
|
Specifies the bridge protocol to define the type of Spanning-Tree Protocol (STP).
|
Step 4
|
interface ethernet 0
|
Enters configuration mode for Ethernet interface.
|
Step 5
|
ip address 192.168.1.1 255.255.255.0
|
Sets the IP address and subnet mask for the Ethernet interface.
|
Step 6
|
no shutdown
|
Enables the Ethernet interface.
|
Step 7
|
exit
|
Exits configuration mode for Ethernet interface.
|
Configuring the ATM Interface
Follow the steps below to configure the ATM interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ATM 0
|
Enters configuration mode for the ATM interface.
|
Step 2
|
pvc 8/35
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 3
|
encapsulation aal5snap
|
Specifies the encapsulation type for the PVC.
|
Step 4
|
bridge-group 1
|
Specifies the bridge-group number to which the ATM interface belongs.
|
Step 5
|
no shutdown
|
Enables the ATM interface.
|
Step 6
|
exit
|
Exits configuration mode for the ATM interface.
|
Configuring the BVI
Follow the steps below to configure the BVI, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface bvi 1
|
Enters configuration mode for the BVI.
|
Step 2
|
ip address 200.200.100.1 255.255.255.0
|
Sets the IP address and subnet mask for the BVI.
|
Step 3
|
exit
|
Exits configuration mode for Ethernet interface.
|
Configuring NAT
Follow the steps below to configure NAT, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
ip nat pool test 200.200.100.1 200.200.100.1 255.255.255.0
|
Creates pool of global IP addresses for NAT.
|
Step 2
|
access-list 101 permit ip 192.168.1 0.0.0.0.255 any log
|
Defines a standard access list permitting addresses that need translation.
|
Step 3
|
ip nat inside source list 101 pool test overload
|
Enables dynamic translation of addresses permitted by access list to one of addresses specified in pool.
|
Step 4
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 5
|
ip nat inside
|
Establishes the Ethernet interface as the inside interface.
|
Step 6
|
no shutdown
|
Enables interface and configuration changes just made to the interface.
|
Step 7
|
exit
|
Exits configuration mode for the Ethernet interface.
|
Step 8
|
interface ATM 0
|
Enters configuration mode for the ATM interface.
|
Step 9
|
ip nat outside
|
Establishes the ATM interface as the outside interface.
|
Step 10
|
no shutdown
|
Enables interface and configuration changes just made to the interface.
|
Step 11
|
exit
|
Exits configuration mode for the ATM interface.
|
Step 12
|
interface bvi 1
|
Enters configuration mode for the BVI.
|
Step 13
|
ip nat outside
|
Establishes the BVI as the outside interface.
|
Step 14
|
no shutdown
|
Enables interface and configuration changes just made to the interface.
|
Step 15
|
end
|
Exits configuration mode for the BVI.
|
Configuration Example
In the following configuration example, you do not have 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)
no ip directed-broadcast (default)
no atm ilmi-keepalive (default)
ip address 200.200.100.1 255.255.255.0
no ip directed-broadcast (default)
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
access-list 101 permit ip 192.168.1.0 0.0.0.255 any log
ip route 0.0.0.0 0.0.0.0 200.200.100.254 (default gateway)
Concurrent Routing and Bridging
This network shows a remote user connecting to the Internet using concurrent routing and bridging (CRB) to route voice traffic and bridge data traffic while keeping each of them separate. This scenario is useful if you want to simplify your network setup for data transmission and then configure voice. The IP address is configured to recognize the difference between data traffic and voice traffic (voice traffic is configured with QoS parameters and virtual circuits). IRB can do routing and bridging on the same interface; CRB does routing and bridging on separate interfaces.
Figure 2-14 shows a CRB Internet scenario with the voice traffic routed and the data traffic bridged. Both the Cisco 827/827-4V router and the Cisco 3640 voice gateway are supporting voice traffic from telephones.
Figure 2-14 CRB Internet Scenario
1
|
Small business or remote user
|
3
|
ATM connection, ATM0.1 PVC 1/40 Voice 1.0.0.1/24, ATM0.2 PVC 8/35 data
|
2
|
Ethernet 0 bridge
|
4
|
The Internet
|
Concurrent routing and bridging are accomplished using different subinterfaces under the ATM interface. Each ATM subinterface that is created is treated uniquely in the network.
Data traffic in this scenario is bridged across ATM subinterface2, using AAL5SNAP encapsulation. A single PVC is created with a VPI/VCI value of 8/35.
Voice traffic is routed across ATM0 subinterface 0.1. There is a single PVC created with a virtual path identifier and virtual channel identifier (vpi/vci) value of 1/40 for voice. The voice subinterface is configured with remote dial peers to determine where outgoing calls are sent and local dial peers to determine what numbers each port should respond to. Each VoIP dial peer is configured for H.323 signaling.
The following configuration topics are covered in this section:
•
Specifying CRB and Configuring the Ethernet Interface
•
Configuring the ATM Interface and Subinterfaces
•
Configuring Voice Ports
•
Configuring the POTS Dial Peers
•
Configuring VoIP Dial Peers for H.323 Signaling
•
Configuration Example
To add additional features to this network, see "Basic Router Configuration" and "Advanced Router Configuration."
After configuring your router, you need to configure the PVC endpoint. For a general configuration example, see "Cisco 3640 Gateway Configuration Example" at the end of this chapter.
Specifying CRB and Configuring the Ethernet Interface
Follow these steps to specify CRB and configure the Ethernet interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
bridge crb
|
Specifies CRB.
|
Step 2
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 3
|
bridge-group 1
|
Specifies the bridge-group number to which the Ethernet interface belongs.
|
Step 4
|
exit
|
Exits configuration mode for the Ethernet interface and the router.
|
Step 5
|
bridge 1 protocol ieee
|
Specifies the bridge protocol to define the type of STP.
|
Configuring the ATM Interface and Subinterfaces
Follow these steps to configure the ATM interface and subinterfaces, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ATM 0.1 point-to-point
|
Specifies the ATM0.1 subinterface.
|
Step 2
|
ip address 1.0.0.1 255.255.255.0
|
Sets the IP address and subnet mask for the ATM0.1 subinterface.
|
Step 3
|
pvc 1/40
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 4
|
encapsulation aal5snap
|
Specifies the encapsulation type for the PVC.
|
Step 5
|
protocol ip 1.0.0.2 broadcast
|
Sets the protocol broadcast for the IP address.
|
Step 6
|
interface ATM 0.2 point-to-point
|
Specifies the ATM0.2 subinterface.
|
Step 7
|
pvc 8/35
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 8
|
encapsulation aal5snap
|
Specifies the encapsulation type for the PVC.
|
Step 9
|
bridge-group 1
|
Specifies the bridge-group number to which the Ethernet interface belongs.
|
Step 10
|
no shutdown
|
Enables the ATM interface.
|
Step 11
|
exit
|
Exits configuration mode for the ATM interface.
|
Configuring Voice Ports
To configure voice ports, you must configure the POTS dial peers and the VoIP dial peers for the signaling type; in this case, the type is H.323.
Configuring the POTS Dial Peers
Follow the steps below to configure the POTS dial peers, beginning in global configuration mode. Table 2-3 shows the destination telephone number and port for each dial peer POTS port.
| |
Command
|
Purpose
|
Step 1
|
dial-peer voice number POTS
|
Enters configuration mode for the dial peer.
|
Step 2
|
destination-pattern string
|
Defines the telephone number associated with the port.
|
Step 3
|
voice port-number
|
Specifies the port number.
|
Table 2-3 Mapping of Dial Peer Number to Destination Telephone and Port
Dial Peer Number
|
Destination Pattern
|
Port
|
101
|
14085271111
|
1
|
102
|
14085272222
|
2
|
103
|
14085273333
|
3
|
104
|
14085274444
|
4
|
Configuring VoIP Dial Peers for H.323 Signaling
Use this table to configure VoIP dial peers for H.323 signaling, beginning in global configuration mode. Table 2-4 shows the destination telephone number for each voice dial peer.
| |
Command
|
Purpose
|
Step 1
|
dial-peer voice number VoIP
|
Enters configuration mode for the dial peer.
|
Step 2
|
destination-pattern string
|
Defines the destination telephone number associated with each VoIP dial peer.
|
Step 3
|
codec g711ulaw
|
Specifies a codec if you are not using the default codec of g.729.
|
Step 4
|
session target ipv4:1.0.0.2
|
Specifies a destination IP address for each dial peer.
|
Table 2-4 Mapping of VoIP Dial Peers to Destination Telephone Numbers for H.323
VoIP Dial Peer
|
Destination Pattern
|
1100
|
12123451111
|
1200
|
12123452222
|
1300
|
12123453333
|
1400
|
12123454444
|
Configuration Example
In the following configuration example, you do not have 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 ip directed-broadcast (default)
no atm ilmi-keepalive (default)
interface ATM0.1 point-to-point
ip address 1.0.0.1 255.255.255.0
no ip directed-broadcast (default)
protocol ip 1.0.0.2 broadcast
interface ATM0.2 point-to-point
no ip directed-broadcast (default)
destination-pattern 14085271111
dial-peer voice 1100 voip
destination-pattern 12123451111
session target ipv4:1.0.0.2
destination-pattern 14085272222
dial-peer voice 1200 voip
destination-pattern 12123452222
session target ipv4:1.0.0.2
destination-pattern 14085273333
dial-peer voice 1300 voip
destination-pattern 12123453333
session target ipv4:1.0.0.2
destination-pattern 14085274444
dial-peer voice 1400 voip
destination-pattern 12123454444
session target ipv4:1.0.0.2
Voice Scenario
This section describes a voice scenario configuration using the Cisco 827-4V router in an H.323 signaling environment.
Setting up voice on the router actually includes two configurations; one for data and one for voice. When you have completed the configuration for the data scenario, you can add voice by configuring the POTS and VoIP dial peers and voice ports. Scenarios for data and voice are discussed below.
Data Network
Figure 2-15 shows a data network with traffic routing through the Cisco 827 router and then switching onto the ATM interface.
Figure 2-15 Data Network
1
|
Ethernet connection to a Cisco 827 router
|
2
|
Ethernet connection 0/1 at address 172.17.1.1, subnet 255.255.255.0
|
3
|
Ethernet connection 0 at 172.17.1.36, subnet 255.255.255.0
|
The Cisco 827 router is connected through the ATM interface through one PVC and it is associated with a QoS policy called mypolicy. Data traffic coming from the Ethernet must have an IP precedence below 5 (critical) to distinguish it from voice traffic.
Enhanced IGRP is configured to send hello packets every 5 seconds to inform neighboring routers that it is functioning. If a particular router does not send a hello packet within a prescribed period, Enhanced IGRP assumes that the state of a destination has changed and sends an incremental update.
NAT (represented as the dashed line at the edge of the Cisco 827 routers) signifies two addressing domains and the inside source address. The source list defines how the packet travels through the network.
This scenario includes configuration tasks and a configuration example. To add additional features to this network, see "Basic Router Configuration" and "Advanced Router Configuration."
After configuring your router, you need to configure the PVC endpoint. For a general configuration example, see "Cisco 3640 Gateway Configuration Example" at the end of this chapter.
Voice Network
Figure 2-16 shows a voice network with a Cisco 827-4V router and a Cisco 3640 router as the VoIP gateway using H.323 signaling (H.323 gateway).
Figure 2-16 Voice Network
1
|
Cisco 827-4V router serving as a voice gateway
|
4
|
Ethernet 1 connection at address 172.17.1.1, subnet 255.255.255.0
|
2
|
Cisco 3640 router serving as a voice gateway
|
5
|
Cisco 3640 router serving as voice gatekeeper
|
3
|
Ethernet 0 connection at address 172.17.1.36, subnet 255.255.255.0
|
|
|
The Cisco 3640 router is set up on the LAN as a gatekeeper, which provides address translation and control access for the LAN for H.323 terminals and gateways. The gatekeeper may provide other services to the H.323 terminals and gateways, such as managing bandwidth and locating gateways.
In this scenario, the dial endpoint is the Cisco 3640 router, with an IP address of 172.17.1.36 and a subnet mask of 255.255.255.0. This configuration assumes a single-zone setup so that both the Cisco 827-4V and the 3640 router are in the same zone.
Dialed numbers are stored by the VoIP session application in the Cisco 827-4V router, in this case H.323. After enough digits are accumulated to match a configured destination pattern, the telephone number is mapped to a dial peer and session target. In this configuration, the dial peer has a session target of RAS, which is a protocol run between the H.323 session protocol gateway and gatekeeper.
The gatekeeper resolves the destination for each dialed number, and the call signal routes to the Cisco 3640 gateway, which assigns the call to a voice port.
The coder-decoder compression schemes (codecs) are enabled for both ends of the connection and QoS parameters are configured for IP precedence.
Configuration Tasks
To configure the voice scenario, you must configure the data network and then the voice network.
•
Configure the data network:
–
Configuring the class map, route map, and policy map
–
Configuring the Ethernet interface
–
Configuring the ATM interface
–
Configuring Enhanced IGRP
•
Configure the voice network:
–
Configuring the POTS dial peers
–
Configuring VoIP dial peers for H.323 signaling
•
Configuration Examples
Use the tables shown here to configure this scenario. Each command includes the values in the data and voice configuration examples shown at the end of this section. Configuration examples are shown for the Cisco 827-4V router and the gateway and gatekeeper endpoint routers.
After configuring your router, you need to configure the PVC endpoint. For a general configuration example, see "Cisco 3640 Gateway Configuration Example" at the end of this chapter.
Configuring the Class Map, Route Map, and Policy Map
Follow these steps to configure the class map, route map, and policy map, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
access-lists 101 permit ip any any precedence 5
|
Configures the access list.
|
Step 2
|
class-map voice
|
Configures the class map.
|
Step 3
|
match access-group 101
|
Assigns access list 101 to the class map.
|
Step 4
|
route-map data permit 10
|
Configures the route map.
|
Step 5
|
ip precedence routine
|
Sets the IP precedence.
|
Step 6
|
policy-map mypolicy
|
Configures a policy map.
|
Step 7
|
class voice
|
Specifies the class for queuing voice traffic.
|
Step 8
|
priority 176
|
Specifies the bandwidth for queuing.1
|
Step 9
|
class class-default
|
Configures the default class for all traffic but voice traffic.
|
Configuring the Ethernet Interface
Follow the steps here to configure the Ethernet interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ethernet 0
|
Enters configuration mode for the Ethernet interface.
|
Step 2
|
ip address 20.20.20.20 255.255.255.0
|
Sets the IP address and subnet mask for the Ethernet interface.
|
Step 3
|
ip policy route-map data
|
Configures the IP policy route map.
|
Step 4
|
ip route-cache policy
|
Enables fast-switching policy routing.
|
Step 5
|
no shutdown
|
Enables the Ethernet interface.
|
Step 6
|
exit
|
Exits configuration mode for the Ethernet interface.
|
Configuring the ATM Interface
Follow the steps here to configure the ATM interface, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
interface ATM 0
|
Enters configuration mode for the ATM interface.
|
Step 2
|
ip address 10.10.10.20 255.255.255.0
|
Sets the IP address and subnet mask for the ATM interface.
|
Step 3
|
pvc 8/35
|
Creates an ATM PVC for each end node with which the router communicates.
|
Step 4
|
encapsulation aal5snap
|
Specifies the encapsulation type for the PVC.
|
Step 5
|
protocol ip 10.10.10.36 broadcast
|
Specifies the protocol broadcast for the IP address.
|
Step 6
|
service-policy output mypolicy
|
Specifies the service policy for the ATM interface.
|
Step 7
|
vbr-nrt 640 640 1
|
Specifies the ATM service class.
|
Step 8
|
no shutdown
|
Enables the ATM interface.
|
Step 9
|
exit
|
Exits configuration mode for the ATM interface.
|
Configuring Enhanced IGRP
Follow the steps here to configure Enhanced IGRP, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
router eigrp 100
|
Enters router configuration mode, and enables 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 number
|
Specifies the network number for each directly connected network.
|
Step 3
|
exit
|
Exits router configuration mode.
|
Configuring the POTS Dial Peers
Follow the steps here to configure each POTS dial peer, beginning in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
dial-peer voice number POTS
|
Enters configuration mode for the dial peer
|
Step 2
|
destination-pattern string
|
Defines the destination telephone number associated with the VoIP dial peer.
|
Step 3
|
port number
|
Specifies the port number.
|
Configuring VoIP Dial Peers for H.323 Signaling
Follow the steps here to configure VoIP dial peers for H.323 signaling in global configuration mode.
| |
Command
|
Purpose
|
Step 1
|
dial-peer voice number VoIP
|
Enters configuration mode for the dial peer.
|
Step 2
|
destination-pattern string
|
Defines the destination telephone number associated with each VoIP dial peer.
|
Step 3
|
codec g711ulaw
|
Specifies a codec if you are not using the default codec of g.729.
|
Step 4
|
ip precedence 5
|
Sets the IP precedence.
|
Step 5
|
session target ras
|
Specifies a destination IP address for each dial peer.
|
Configuration Examples
This section contains the following configuration examples:
•
Cisco 827-4V Router Configuration Example
•
Cisco 3640 Gateway Configuration Example
•
Cisco 3640 Gatekeeper Configuration Example
Cisco 827-4V Router Configuration Example
The following is a configuration example for the Cisco 827-4V router portion of the voice network scenario. You do not have to enter the commands marked "default." These commands appear automatically in the file generated when you use the show running-config command.
set ip precedence routine
ip address 20.20.20.20 255.255.255.0
no ip directed-broadcast (default)
ip address 10.10.10.20 255.255.255.0
no ip directed-broadcast (default)
no atm ilmi-keepalive (default)
service-policy output mypolicy
protocol ip 10.10.10.36 broadcast
! 640 is the maximum upstream rate of ADSL
h323-gateway voip interface
h323-gateway voip id gk-twister ipaddr 172.17.1.1 1719
h323-gateway voip h323-id gw-820
h323-gateway voip tech-prefix 1#
access-list 101 permit ip any any precedence critical(5)
destination-pattern .......
destination-pattern 4085258111
destination-pattern 14085258222
destination-pattern 14085258333
destination-pattern 14085258444
Cisco 3640 Gateway Configuration Example
The following is a configuration example for the Cisco 3640 gateway portion of the voice network scenario. You do not have to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
destination-pattern .......
destination-pattern 12125253111
destination-pattern 12125253222
destination-pattern 12125253333
destination-pattern 12125253444
ip address 172.17.1.36 255.255.255.0
h323-gateway voip interface
h323-gateway voip id gk-twister ipaddr 172.17.1.1 1719
h323-gateway voip h323-id gw-3640
h323-gateway voip tech-prefix 1#
ip address 10.10.10.36 255.255.255.0
service-policy output mypolicy
protocol ip 10.10.10.20 broadcast
access-list 101 permit ip any any precedence critical (5)
Cisco 3640 Gatekeeper Configuration Example
The following is a configuration example for the H.323 gatekeeper portion of the voice network scenario. You do not have to enter the commands marked "default." These commands appear automatically in the configuration file generated when you use the show running-config command.
ip dvmrp route-limit 20000
ip address 172.28.9.83 255.255.255.0
no ip directed-broadcast (default)
ip address 172.17.1.1 255.255.255.0
no ip directed-broadcast (default)
zone local gk-router router.cisco.com 172.17.1.1
zone remote gk-sf1 cisco.com 179.15.2.2
zone remote gk-sf2 lucent.com 180.4.0.1
zone prefix gk-sf1 1415525....
zone prefix gk-sf2 1415527....