Networking Forums

Networking Forums > Computer Networking > Linux Networking > Four Port NIC

Reply
Thread Tools Display Modes

Four Port NIC

 
 
msaikiran@gmail.com
Guest
Posts: n/a

 
      06-11-2007, 08:14 PM
Hello,

I have a four port NIC in Linux box and I wish to forward traffic from
one port to another on the same machine. I believe this can be done
with IP-Tables, but can does this be done in software ( a kernel
module may be ?). I am new to this stuff and looking for pointers.

Thanks,
Kiran.

 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      06-12-2007, 02:42 AM
On Jun 11, 1:14 pm, msaiki...@gmail.com wrote:

> I have a four port NIC in Linux box and I wish to forward traffic from
> one port to another on the same machine. I believe this can be done
> with IP-Tables, but can does this be done in software ( a kernel
> module may be ?). I am new to this stuff and looking for pointers.


Your question is vague to the point of meaningless. Google for 'linux'
along with what you are actually trying to do, which could be routing,
bridging, proxying or something stranger.

DS

 
Reply With Quote
 
B.Eckstein
Guest
Posts: n/a

 
      06-12-2007, 05:02 PM
(E-Mail Removed) schrub im Jahre 11.06.2007 22:14:
> Hello,
>
> I have a four port NIC in Linux box and I wish to forward traffic from
> one port to another on the same machine. I believe this can be done
> with IP-Tables, but can does this be done in software ( a kernel
> module may be ?). I am new to this stuff and looking for pointers.


The following will bridge interface eth1 with eth2 with the ability to
monitor the traffic on virtual interface br0.

ifconfig eth1 -arp promisc 0.0.0.0 up
ifconfig eth2 -arp promisc 0.0.0.0 up
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 eth2
ifconfig br0 -arp promisc 0.0.0.0 up

Choose your interfaces accordingly
 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      06-12-2007, 08:01 PM
On Mon, 11 Jun 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <(E-Mail Removed) .com>,
(E-Mail Removed) wrote:

>I have a four port NIC in Linux box and I wish to forward traffic from
>one port to another on the same machine.


A little ambiguous here - are you referring to different ports on the
NIC, as in eth0 verses eth1, or are you referring to port numbers as
defined in /etc/services? For forwarding traffic from one Ethernet
port to another, you need only have the appropriate routing tables
on the source and destination hosts (so that they know to send the
packets _via_ this Linux box), and the Linux box has to be told to
forward traffic (how this is configured depends on the distribution
which you haven't identified - though google.groups suggests this
might be Fedora FC6, in which case set "FORWARD_IPV4" to "true" in
the file /etc/sysconfig/network). If this is a service port change
(where packets directed to port 345/tcp get forwarded to the server
which is hiding on port 789/tcp), then you'll want to read the several
HOWTOs at http://www.netfilter.org/documentation/HOWTO/, specifically

[TXT] NAT-HOWTO.txt 24-Dec-2006 16:06 25K
[TXT] netfilter-extensions-HOWTO.txt 24-Dec-2006 16:06 79K
[TXT] netfilter-hacking-HOWTO.txt 24-Dec-2006 16:06 84K

>I believe this can be done with IP-Tables, but can does this be done
>in software ( a kernel module may be ?).


It's ALL done in software - the hardware just sets there getting warm.

>I am new to this stuff and looking for pointers.


You may find it useful to review the FAQ that is posted to the Usenet
newsgroups 'comp.os.linux.misc' and 'comp.os.linux.setup' (among others)
twice a week. The subject is "A new reader? Welcome to $NEWSGROUP, read
this first if you're new here (FAQ)". You will also find an enormous
amount of help in the various HOWTOs that should be installed on your
system (look in /usr/share/HOWTO/ - if it's not there, try at
http://en.tldp.org/HOWTO/HOWTO-INDEX/howtos.html) and the twenty plus
books available on line at http://tldp.org/guides.html

Old guy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source port of 1079 (asprovatalk) to destination port 1025 (blackjack) - required for Microsoft Windows networking? Spin Windows Networking 1 10-07-2008 08:09 PM
How many NIC for a event photography viewing system, advantages ofQuad Port (4-port) NICs sam Windows Networking 1 03-17-2008 12:51 PM
Socket connection to port fails despite port open / listening ! Jack Linux Networking 2 12-19-2007 03:46 PM
open ports on the router port 1900udp and port 5643 tcp James Broadband Hardware 0 02-20-2005 08:07 AM
What is the difference between a multi-port ASDL modem/router and one with a 4 port hub? Tim Lyons Broadband 4 02-27-2004 06:07 AM



1 2 3 4 5 6 7 8 9 10 11