Command Manual – User Access
H3C SecPath Series Security Products
Chapter 1 PPP Configuration Commands
1-7
Example
# Configure the local user name to Root when CHAP authentication is performed on
interface Dialer1.
[H3C- Dialer1] ppp chap user Root
1.1.8 ppp ipcp dns
Syntax
ppp ipcp dns
primary-dns-address
[
secondary-dns-address
]
undo ppp ipcp dns
primary-dns-address
[
secondary-dns-address
]
View
Interface view
Parameter
primary-dns-address
: Address of the primary DNS server.
secondary-dns-address
: Address of the secondary DNS server.
Description
Use the
ppp ipcp dns
command to enable the firewall to allocate DNS address to
peers.
Use the
undo ppp ipcp dns
command to disable the firewall from allocating a DNS
address to peers.
By default, the firewall does not allocate DNS address to peers.
When peer devices connect with the firewall through PPP (for example, when a PC
dials in the gateway), the firewall can allocate DNS address to the peer devices when
solicited by these devices (it will not automatically do this), and thus these devices can
access networks through domain names.
When connecting with the firewall from a PC, the user can check the DNS address
provided by the gateway with the
winipcfg
or
ipconfig/all
command on the PC.
The firewall can provide both addresses of the primary and secondary DNS servers to
peer devices.
Related command:
ppp authentication-mode pap
,
ppp ipcp dns admit-any
.
Example
# Set the primary DNS address allocated by the firewall to 100.1.1.1, and the
secondary DNS address to 100.1.1.2.
[H3C-Dialer1] ppp ipcp dns 100.1.1.1 100.1.1.2