https://devconnected.com/how-to-add-route-on-linux/#Using_etcnetworkinterfaces
Centos | |
---|---|
create a "route" file: |
|
[root@centos7 network-scripts]# systemctl restart network.service | |
| |
Ubuntu | |
/etc/network/interfaces | |
root@boxed:~# ip r default via 192.168.0.1 dev wlan0 172.32.0.0/16 via 192.168.116.1 dev eth0 192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.146 . . . | |
to be ch3eck first | up route add -net 172.32.0.0 netmask 255.255.0.0 gw 192.168.116.1 |