< Home

ad-server source

Function

The ad-server source command configures the source IP address that a device uses when sending packets to the AD server.

The undo ad-server source command restores the default configuration.

By default, when a device sends packets to the AD server, the IP address of the actual outbound interface is used as the source IP address.

Format

ad-server source { loopback interface-number | ip-address ip-address | vlanif interface-number }

undo ad-server source

Parameters

Parameter

Description

Value

loopback interface-number

Specifies the IP address of a loopback interface as the source IP address that the device uses when sending packets to the AD server.

The value is an integer that ranges from 0 to 2147483647.

ip-address ip-address

Specifies an IP address as the source IP address that the device uses when sending packets to the AD server.

The value must be a valid unicast address in dotted decimal notation.

vlanif interface-number

Specifies the IP address of a VLANIF interface as the source IP address that the device uses when sending packets to the AD server. The interface-number parameter indicates the VLANIF interface number.

The value is an integer that ranges from 1 to 4094.

Views

AD server template view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

By default, when a device sends packets to the AD server, the IP address of the actual outbound interface is used as the source IP address. In some scenarios where the IP address of the actual outbound interface is used, the device cannot communicate with the AD server. For example, if an IPSec tunnel is deployed between the device and the AD server and the IP address of the outbound interface found based on the routing entries is a public IP address, data forwarded using this public IP address cannot be transmitted through the IPSec tunnel. In this case, you need to change the IP address that the device uses for communication with the AD server using the ad-server source command.

Precautions

If the specified loopback interface or VLANIF interface is not created or no IP address is configured for the specified interface, use the IP address of the actual outbound interface as the source IP address.

Example

# Set the source IP address that the device uses when sending packets to the AD server to 10.1.1.1.

<sysname> system-view
[sysname] ad-server template t1
[sysname-ad-t1] ad-server source ip-address 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >