LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-15-2012, 02:30 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
two network cards and multicast


I have two network cards, eth0 and eth1.
please tell me how to configure it so that PC receives UDP from 224.0.0.1 on eth0 and sends UDP on 224.0.0.2 to eth1.
eth0 should not forward 224.0.0.2

thanks.
 
Old 05-15-2012, 02:40 AM   #2
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
This should do the job - provided that eth0 is your primary interface and a default route already exists in the main table.

ip route add default dev eth1 table 4
ip rule to 224.0.0.2 table 4

See http://linux-ip.net/gl/ip-cref/
 
1 members found this post helpful.
  


Reply



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
[SOLVED] problem: Wind River Linux is not detecting the network cards (network interfaces) NM04 Linux - Newbie 17 12-06-2013 08:06 AM
IPv6 multicast listener on a Linux box acting as multicast router maxtux Linux - Networking 0 04-01-2012 09:52 AM
Multicast with more than one network interface eantoranz Linux - Networking 1 07-30-2010 02:19 PM
network load balancing & multicast mac-address isac.gnuton Linux - Networking 0 01-24-2007 04:11 AM
Multicast network hawkgreatelf Linux - Networking 0 04-25-2003 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration