How to save route in tenant router permanently
Hi, I have 2 tenants, each have a router, now I want to route tenant A traffic to tenant B, so I add static route in the tenant routers, then, everything work fine. The problem is the static route will be lost after restarting. How to save it permanently? Thanks
For example: 1. Add a route into a tenant router: ip netns exec qrouter-b65e4316-6dad-40af-b002-430b311aa239 ip route add 10.168.168.0/24 via 9.9.9.20
root@controller:/home/gavin# ip netns exec qrouter-b65e4316-6dad-40af-b002-430b311aa239 netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 9.9.9.253 0.0.0.0 UG 0 0 0 qg-ea383fb8-36
9.9.9.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-ea383fb8-36 **10.168.168.0
9.9.9.20 255.255.255.0 UG 0 0 0 qg-ea383fb8-36**
192.168.169.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-209078ed-73
- reboot box, the route disappear...