< Home

nd raguard role

Function

The nd raguard role command configures an interface role for IPv6 RA guard.

The undo nd raguard role command deletes the interface role configured for IPv6 RA guard.

By default, no interface role is configured for IPv6 RA guard.

Format

nd raguard role { host | router }

undo nd raguard role

Parameters

Parameter Description Value

host

Specifies the interface role as a host interface.

-

router

Specifies the interface role as a router interface.

-

Views

Layer 2 Ethernet interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Administrators can configure an interface role based on the network location of interfaces. If an interface is connected to a user host, administrators can configure the interface role of the interface as a host interface. If the interface is connected to a router, administrators can configure the interface role of the interface as a router interface.

  • If the interface role of the interface is a router interface, the system forwards the RA messages received by the interface.
  • If the interface role of the interface is a host interface, the system discards the RA messages.

Example

# On GE0/0/1, configure the interface role as a router interface for IPv6 RA guard.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] nd raguard role router
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >