LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2008, 02:13 AM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
How to turn my ethernet card into a router?


I have a computer(A) running bt3 that has two ethernet cards, X and Y. I have an ethernet card(X) that connects to a router(G), which is my gateway to the internet. I have another ethernet card(Y) that runs a crossover ethernet cable to another router(H), which in turn has a regular ethernet cable to another computer(B).

How do I turn my ethernet card(Y) into a router, where it just forwards everything, so that computer (B) can access the internet?

Do I need to use pointtopoint option from ifconfig?

Should I have used regular ethernet cable from ethernet card (Y) to router(H)?

Last edited by trist007; 12-17-2008 at 02:22 AM.
 
Old 12-17-2008, 02:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
your system will route if you run "echo 1 > /proc/sys/net/ipv4/ip_forwarding" but that won't really get your job done as you;ll have different subnets needing to added to routing tables all over the place. from here you'd either use IP Masquerading to hide to real address of the computer on B or *bridge* the cards instead of routing them, which is what i'd suggest. (actually i'd suggest just buying a $10 switch and not doing this at all) but if you do want to bridge, you'd want to check out the first half of http://tldp.org/HOWTO/BRIDGE-STP-HOWTO/index.html
 
  


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
LXer: Open source's Fast Ethernet router outperformed Cisco's Router LXer Syndicated Linux News 0 04-13-2007 02:31 PM
CNET PRO200 ethernet card is recognized but can't ping my router jdc Linux - Hardware 0 08-30-2005 11:31 PM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 01:33 AM
how do i set up my ethernet card w/o dhcp if i have a router jooper317 Linux - Hardware 3 01-08-2004 12:51 AM
Ethernet card problems on Linux router yumso Linux - Networking 1 04-17-2001 06:09 PM


All times are GMT -5. The time now is 11:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration