173
Related commands
display portal rule
portal free-rule source
Use portal free-rule source to configure a source-based portal-free rule. The filtering criteria include
source MAC address, source interface, and source VLAN.
Use undo portal free-rule to delete portal-free rules.
Syntax
portal free-rule rule-number source { interface interface-type interface-number | mac mac-address | vlan
vlan-id } *
undo portal free-rule { rule-number | all }
Default
No source-based portal-free rule is configured.
Views
System view
Predefined user roles
network-admin
Parameters
rule-number: Specifies a portal-free rule number in the range of 0 to 4294967295.
interface interface-type interface-number: Specifies a source interface by its type and number for the
portal-free rule.
mac mac-address: Specifies a source MAC address for the portal-free rule, in the form of H-H-H.
vlan vlan-id: Specifies a source VLAN ID for the portal-free rule.
all: Specifies all portal-free rules.
Usage guidelines
If you specify both the source VLAN and the source Layer 2 interface, the interface must be in the VLAN.
Examples
# Configure source-based portal-free rule: specify the rule number as 3, source MAC address as 1-1-1,
and source VLAN ID as 10. This rule allows the portal user whose source MAC address is 1-1-1 from
VLAN 10 to access network resources without authentication.
<Sysname> system-view
[Sysname] portal free-rule 3 source mac 1-1-1 vlan 10
Related commands
display portal rule
portal ipv6 free-all except destination
Use portal ipv6 free-all except destination to configure an IPv6 portal authentication destination subnet.
Use undo portal ipv6 free-all except destination to delete IPv6 portal authentication destination subnets.