578
In above example is created a VRF named DC1 with RD value 100:10. the RT is
configured bilateral. The RT-VALUE is equal to RD.
14.8.3.83 set vpnv4 next-hop
Command: set vpnv4 next-hop <ip-addr>
no set vpnv4 next-hop <ip-addr>
Function:
Configure the nexthop of the VPNv4 route.
Parameter: <ip-addr>
is
nexthop of vpnv4 route
Command Mode
:vrf mode
Usage Guide:
Configure VPNv4 route nexthop with this command. As normal nexthop
settings are only for IPv4 route, this command specially configures the VPNv4
address-family.
Example:
Configure the address-family as follows:
Switch(config)#route-map map1 permit 15
Switch(config-map)#match interface Vlan1
Switch(config-map)#set weight 655
Switch(config-map)#set vpnv4 next-hop 10.1.1.250
Switch(config-map)#exit
Switch(config)#router bgp 100
Switch(config-router)#neighbor 10.1.1.68 remote-as 100
Switch(config-router)#neighbor 10.1.1.68 route-map map1 in
Switch(config-router)#address-family vpnv4 unicast
Switch(config-router-af)#neighbor 10.1.1.68 activate
Switch(config-router-af)#exit-address-family
View the routing message after refresh
Switch#show ip bgp vpn all
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:10 (Default for VRF DC1)
*> 11.1.1.0/24 11.1.1.64 0 0 200 ?
*>i15.1.1.0/24 10.1.1.250 0 100 655 200 ?
*> 20.1.1.0/24 11.1.1.64 0 0 200 ?
*>i100.1.1.0/24 10.1.1.250 0 100 655 200 ?
Route Distinguisher: 100:10
*>i15.1.1.0/24 10.1.1.68 0 100 0 200 ?
*>i100.1.1.0/24 10.1.1.68 0 100 0 200 ?
We can see that the nexthop 10.1.1.68 of the VPN route is changed to 10.1.1.250 after
applied with route-map