Ppp Ipcp Dns Admit-Any - H3C MSR Series Command Reference Manual

Routers. layer 2 - wan command (v7)
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

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.
Examples
# Set the primary and secondary DNS server IP addresses to 100.1.1.1 and 100.1.1.2 for the peer on
interface Serial 2/0.
<Sysname> system-view
[Sysname] interface serial 2/0
[Sysname-Serial2/0] 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.
Syntax
ppp ipcp dns admit-any
undo ppp ipcp dns admit-any
Default
A device does not accept the DNS server IP addresses assigned by the peer if it does not request the peer
for the DNS server IP addresses.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
You can configure a device to accept the DNS server IP addresses assigned by the peer, through which
domain names can be resolved for the device.
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/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/0
[Sysname-Serial2/0] ppp ipcp dns admit-any
Related commands
ppp ipcp dns request
8

Advertisement

Table of Contents
loading

Table of Contents