R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

116
Examples
# Configure VT interface Virtual-Template 10 to ignore next-hop address matching.
<Sysname> system-view
[Sysname] interface virtual-template 10
[Sysname-Virtual-Template10] ppp ignore match-next-hop
ppp ipcp dns
Syntax
ppp ipcp dns primary-dns-address [ secondary-dns-address ]
undo ppp ipcp dns primary-dns-address [ secondary-dns-address ]
View
VT interface view
Default 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.
Description
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.
By default, a device does not allocate DNS server IP addresses for its peer.
When connected through PPP, the firewall 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 PC is connected to the device through PPP, you can execute the winipcfg command or the ipconfig
/all command on the PC 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 Virtual-Template 10.
<Sysname> system-view
[Sysname] interface Virtual-Template 10
[Sysname-Virtual-Template10] ppp ipcp dns 100.1.1.1 100.1.1.2
ppp ipcp dns admit-any
Syntax
ppp ipcp dns admit-any
undo ppp ipcp dns admit-any