This topic describes how to create and manage IPv6 routes. You can use IPv6 routes to control the IPv6 traffic of a virtual private cloud (VPC).
Background information
IPv6 routes are classified into system routes and custom routes. You can add custom
IPv6 routes only to a system route table.
- System route table: After you create a VPC, the system creates a system route table for the VPC and adds system routes to the route table. The system routes are used to route traffic within the VPC. You cannot add system routes to or delete system routes from the system route table. However, you can view the IPv6 routes that are automatically added to the system route table. For more information, see View the automatically added IPv6 routes.
- Custom route table: You can create a custom route table in a VPC and associate the custom route table with a vSwitch. This allows you to manage networks in a more flexible manner. For more information, see Create a custom route table.
- Custom IPv6 route: You can add a custom route to route traffic destined for a specified CIDR block to a specified destination. If you no longer need a custom route, you can delete the custom route. For more information, see Add and delete custom IPv6 routes.
Prerequisites
- A VPC is created and IPv6 is enabled for the VPC. For more information, see Enable IPv6 for a VPC.
- A vSwitch is created and IPv6 is enabled for the vSwitch. For more information, see Enable IPv6 for a vSwitch.
View the automatically added IPv6 routes
After you enable IPv6 for a vSwitch, the system automatically adds a system route and a custom route to the system route table. You can view the automatically added routes in the VPC console.
Add and delete custom IPv6 routes
References
- DescribeRouteTableList: queries route tables.
- CreateRouteEntry: creates a custom route.
- DeleteRouteEntry: deletes a custom route.