hello there , as the title says. i need some help to add a static route on centos 6.5 Minimal.. !
so, i add this commands on Centos 6.5 Minimal but when i restart centos the network not works again .. so can someone tell me how to add this routes to static routes !
Routes
how i can add this as static ? thnx in advance !.
[SOLVED] Adding Static Route on CentOS 6.5 Minimal
Re: Adding Static Route on CentOS 6.5 Minimal
Create a file /etc/sysconfig/network-scripts/route-eth0 and add your `ip route add` command to it but without the "ip route add" on the front. You'll need to work out the syntax for your `route add` command to use `ip route add`...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Adding Static Route on CentOS 6.5 Minimal
when i add route-eth0 i get this route -n staticTrevorH wrote:Create a file /etc/sysconfig/network-scripts/route-eth0 and add your `ip route add` command to it but without the "ip route add" on the front. You'll need to work out the syntax for your `route add` command to use `ip route add`...
default gateway is not added... ! , how i can add UG flag? .
how to permanent add " route add default gw 188.165.229.254 " ?
Re: Adding Static Route on CentOS 6.5 Minimal
What does your route-eth0 file contain?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Adding Static Route on CentOS 6.5 Minimal
You should really keep your problem to a single thread.
[edit/avij: good point, topics merged]
[edit2/avij: these might actually be different problems (well, different servers at least), split the topics again ..]
[edit/avij: good point, topics merged]
[edit2/avij: these might actually be different problems (well, different servers at least), split the topics again ..]
Re: Adding Static Route on CentOS 6.5 Minimal
Your route-eth0 file is incorrect. According to the link you posted earlier, the file should contain:
ASSUMING your IP address for this server is 188.165.229.xxx. If not, adjust accordingly.
Code: Select all
188.165.229.254 dev eth0
default via 188.165.229.254 dev eth0
Re: Adding Static Route on CentOS 6.5 Minimal
thnx you ! , you can close this thread !.