dhcp server sip-server
Function
The dhcp server sip-server command configures the SIP server IP address assigned to a DHCP client on an interface address pool.
The undo dhcp server sip-server command deletes the configured SIP server IP address assigned to a DHCP client on an interface address pool.
By default, the SIP server IP address assigned to a DHCP client on an interface address pool is not configured.
Format
dhcp server sip-server { ip-address ip-address &<1-2> | list domain-name &<1-2> }
undo dhcp server sip-server
Parameters
Parameter | Description | Value |
---|---|---|
ip-address ip-address | Specifies an IP address for the SIP server. |
The value is in dotted decimal notation. |
list domain-name | Specifies the domain name of the SIP server. |
The value is a string of 1 to 63 characters. |
Usage Guidelines
Usage Scenario
This command applies to the DHCP server. To enable DHCP clients to normally access the Internet, the DHCP server needs to specify the SIP server IP address in the interface address pool when assigning IP addresses to the clients.
Precautions
- A maximum of two SIP server addresses can be configured in each address pool. The first assigned address functions as the primary address, and the other address functions as a secondary address.
- Before specifying the IP address or name for a SIP server, ensure that the SIP server exists.
- If you run this command repeatedly, the latest configuration overrides the previous ones.
Example
# Specify 10.1.1.1 as the IP address of the SIP server when addresses in the interface VLANIF100 address pool are assigned to clients.
<AC6605> system-view [AC6605] dhcp enable [AC6605] interface vlanif 100 [AC6605-Vlanif100] ip address 10.1.1.1 24 [AC6605-Vlanif100] dhcp select interface [AC6605-Vlanif100] dhcp server sip-server ip-address 10.1.1.1