53Configuring attributes related to the data sent toHWTACACS serverFollow these steps to configure the attributes related to the data sent to the HWTACACS server:To do… Use the command… Remarks1. Enter system view system-view —2. Enter HWTACACS scheme view hwtacacs scheme hwtacacs-scheme-name —3. Specify the format of the usernameto be sent to an HWTACACSserveruser-name-format { keep-original | with-domain |without-domain }OptionalBy default, the ISP domain nameis included in the username.4. Specify the unit for data flows orpackets to be sent to anHWTACACS serverdata-flow-format { data {byte | giga-byte | kilo-byte | mega-byte } |packet { giga-packet | kilo-packet | mega-packet |one-packet } }*OptionalThe defaults are as follows:byte for data flows, andone-packet for data packets.If an HWTACACS server does not support a username with the domain name, you can configure the switchto remove the domain name before sending the username to the server.Specifying the source IP address for HWTACACS packetsto be sentYou can specify an IP address as the source address for HWTACACS packets to be sent on aNAS, so that when the physical outbound interface fails, response packets from the HWTACACSserver can still arrive at the NAS.You can specify the source IP address for HWTACACS packets to be sent in HWTACACS schemeview for a specific HWTACACS scheme, or in system view for all HWTACACS schemes whoseservers are in a VPN or the public network.Before sending an HWTACACS packet, a NAS selects a source IP address in this order:1. The source IP address specified for the HWTACACS scheme.2. The source IP address specified in system view for the VPN or public network, depending onwhere the HWTACACS server resides.3. The IP address of the outbound interface.Follow these steps to specify a source IP address for all HWTACACS schemes in a VPN or thepublic network:To do… Use the command… Remarks1. Enter system view system-view —