In RHEL
add new route
ip route add 10.2.0.0/16 via 172.27.25.1
delete existing route
route del -net 10.2.38.0 gw 172.27.25.1 netmask 255.255.255.0 dev eth1
display route:
route
To ensure it is ok after reboot :
modify /etc/sysconfig/network-scripts/route-eth1
then
nmcli con reload && nmcli networking off && nmcli networking on
Aucun commentaire:
Enregistrer un commentaire