[Webinar] Streamline your web hosting managementRegister Today


Need Help with a route statement

Posted on 2008-02-06
Medium Priority
Last Modified: 2010-05-18
I know enough sysadmin stuff to get by (small business owner)
I am having a problem with some linux boxes that have two nics. 1 public nic and 1 internal (192.168 )
What i need to do is

from another forum i was told this
"the broadcast happens on the address. however, if you're boxes have multiple nics, the system will pick one to send out the info. you should be able to add an entry to your routing table to force it to send the broadcasts over the nic you designate." is a UDP mcastAddr

Can someone help me with the route statement.

do you need more info?


Question by:paries
  • 2
  • 2
LVL 12

Accepted Solution

tgtran earned 2000 total points
ID: 20837934
The command to add a route is:
route add -host dev eth0

Just replace eth0 with the interface you want to route to.  If you want to make it permanent, you need to add it into /etc/sysconfig/static-routes (for RH)

Author Comment

ID: 20854058

so i am trying to add this to my /etc/sysconfig/static-routes but i am little confused with the syntax

from a doc page:::
Configures static routes on a network. Used to set up static routing. An example file:
eth1 net netmask gw
eth0 net netmask gw
eth1 net netmask
The syntax is:
device net network netmask netmask gw gateway

so my route statement was
route add -host dev eth1

would i do
eth1 dev ???

LVL 12

Expert Comment

ID: 20854171
eth1 net netmask gw <ip of eth1>

Author Comment

ID: 20854186

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This installment of Make It Better gives Media Temple customers the latest news, plugins, and tutorials to make their Grid shared hosting experience that much smoother.
Virtualization software lets you run different versions of Windows, Ubuntu Linux and other versions of Linux all at the same time, rather than running each one directly from your computer's hard drive.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question