LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 02-09-2006, 04:57 AM   #1
madhavann
LQ Newbie
 
Registered: Jan 2006
Distribution: FEDORA CORE 3
Posts: 8

Rep: Reputation: 0
Problem with two ethernet cards


Hi friends,
I have two ethernet cards in a Linux BOX.The arrangement is like this.

College Network-->Eth0 --- Eth1----> My intranet


Explanation:
I have connected eth0 to college lan and it has class B IP address and the other is connected to a peer linux machine with a RJ45 cabling. eth1 has class C IP address

Problem:
The problem is that i can't get ping from a system in college lan to my dual card linux machine when it can ping to its peer.
Similarly when i reconfigure some way that i get pinged from a system in college lan, i can't get the ping from peer.
As i am newbie i can't figure where the problem is..
How to forward packets from my eth0 to eth1. How can this be done in code or Is there any other way...


please help me,
madhavan
 
Old 02-09-2006, 05:05 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: SuSe 9.2 & 10, Gentoo, knoppix, DSL
Posts: 769

Rep: Reputation: 101Reputation: 101
was this class C address assigned to you by the people who manage the college network or did you just make it up yourself?
 
Old 02-09-2006, 09:56 PM   #3
madhavann
LQ Newbie
 
Registered: Jan 2006
Distribution: FEDORA CORE 3
Posts: 8

Original Poster
Rep: Reputation: 0
class C address

the class C address was assigned by us with the guidance of the network administrator and another important thing we dont have class C address domain within our college.......
_________________________________________________
madhavan
 
Old 02-09-2006, 10:07 PM   #4
mmaki
Member
 
Registered: Nov 2005
Location: Thousand Oaks, CA
Distribution: Debian
Posts: 33

Rep: Reputation: 15
Sorry, this is not going to help you much. This can be done, but you really need to read about linux routing. Google for "linux routing" and that should get you started.

Try http://www.linuxrouter.org/
 
Old 02-10-2006, 11:48 AM   #5
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: SuSe 9.2 & 10, Gentoo, knoppix, DSL
Posts: 769

Rep: Reputation: 101Reputation: 101
more to the point you need to make sure that your college network has routes to the class C you assigned or it won't work anyway.
 
Old 02-10-2006, 01:29 PM   #6
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,022

Rep: Reputation: 45
Quote:
Originally Posted by baldy3105
more to the point you need to make sure that your college network has routes to the class C you assigned or it won't work anyway.
Or you could use NAT on your class C network and all data coming out will look like it's from your laptop's "public" interface (eth0 on the class B college LAN.)

Try http://tldp.org/HOWTO/IP-Masquerade-...-examples.html for information on this type of setup. It works just as well from private network to private network, just remember that in your case the school's private class B network is the "external" network.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with two realtek 8139 ethernet cards w3bbuilder Linux - Newbie 1 08-15-2003 03:46 PM
Problem with Red Hat 6.2 and two ethernet cards Reginald0 Linux - Networking 4 01-02-2003 09:50 AM
Problem with Red Hat 6.2 and two ethernet cards Reginald0 Linux - Distributions 1 12-30-2002 10:16 AM
Problem with Red Hat 6.2 and two ethernet cards Reginald0 Linux - General 1 12-30-2002 10:16 AM
Multiple ethernet cards, same driver - problem anand_h Linux - Networking 1 02-19-2002 03:01 AM


All times are GMT -5. The time now is 01:17 PM.

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