Command Manual – Portal
H3C S7500E Series Ethernet Switches
Chapter 1 Portal Configuration Commands
1-15
1.1.11 portal free-rule
Syntax
portal free-rule rule-number
{
destination
{
any
|
ip
{
ip-address mask
{
mask-length
|
netmask
} |
any
} } |
source
{
any
| [
interface
interface-type interface-number
|
ip
{
ip-address mask
{
mask-length
|
netmask
} |
any
} |
mac
mac-address
|
vlan
vlan-id
]
* } } *
undo portal free-rule
{
rule-number
|
all
}
View
System view
Parameters
rule-number
: Number for the portal-free rule, in the range 0 to 31.
any
: Imposes no limitation on the previous keyword.
ip ip-address
: Specifies an IP address.
mask
{
mask-length
|
netmask
}: Specifies the mask of the IP address, which can be in
dotted decimal notation or an integer in the range 0 to 32.
interface
interface-type interface-number
: Specifies a source interface.
mac mac-address
: Specifies a source MAC address in the format of H-H-H.
vlan vlan-id
: Specifies a source VLAN ID. The value range is from 1 to 4094.
all
: Specifies all portal-free rules.
Description
Use the
portal free-rule
command to configure a portal-free rule and specify the
source filtering condition and/or destination filtering condition.
Use the
undo portal free-rule
command to remove a specified portal-free rule or all
portal-free rules.
Related commands:
display portal free-rule
.
Note:
z
If you specify both the source IP and source MAC address information in a
portal-free rule, the IP address must be a host address with a mask of 32 bits;
otherwise, the specified MAC address will be neglected.
z
You cannot configure two portal-free rules with the same filtering conditions.
Otherwise, the device will prompt that the portal-free rule already exists.