Layer7 API Management

 View Only

 API Gateway V11 Appliance; added ip routes entries disappeared after reboot

Sebastian van Voorn's profile image
Sebastian van Voorn posted Mar 14, 2024 09:01 AM

Because of our internal network  configuration we have to add several ip routing entries.
We use the new ssgadmin account to add these entries.
The commands we use are:


sudo ip route add x.y1.0.0/16 via x.y.z.254 dev ssg_eth0
sudo ip route add x.y2.z1.0/24 via x.y.z.254 dev ssg_eth0
sudo ip route add x.y3.z2.0/24 via x.y.z.254 dev ssg_eth0


After the reboot all extra entries are gone.
The only route that stays is the subnet of ssg_eth0.  (the clue?).

Best regards,
Sebastian

Joseph Fry's profile image
Broadcom Employee Joseph Fry
Sebastian,
The IP route commands do not add a persistent route.  They are great for testing, but you must edit the /etc/network/interfaces file if you want them to persist past a reboot.
Google "Debian persistent route" for more information.  Here is a good example: https://www.mybluelinux.com/debian-permanent-static-routes/
That said, on the gateway appliances I believe the supported way to add routes is via policy manager.
herman wilken's profile image
herman wilken

@Joseph Fry, Unfrotunately both options for a persistent route in the provided article did not work.

Joseph Fry's profile image
Broadcom Employee Joseph Fry

My apologies, I have limited experience with the v11 appliance gateways.  I will make a point to deploy one and explore it a bit deeper.

Per this page, you should use NetworkManager commands to configure static routes: Using SSGADMIN

There is additional information in this KB article.

NetworkManager and the 'nmcli' command are fairly well documented on the internet (eg this and this), but if you cannot figure it out, feel free to post additional questions.  If you aren't looking to automate/script things you might want to try 'nmtui' for a menu driven approach.

Joseph Fry's profile image
Broadcom Employee Joseph Fry

@Sebastian van Voorn,

Make sure that you have removed any changes you made to the /etc/network/interfaces and deleted any files you created under /etc/network/interfaces.d/.  Here is the default /etc/network/interfaces file so you can revert your changes.

NetworkManager will not manage any interface that has configuration in those files.

Ioulia Kazakova's profile image
Broadcom Employee Ioulia Kazakova

Hi Sebastian,


We've discussed your question internally. Please have a look at another KB article: multiple default gateway listed for multi-homed CA API Gateway 11 box need help configuring networking

Issue described in the article sounds similar to the problem that you have.