Support for Hardware vRouter Migration
In earlier versions of Netvisor OS, you could not migrate a hardware vRouter from one switch to another switch, and you had to reconfigure the hardware vRouter on the new switch.
You can migrate the hardware vRouter using the vrouter-migrate command. For example, to migrate the hardware vRouter, hw-vrouter1 to a new location, Spine3,and storage pool, disk3, use the following syntax:
vrouter-migrate name hw-vrouter1 location Spine3 storage-pool disk3
Border Gateway Protocol (BGP) is a path-vector protocol and is the most commonly used routing protocol on the Internet. It advertises the paths required to reach a certain destination. BGP is also a protocol that sits on top of TCP, and is simpler than Open Shortest Path First (OSPF). In Figure 1 Configuring BGP for Two VLANs, you want network traffic from the source host to reach the destination host. But when different VLANs are configured, the source host traffic is not aware of the route between the source host and the destination host. However, there is a VLAN that spans VLAN 33 and VLAN 55. You solve this problem by configuring BGP in the same Autonomous System (AS) 100 that sends traffic over VLAN 35. This allows the source host to learn the route to the destination host.
Using a loopback address for peering is useful when there are multiple paths between the BGP peers which would otherwise tear down the BGP session if the physical interface used for establishing the session goes down. It also allows the vRouters running BGP with multiple links between them to load balance over the available paths.
This example assumes that you have two VLANs, VLAN33 and VLAN55. Also, that you have added ports to the configuration.
Begin by configuring vRouter1, a software vRouter, on VLAN 33 with the BGP information:
CLI network-admin@Leaf1 > vrouter-create name vrouter1 fabricname-global router-type hardware bgp-as 100 bgp-redist-connected-metric none
Additional BGP parameters include the following:
bgp-redist-static-metric — redistribute static BGP route metric number
bgp-redist-connected-metric — redistribute connected BGP route metric
bgp-redist-rip-metric — redistribute BGP into RIP process metric
bgp-redist-ospf-metric — redistribute BGP into OSPF process metric
bgp-cluster-id — the ID assigned to the BGP cluster.
bgp-max-paths — maximum number of BGP paths
bgp-ibgp-multipath — allow the BGP vRouter to select multiple paths for load sharing.
bgp-bestpath-as-path — allow BGP to use the best path for traffic forwarding.
bgp-dampening|no-bgp-dampening — suppress flapping routes so they are not advertised.
bgp-graceful-restart|no-bgp-graceful-restart — mechanism for BGP that helps minimize the negative effects on routing caused by BGP restart.
bgp-stalepath-time — how long a router waits before deleting stale routes after an end of record (EOR) message is received from the restarting router.
Add the IP addresses and VLANs:
CLI network-admin@Leaf1 > vrouter-interface-add vrouter-name vrouter1 ip 10.16.33.1/24 vlan 33
Add the BGP information:
CLI network-admin@Leaf1 > vrouter-bgp-add vrouter-name vrouter1 neighbor 10.16.35.55 remote-as 100
CLI network-admin@Leaf1 > vrouter-bgp-add vrouter-name vrouter1 network 10.16.33.0/24
Display the interface information for vrouter1:
CLI network-admin@Leaf1 > vrouter-interface-show format all layout vertical
If you want to filter IP hosts, you can add prefix lists to the BGP configuration. See Configuring Prefix Lists for BGP and OSPF.
Then, configure vRouter2 on VLAN 55:
CLI network-admin@Leaf1 > vrouter-create name vrouter2 fabricname-global router-type hardware bgp-as 100 bgp-redist-connected-metric none
Add the IP addresses and VLANs:
CLI network-admin@Leaf1 > vrouter-interface-add vrouter-name vrouter2 ip 10.16.35.55/24 vlan 35
CLI network-admin@Leaf1 > vrouter-interface-add vrouter-name vrouter2 ip 10.16.55.1/24 vlan 55
Then add the BGP information:
CLI network-admin@Leaf1 > vrouter-bgp-add vrouter-name vrouter2 neighbor 10.16.35.33 remote-as 100
CLI network-admin@Leaf1 > vrouter-bgp-add vrouter-name vrouter2 network 10.16.55.0/24
And finally, add the loopback address:
CLI network-admin@Leaf1 > vrouter-loopback-interface-add vrouter-name vrouter1 index 5 ip 18.104.22.168
The index value is a number that uniquely identifies the vRouter in the AS.
Display the vRouter BGP configuration:
CLI network-admin@Leaf1 > vrouter-bgp-show format all layout vertical
To reset BGP neighbors, use the vrouter-bgp-neighbor-reset command.
To display BGP neighbors, use the vrouter-bgp-neighbor-show command.