The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
removing static route pchangba1 AIX 1 04-24-2009 01:52 AM
permanently add static route beaker457 Red Hat 1 04-17-2009 02:16 PM
Static Route Arun.Kakarla UNIX for Dummies Questions & Answers 2 07-17-2008 08:07 AM
Static route for hpux 11.22 catwomen HP-UX 2 10-10-2006 08:55 AM
static route ? chaandana IP Networking 3 07-05-2005 02:05 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-26-2009
DrivesMeCrazy DrivesMeCrazy is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 14
When to use static route on server?

Hi guys,

sorry for asking noob question.

When do we really need to add a static route on the server?
I encounter this situation whereby a client trigger a network packet to the destination but the destination does not know how to return the traffic back to the client (source).
The issue was resolved after adding a static route at the destination server.

Ain't it suppose to be the gateway job to redirect traffic to other subnet gateways?


Thanks in advance.
  #2 (permalink)  
Old 06-29-2009
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
Hello, I hope it's not too late. I thought I was going to go deeply into the network layers, and so on, but as always, wikipedia has better words than me and my poor English. Please read this short article and let us know if this is insufficient.
  #3 (permalink)  
Old 07-02-2009
DrivesMeCrazy DrivesMeCrazy is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 14
Quote:
Originally Posted by sysgate View Post
Hello, I hope it's not too late. I thought I was going to go deeply into the network layers, and so on, but as always, wikipedia has better words than me and my poor English. Please read this short article and let us know if this is insufficient.
Hi sysgate,

thanks for the link.

However, it only mentioned to do it on the route.
What about my case which happened to be a server?

Thanks in advance.
  #4 (permalink)  
Old 07-03-2009
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
I thought the original question is a general one, namely : "When do we really need to add a static route on the server?" - hence the wikipedia article. If in your case you have packet loss between client and server software, you should rather debug at network level with tcpdump or other packet traffic / sniffing instrument. If that's not the case, please describe the situation more clearly.
  #5 (permalink)  
Old 07-08-2009
gratuitous_arp gratuitous_arp is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 7
Quote:
When do we really need to add a static route on the server?
Your server needs to have a valid route back to a client whenever you want communication to occur between the two devices.

Your servers and hosts have routing tables which tell them where to send packets that *they* create, just like gateway devices use routing tables to forward other devices' traffic (and also for traffic the gateways create themselves). A gateway could forward a packet just fine, but if your server does not have a valid route, your server will never send the packet to the gateway in the first place. Type "ip route" at the command line to see the kernel IP routing table.

The most common static route you'll have on a server or a client is the default route. A default route tells a host to send all packets that do not match any other routes to a particular destination. This saves you from setting static routes to every host or network you want your server to be able to reply to; it covers everything in one route table entry. To set a default route, you can use the command:

ip route add default dev <interface> via <next hop IP address>
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0