Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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...
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.