R3303-HP HSR6800 Routers Layer 2 - WAN Command Reference
42
[Sysname-Serial2/0/1] ppp chap user Root
Related commands
ppp authentication-mode
ppp ipcp dns
Use ppp ipcp dns to configure the primary and secondary DNS server IP addresses to be used in PPP
negotiation.
Use undo ppp ipcp dns to cancel the configuration.
Syntax
ppp ipcp dns primary-dns-address [ secondary-dns-address ]
undo ppp ipcp dns primary-dns-address [ secondary-dns-address ]
Default
A device does not allocate DNS server IP addresses for its peer.
Views
Interface view
Default command level
2: System level
Parameters
primary-dns-address: Primary DNS server IP address to be set.
secondary-dns-address: Secondary DNS server IP address to be set.
Usage guidelines
When connected through PPP, a device can assign DNS server IP addresses to its peer during PPP
negotiation (if the peer requests) for the peer to access the network by domain names.
If a host is connected to the device through PPP, you can execute the winipcfg command or the ipconfig
/all command on the host to check the DNS server IP addresses assigned by the device.
A device can provide a primary DNS server IP address and a secondary DNS server IP address to its
peer.
Examples
# Set the primary DNS server IP address to 100.1.1.1 and the secondary DNS server IP address to
100.1.1.2 on interface Serial 2/0/1.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp ipcp dns 100.1.1.1 100.1.1.2
ppp ipcp dns admit-any
Use ppp ipcp dns admit-any to configure the device to accept the DNS server IP addresses assigned by
the peer even though it does not request the peer for the DNS server IP addresses.
Use undo ppp ipcp dns admit-any to configure the device to deny the DNS server IP addresses assigned
by the peer if it does not request the peer for the DNS server IP addresses.