portal nas-ip

Syntax

portal nas-ip { ipv4-address | ipv6 ipv6-address }

undo portal nas-ip [ ipv6 ]

View

VLAN interface view

Default level

2: System level

Parameters

ipv4-address: Specifies a source IPv4 address for outgoing portal packets. This IP address must be a local IP address, and cannot be 0.0.0.0, 255.255.255.255, a class D address, a class E address, or a loopback address.

ipv6 ipv6-address: Specifies a source IPv6 address for outgoing portal packets. This IPv6 address must be a local IPv6 address, but cannot be a multicast address, an all 0 address, or a link-local address.

Description

Use portal nas-ip to configure an interface to use a specific source IP address for outgoing portal packets.

Use undo portal nas-ip to delete the specified source IP address. If you do not specify the ipv6 keyword, this command deletes the specified source IPv4 address.

By default, no source IP address is specified for outgoing portal packets, and the IP address of the user access interface is used as the source IP address of the outgoing portal packets.

Examples

# Configure the source IPv4 address for portal packets to be sent on VLAN-interface 5 as 2.2.2.2.

<Sysname> system-view
[Sysname] interface vlan-interface 5
[Sysname-Vlan-interface5] portal nas-ip 2.2.2.2