DHCP On Access Server
DHCP On Access Server
DHCP On Access Server
Table of Contents
Configuring WINS, DNS and DHCP on Access Servers.................................................................................1
Introduction.............................................................................................................................................1
Before You Begin...................................................................................................................................1
Conventions......................................................................................................................................1
Prerequisites.....................................................................................................................................1
Components Used.............................................................................................................................2
Background Theory..........................................................................................................................2
Related Products...............................................................................................................................2
Configure................................................................................................................................................2
Network Diagram.............................................................................................................................2
Configurations..................................................................................................................................3
Command Summary.........................................................................................................................5
Verify......................................................................................................................................................6
Troubleshoot...........................................................................................................................................6
Troubleshooting Commands............................................................................................................6
Sample Debug Output......................................................................................................................6
Related Information................................................................................................................................8
i
Configuring WINS, DNS and DHCP on Access
Servers
Introduction
Before You Begin
Conventions
Prerequisites
Components Used
Background Theory
Related Products
Configure
Network Diagram
Configurations
Command Summary
Verify
Troubleshoot
Troubleshooting Commands
Sample Debug Output
Related Information
Introduction
Certain dialin clients require Windows Internet Naming Service (WINS), and/or Domain Naming System
(DNS) server information in order to properly connect to the network. There are also several different
mechanisms for delivering IP addresses to dialin clients on access servers.
Prerequisites
Before attempting this configuration, please ensure that you meet the following prerequisites:
Configure and verify that the router can accept incoming async and ISDN calls. Use the configuration
procedure specified in Configuring an Access Server with PRIs for Incoming Multilink Async and ISDN
Calls for further information.
Verify that the DHCP, DNS and WINS servers are setup correctly. Contact your system administrator for
more information.
Note: This configuration assumes the WINS, DNS, and DHCP servers are different servers. They can in fact
be one server, or one server can be running WINS and DNS with DHCP on another box or any other
combination of the three.
The information presented in this document was created from devices in a specific lab environment. All of the
devices used in this document started with a cleared (default) configuration. If you are working in a live
network, ensure that you understand the potential impact of any command before using it.
Background Theory
Some possible options for assigning IP addresses to clients include:
This document describes the procedure to pass WINS and DNS server information to the dialin client through
the access server. The access server will also pass the IP address returned by an external DHCP server to the
dialin client.
For more information, refer to the documents in the Related Information section of this document
Related Products
This DNS, DHCP and WINS configuration commands can be used on any router that supports incoming PPP
calls.
Configure
In this section, you are presented with the information to configure the features described in this document.
Network Diagram
This document uses the network setup shown in the diagram below.
!
interface Serial0
no ip address
!
interface Serial1
no ip address
!
interface Serial0:23
no ip address
isdn incoming−voice modem
dialer rotary−group 1
encapsulation ppp
no fair−queue
!
interface Serial1:23
no ip address
encapsulation ppp
dialer rotary−group 1
isdn incoming−voice modem
no fair−queue
!
interface Group−Async1
ip unnumbered Ethernet0
encapsulation ppp
async mode interactive
peer default ip address dhcp
! −− Async dialup users will be assigned ip addresses from the dhcp server
! −− The dhcp server specified with the ip dhcp−server command shown below
! −− Refer to the section Command Summary for more information
ip helper−address 172.16.162.10
! −− The ip helper address command enables BOOTP broadcast forwarding for a set of clients.
! −− The helper address specifies the address of the DHCP server configured below.
! −− Refer to the section Command Summary for more information
! −− ISDN dialup users will be assigned ip addresses from the dhcp server
! −− The dhcp server specified with the ip dhcp−server command shown below
! −− Refer to the section Command Summary for more information
ip helper−address 172.16.162.10
! −− The ip helper address command enables BOOTP broadcast forwarding for a set of clients.
! −− The helper address specifies the address of the DHCP server configured below.
! −− Refer to the section Command Summary for more information
dialer in−band
dialer idle−timeout 300
dialer−group 1
ip dhcp−server 172.16.162.10
!
line con 0
login
line 1 48
modem InOut
transport input telnet
autoselect during−login
autoselect ppp
flowcontrol hardware
line aux 0
line vty 0 4
password secret
login
!
end
Command Summary
The following is a description of the relevant commands for DHCP, DNS and WINS on Access Servers:
• ip helper−address address − DHCP protocol information is carried inside of BOOTP packets. The ip
helper address command enables BOOTP broadcast forwarding for a set of clients. The helper address
should specify the address of the DHCP server and should be configured on the interface closest to
the client (in this case the group−async and dialer interfaces). If you have multiple servers, you can
configure one helper address for each server. Helper addresses are defined in RFC 1531 .
• peer default ip address dhcp − Specifies an address from the DHCP mechanism to be returned to a
remote peer connecting to this interface. This means that clients connecting on that interface will be
assign an IP address retrieved from the DHCP server. You should also specify the IP address of the
DHCP server, using the command ip dhcp server, from which the client IP address will be obtained.
Verify
To verify whether the client has correctly received the appropriate parameters from the Access Server, you
need to test from the client.
For example, from the client, ping a DNS resolvable address such as www.cisco.com. If the DNS server
resolves the address, then the configuration is working correctly. To test the WINS server assignment, use
Windows networking to browse the network.
Use the show dialer map command after an ISDN connection is made, to see if a dynamic dialer map was
created. Without it, you cannot route. You should see an address assigned to the peer (the address was
obtained from the DHCP server). This verifies that the DHCP address assignment was successful.
Certain show commands are supported by the Output Interpreter tool, which allows you to view an analysis of
show command output.
Troubleshoot
This section provides information you can use to troubleshoot your configuration.
Troubleshooting Commands
This document assumes that ISDN Layers 1, 2 and 3 are working correctly. If you have issues with ISDN
lower layer issues. Refer to the document Using the show isdn status Command for BRI Troubleshooting for
more information.
Note: Before issuing debug commands, please see Important Information on Debug Commands.
• debug ppp authentication− To see if a client is passing authentication. If you are using a version
prior to Cisco IOS® Software Release 11.2, use the debug ppp chap command instead.
• debug ppp negotiation− To see if a client is passing PPP negotiation; this is when you check for
address negotiation. The IPCP negotiation shows the DNS and WINS server information being passed
to the client
• debug ppp error− To display protocol errors and error statistics associated with PPP connection
negotiation and operation.
The DNS and WINS server assignment can be seen in the IPCP phase of the PPP negotiation. A sample
output is provided below.
! −− The IP address of the client and Primary DNS server's IP address are negotiated
Related Information
• Windows Networking Design Implementation Guide
• Using the Cisco IOS DHCP Server on Access Servers
• Knowledge: Understanding DHCP
• How to Enable Browsing Using NetBIOS Over IP
• Connecting a Windows 95 Client to a Windows NT Server through a Cisco Router
• Configuring an Access Server with PRIs for Incoming Multilink Async and ISDN Calls
• Advanced TACACS+
• Access Products Support Page
• Access Technology Support Page
• Technical Support − Cisco Systems
All contents are Copyright © 1992−2003 Cisco Systems, Inc. All rights reserved. Important Notices and Privacy Statement.