LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-16-2006, 12:16 AM   #1
prasadlinuxguy
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Rep: Reputation: 0
problem with two lan cards


i use RedHat EL4 on my system.i have two lancards on my system one to connect to internet and the other to another system in my home.both lan cards are of the same kind.

first i thought that the internet connection was not working but when i switched the line to the other card the connection resumed.but this time pinging between the systems did'nt work.after sometime the internet stopped,i switched the line again to the other card and it resumed.but pinging the lines never seems to work.

the subnet mask given by isp was 255.255.255.0 and the ipaddress was 192.168.1.2 . so i configured card on my system as 192.168.1.24 and the card on other system as 192.6.1.34.the connection is dsl with speed 64kbps and the vendor says that he does'nt use any ppp0e or protocals of
the like.

please help me solve the problem.
 
Old 05-16-2006, 02:13 AM   #2
gundam00
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Rep: Reputation: 0
First of all you should verify if your Linux permits routing over the interfaces:
the file /proc/sys/net/ipv4/ip_forward should contains the value 1.

Just to be sure try with:
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
Then you have to make NAT between your home net net and the isp net, if you have set up a firewall you have to enable forwarding from your network and then you have to enable NAT:
Code:
iptables -P FORWARD ACCEPT
iptables -F FORWARD
iptables -I POSTROUTING -t nat -s <YOUR HOME NET> -j MASQUERADING
Assuming that your network configurations are ok, if ip_forward and NAT are set up you should be able to ping over your linux box.
 
Old 05-16-2006, 02:23 AM   #3
wraithe
Member
 
Registered: Feb 2006
Location: Australia
Distribution: Linux... :-)
Posts: 241
Blog Entries: 1

Rep: Reputation: 50
hey can i ask a dumb question here?
well i will any way...
what is the irq of the two cards...
i have seen this before and most times its the first thing to check...
when you use two cards the same they both try to use the same irq and if you boot with one card first and run the install then add the other it can cure it ....
let me know if that dont work, but i'm sure that is the best place to start with...
dont feel silly as i have seen some so called great eggspurts not check that one ok....
 
  


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
LTSP using Wireless LAN cards coolpal Linux - Software 2 12-15-2005 02:03 AM
how to configure two lan cards on one machine b0nd Linux - Networking 4 10-06-2005 09:55 AM
machine has adsl ethernet modem, to make it gateway over lan do i need more lan cards b0nd Linux - Networking 2 10-04-2005 10:19 PM
Directing Traffic on 2 LAN Cards Xing Linux - Networking 2 08-17-2005 02:59 AM
Multiple LAN Cards cerealdaemon Linux - Networking 6 05-26-2005 10:09 AM

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

All times are GMT -5. The time now is 10:41 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
Open Source Consulting | Domain Registration