how i add route

General support questions
User avatar
TrevorH
Forum Moderator
Posts: 29493
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 10.183.248.0/24 via 10.181.20.65 then add 10.183.248.0/24 via 10.181.20.65 to your route file.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
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”