LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


Hi,

I would like to know how to add a static route to
/etc/sysconfig/network-scripts/route-eth0?

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

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

Destination Gateway Genmask Flags Metric Ref Use Iface
224.0.0.0 * 240.0.0.0 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

192.168.0.0/24 via 152.3.182.5

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

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

eg.
224.0.0.0/4 via ???


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

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

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


Reply


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 26 04-08-2013 04:07 AM
static route dvong3 Linux - Networking 1 01-25-2006 04: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 04:34 AM
add a static route in Network init files Ghitza Linux - Networking 1 11-19-2004 05:26 AM
static route cox Linux - Networking 3 09-30-2003 02:22 PM


All times are GMT -5. The time now is 07:06 AM.

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