The following example uses the configuration shown in Configuring the IPv4 default gateway. The routing configuration uses PBR to route into the tunnel. The configuration steps are similar to the prior example, with the addition of the PBR configuration.
-
Configure the Tunnel Endpoint for Switch B
The tunnel endpoint for Switch B is configured with a mode, source and destination, and an IPv6 address.
-
Configure VLAN 2 for the IPv6 Hosts on the 3000::/64 Network
-
Configure the VLAN Used to Reach the First Hop Router in the IPv4 Network
-
Configure the IPv4 Default Gateway and Enable Unicast Routing
-
Configure IPv6 PBR-Based Routing
Execute these steps to configure the IPv6 PBR-based routing to route into the tunnel, and apply it to the inbound VLAN.
Configuring IPv6 PBR-based routing
HP Switch(config)# class ipv6 PBR_Class HP Switch(config-class)# match ipv6 any 4000::/64 HP Switch(config-class)# exit HP Switch(config)# policy pbr PBR_Policy HP Switch(policy-pbr)# class ipv6 PBR_Class HP Switch(policy-pbr)# action interface tunnel 1 HP Switch(policy-pbr)# exit HP Switch(config)# vlan 2 HP Switch(vlan-2)# service-policy PBR_Policy in
-
Configure the Tunnel Endpoint for Switch C
The tunnel endpoint for Switch C is configured with a mode, source and destination, and an IPv6 address.
-
Configure VLAN 2 for the IPv6 Hosts on the 4000::/64 Network
-
Configure the VLAN Used to Reach the First Hop Router in the IPv4 Network
-
Configure the IPv4 Default Gateway and Enable Unicast Routing
-
Configure IPv6 PBR-Based Routing
Execute these steps to configure the IPv6 PBR-based routing to route into the tunnel, and apply it to the inbound VLAN.
Configuring IPv6 PBR-based routing
HP Switch(config)# class ipv6 PBR_Class HP Switch(config-class)# match ipv6 any 3000::/64 HP Switch(config-class)# exit HP Switch(config)# policy pbr PBR_Policy HP Switch(policy-pbr)# class ipv6 PBR_Class HP Switch(policy-pbr)# action interface tunnel 1 HP Switch(policy-pbr)# exit HP Switch(config)# vlan 2 HP Switch(vlan-2)# service-policy PBR_Policy in