This adds the route immediately to the Kernel IP routing table (after reboot it will be erased).
# route add -net 172.31.0.0 netmask 255.255.0.0 gw 192.168.1.1
to print the Kernel IP Routing table:
# netstat -rn
To keep the Static Route persistent you need to edit the file: /etc/network/interfaces
and the static routes in the following format:
up route add [-net/-host] <host/net>/<mask> gw <host/ip> dev <interface>
up route add -net 172.31.0.0/16 gw 192.168.1.1 dev eno1
Learning how to design scalable systems will help you become a better engineer.
System design is a broad topic. There is a vast amount of resources scattered throughout the web on system design principles. Here they are all together.
Regular IP address that gives to docker0 interface is 172.17.0.0/16. To change it you should edit daemon.json file.
Continue reading Changing docker0 ip address in Docker for Mac env
Gitalb migration (v.8.2.4) from a source installation MySQL to omnibus PostgreSQL and update to the last version.
Could be used to all versions above 8.0.0.
Continue reading Gitalb migration and update
Connect to DB shell
sudo -i -u postgres
Launch interactive session
psql -h server_name -U user_name -d db_name
Continue reading PostgreSQL useful commands