R0106-HP MSR Router Series Layer 2 - WAN Command Reference(V7)

16
Generally, the server will specify a DNS server address for a client in PPP negotiation only after the client
is configured with the ppp ipcp dns request command. For some special devices to forcibly specify DNS
server addresses for clients that do not initiate requests, you must configure the ppp ipcp dns admit-any
command on these devices.
Examples
# Configure interface Serial 2/1/0 of the local device to accept the DNS server IP addresses allocated
by the peer even though it does not request the peer for the DNS server IP addresses.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] ppp ipcp dns admit-any
Related commands
ppp ipcp dns request
ppp ipcp dns request
Use ppp ipcp dns request to enable a device to actively request its peer for the DNS server IP address
through a port.
Use undo ppp ipcp dns request to restore the default.
Syntax
ppp ipcp dns request
undo ppp ipcp dns request
Default
A device does not actively request its peer for the DNS server IP address.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
If a device is connected to a provider's access server through a PPP link, you can configure the device to
obtain the DNS server IP address from the access server during IPCP negotiation.
You can check the DNS server IP addresses by displaying information about the port.
Examples
# Enable the device to request its peer for the DNS server IP address actively through interface Serial
2/1/0.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] ppp ipcp dns request
ppp pap local-user
Use ppp pap local-user to set the local username and password for PAP authentication.
Use undo ppp pap local-user to cancel the configured local username and password.