I have multiple NICs and I want to set the default gateway permanently. After boot I have to access the console and add the default route as follows:
>ip route
default via #.#.#.64 dev eno12399np0 proto static metric 100
default via #.#.#.225 dev eno8303 proto static metric 101
#.#.#.224/27 dev eno8303 proto kernel scope link src #.#.#.229 metric 101
#.#.#.64/27 dev eno12399np0 proto kernel scope link src #.#.#.67 metric 100
>route add default gw #.#.#.225
>ip route
default via #.#.#.225 dev eno8303
default via #.#.#.64 dev eno12399np0 proto static metric 100
default via #.#.#.225 dev eno8303 proto static metric 101
#.#.#.224/27 dev eno8303 proto kernel scope link src #.#.#.229 metric 101
#.#.#.64/27 dev eno12399np0 proto kernel scope link src #.#.#.67 metric 100
At this point the network can resolve from 8.8.8.8 I can access remotely etc.. However when I reboot the machine the default gateway route is gone. I have tried adding the gateway using nmcli but that seems to be reconfiguring the nic to its current/default configuration. Is there a best practice for setting the default gateway for multiple NICs on the new Stream OS?