Closed ostracize closed 6 years ago
This works but a system restart is still required.
Maybe add:
nmcli networking off && nmcli networking on
These commands definitely work. Need to integrate this into the Vagrantfile and test
nmcli conn modify "enp0s3" ipv4.never-default yes
nmcli conn modify "System enp0s8" ipv4.gateway XXX.XXX.XXX.XXX <-- where XXX.XXX.XXX.XXX is the gateway IP
nmcli networking off
nmcli networking on
Key line: https://github.com/psadmin-io/ps-vagabond/blob/dd1327632d33552eed7d55c25624a1f36b5d6320/Vagrantfile#L123
I believe the following is the preferred method and will fix the issue, I need to do more testing to be sure: