652
Parameters
policy-name
: Assigns a name to the RA guard policy. The name is a case-sensitive string of 1 to 31
characters.
Examples
# Create RA guard policy
policy1
and enter its view.
<Sysname> system-view
[Sysname] ipv6 nd raguard policy policy1
[Sysname-raguard-policy-policy1]
Related commands
display ipv6 nd raguard policy
ipv6 nd raguard apply policy
ipv6 nd raguard role
Use
ipv6 nd raguard role
to specify the role of the device attached to the interface.
Use
undo ipv6 nd raguard role
to remove the role of the device attached to the interface.
Syntax
ipv6 nd raguard role
{
host
|
router
}
undo ipv6 nd raguard role
Default
No role is specified for the device attached to the interface.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameters
host
: Specifies the host role. The interface attached to a host drops all received RA messages.
router
: Specifies the router role. The interface attached to a router forwards all received RA
messages.
Usage guidelines
Make sure your setting is consistent with the device type. If you are not aware of the attached device
type, do not specify a role for the device.
Examples
# Specify
host
as the role for the device attached to Ten-GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] ipv6 nd raguard role host