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.
dhcp server sip-server { ip-address ip-address &<1-2> | list domain-name &<1-2> }
undo dhcp server sip-server
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 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.
Prerequisites
IP addresses in the interface address pool have been configured using the ip address command.
The DHCP server function has been enabled on the interface using the dhcp select interface command.
# 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.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.1.1.1 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server sip-server ip-address 10.1.1.1
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ip address 10.1.1.1 24 [HUAWEI-GigabitEthernet0/0/1] dhcp select interface [HUAWEI-GigabitEthernet0/0/1] dhcp server sip-server ip-address 10.1.1.1