route command

I am a new CentOS Linux sysadmin. How can I add static route On CentOS Enterprise Linux server running on HP amd64 server?

{ 1 comment }

I‘ve two network interfaces. One connected to eth0 and another connected to eth1 as follows:

eth0 => private network with private IP in 10.x.x.x/8 range.
eth1 => ISP router with public IP via

How do I setup persistent static route so that traffic route via router only?


How do I disable the route / from CentOS or RHEL 6 Linux server?


I‘m typing the following command under Ubuntu Linux:

route add default gw eth0

But it is giving me out the following error:

SIOCADDRT: File exists

How do I fix this problem?

{ 1 comment }

When I try to ping other UNIX / Linux / BSD or MS-Windows servers in our network I get the following message:

TTL Expired In Transit

How do I fix this problem?

{ 1 comment }

I know how to setup static routing under Linux and FreeBSD operating systems. But, how do you setup static routing under OpenBSD operating systems?


My home Linux laptop is connected to ADSL router and whenever I run route -n command at the prompt it says is set to my routers IP What is the meaning of

{ 1 comment }