22
Predefined user roles
network-admin
Parameters
primary-dns-address
: Specifies a primary DNS server IP address.
secondary-dns-address
: Specifies a secondary DNS server IP address.
Usage guidelines
A device can assign DNS server IP addresses to its peer during PPP negotiation when the peer
initiates requests.
To check the allocated DNS server IP addresses, execute the
winipcfg
or
ipconfig /all
command on
the host.
Examples
# Set the primary and secondary DNS server IP addresses to 100.1.1.1 and 100.1.1.2 for the peer on
Serial 2/1/0.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/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 an interface to accept the DNS server IP addresses
assigned by the peer even though it does not request DNS server IP addresses from the peer.
Use
undo ppp ipcp dns admit-any
to restore the default.
Syntax
ppp ipcp dns admit-any
undo ppp ipcp dns admit-any
Default
An interface does not accept the DNS server IP addresses assigned by the peer if it does not request
DNS server IP addresses from the peer.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
You can configure an interface to accept the DNS server IP addresses assigned by the peer, through
which domain names can be resolved for the device.
Typically, the server assigns a DNS server address to a client in PPP negotiation only when the client
is configured with the
ppp ipcp dns request
command. Some servers, however, forcibly assign
DNS server addresses to clients. You must configure the
ppp ipcp dns admit-any
command on the
client devices to accept the DNS server addresses.
Examples
# Configure Serial 2/1/0 to accept DNS server IP addresses allocated by the peer.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] ppp ipcp dns admit-any
Summary of Contents for MSR810
Page 148: ...136 Related commands timer hold...
Page 331: ...319 Related commands timer hold...