Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-16-2007, 05:05 PM   #1
LQ Newbie
Registered: Apr 2006
Distribution: centOS, Fedora Core
Posts: 6

Rep: Reputation: 0
How to add a multicast static route in centOS4.4


I would like to know how to add a static route to

I know how to do it manually via the route command.

route add -net netmask dev eth0
which give you the following route.

Destination Gateway Genmask Flags Metric Ref Use Iface * 0 0 0 eth 0

But i would like to add the route to route-eth0 so i don't need to apply it manually everytime the server reboots.

I've seen an example format for the file as via

But i don't know what the equivalent is for the following route
route add -net netmask dev eth0

What do i put after 'via' for the above multicast route.

eg. via ???

Old 05-16-2007, 09:39 PM   #2
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 74
I think you want to use /etc/sysconfig/static-routes instead. You would use syntax like this (I think):
eth0 net netmask
You also might want to consider using /etc/net.
0 members found this post helpful.
Old 08-05-2011, 04:09 PM   #3
Registered: Jun 2008
Posts: 71

Rep: Reputation: 17
For these having similar question:
Code: dev eth0


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
permanently add static route glock19 Linux - Networking 27 07-27-2015 05:59 PM
static route dvong3 Linux - Networking 1 01-25-2006 05:42 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
add a static route in Network init files Ghitza Linux - Networking 1 11-19-2004 06:26 AM
static route cox Linux - Networking 3 09-30-2003 03:22 PM

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration