244
Step Command
Remarks
2.
Enter interface view.
interface interface-type
interface-number
N/A
3.
Enable IP segment match.
ppp ipcp remote-address match
By default, this feature is
disabled.
Configuring DNS server IP address negotiation on the client
During PPP negotiation, the server will assign a DNS server IP address only for a client configured
with the
ppp ipcp dns request
command. For some special devices to forcibly assign DNS server
IP addresses to clients that do not initiate requests, configure the
ppp ipcp dns admit-any
command on these devices.
To configure the client:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
N/A
3.
Enable the device to
request the peer for a DNS
server IP address.
ppp ipcp dns request
By default, a client does not request
its peer for a DNS server IP address.
4.
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.
ppp ipcp dns admit-any
By 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.
This command is not necessary if the
ppp ipcp dns request
command is
configured.
Configuring DNS server IP address negotiation on the server
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
N/A
3.
Specify the primary and
secondary DNS server IP
addresses to be allocated
to the peer in PPP
negotiation.
ppp ipcp dns
primary-dns-address
[
secondary-dns-address
]
By default, a device does not allocate
DNS server IP addresses to its peer if
the peer does not request them.
Enabling PPP accounting
PPP accounting collects PPP statistics, including the numbers of received and sent PPP packets
and bytes. AAA can use the PPP statistics for accounting. For more information about AAA, see
"
."
To enable PPP accounting: