IPv6 Configuration Guide K/KA/KB.15.15

Example 198 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 Switch C
1. 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.
Example 199 Configuring a Tunnel Endpoint (opposite end)
HP Switch(config)# interface tunnel 1
HP Switch(tunnel-1)# tunnel mode 6in4
HP Switch(tunnel-1)# tunnel source 30.0.0.1
HP Switch(tunnel-1)# tunnel destination 20.0.0.1
HP Switch(tunnel-1)# ipv6 address 5000::2/64
2. Configure VLAN 2 for the IPv6 Hosts on the 4000::/64 Network
This step is performed in VLAN context.
Example 200 Configuring the VLAN for Routing Traffic into the Tunnel
HP Switch(config)# vlan 2
HP Switch(vlan-2)# ipv6 address 4000::1/64
3. Configure the VLAN Used to Reach the First Hop Router in the IPv4 Network
This step is performed in VLAN context.
Example 201 Configuring the IPv4 Tunnel Endpoint Address
HP Switch(vlan-2)# ip address 30.0.0.1/24
4. Configure the IPv4 Default Gateway and Enable Unicast Routing
Example 202 Configuring the IPv4 Default Gateway and Configuring Unicast Routing
HP Switch(config)# ip default-gateway 30.0.0.2
HP Switch(config)# ipv6 unicast routing
270 IPv6 Tunneling Over IPv4 Using Manually Configured Tunnels