Enables Router Advertisement Guard on specified ports in a VLAN. RA Guard protects against rogue RA messages by monitoring and filtering RA frames based on trusted port designation and violation actions.
| vlan_name | Name of the VLAN for which RA Guard is enabled. |
| ports | Port list for RA Guard enforcement. |
| all | Specifies all ports. |
| violation-action | Action taken when a rogue RA is detected. |
| none | Log violation only (no packet drop or port disable). |
| drop-packet | Drop the offending RA packet. |
| block-port | Disable the port where violation occurred. |
| block-mac | Block the source MAC address. |
| permanently | Maintain block/disable until manually cleared. |
| minutes | Duration in minutes to block/disable (then auto-recover). |
RA Guard is disabled by default. Default violation-action is drop-packet.
Enable RA Guard on VLANs where untrusted devices may attach. Configure violation-actions to drop packets and optionally block offending ports or MAC addresses to prevent rogue RA propagation.
The following example enables RA Guard on VLAN guest for ports 1-10, dropping rogue RAs and blocking the offending port for 30 minutes:
enable ip-security ipv6 ra-guard vlan guest ports 1-10 violation-action drop-packet block-port for 30
This command was first available in version 34.1.1.
All platforms.