how i add route

General support questions
User avatar
Forum Moderator
Posts: 30174
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: how i add route

Post by TrevorH » 2020/09/12 16:17:30

Find the correct ip route add .... command you need to run to add the route you want then add all of that to /etc/sysconfig/network-scripts/route-$interface but omit the ip route add part of it. So if you need to run ip route add via then add via to your route file.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”