To add a custom route in Citrix XenServer 6.1 or higher, execute the following commands:
network interface must exist prior running these commands. Refer to XenServer configuration guide to create and configure network interface(s).
find network UUID:
xe network-list xe network-param-set uuid= other-config:static-routes=10.0.0.0/24/10.1.2.2
(in our case we have our XenServer with xenbr1 interface configured with IP 10.1.2.3 and we need it to access network 10.0.0.0/24 via custom route 10.1.2.2)
run “route -n” to confirm our custom route is in the list
reboot XenServer to confirm the static route is persistent after reboot (run “route -n” again and confirm the route you added above still there).
Enjoy
Adding custom network route in Citrix Xenserver 6.1+
Applicable products:
Citrix Xenserver 6.1
Citrix Xenserver 6.2
Citrix Xenserver 6.2SP2
Citrix Xenserver 6.5
Citrix Xenserver 6.5SP2
Citrix Xenserver 7