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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What I want to do is to make so that all computers can access internet
and also can connect(ping) each other...
Gateway can ping Comp2 while eth1 there's no routes on eth0, but when
I enable eth0 connection with something like
route add -net 10.0.0.0 netmask 255.0.0.0 eth0
I can no longer ping comp on eth1
All comps have different IP's and all user proper netmasks.
Cna you plz help me?
A hub would be good for you situation
ppp
||
|| <ip forwarding would be used here>
eth0
|
hub
/ \
| |
cptr1 cptr2
I'm sure you could get your computers to all talk w/ your set up but this is much more managable and expandable. And a hub isn't that expensive... $25? $30? I forget.
note: That didn't turn out exactly as I'd hoped, but the bottom two lines point to PC1 and PC2. Every thing else looks about right....
Last edited by benjithegreat98; 12-31-2003 at 08:29 PM.
My diagram didn't look how it supposed to be... :/
I have a gateway with two comps connected to it's eth0 and eth1
the problem that I have is that when they both are enabled only eth0
works
Computer1 and computer2 should have different static IPs.
The gateway IP for computer1 should be the IP of eth0 and
the gateway IP for computer2 should be the IP of eth1.
You will need to set up IP Forwarding and Masquerading. Take a look at the link in my previous post.
All of them use static IP's and gateways on Comp1 and Comp2 are ok.
Main comp has same IP's of eth1 and eth0, is it ok?
Here is a bit from my console. When only eth1 route is set up I can ping
10.0.0.6, but when I setup the route for eth0 it stops working...
[root@main root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.0.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
[root@main root]# ping 10.0.0.6
PING 10.0.0.6 (10.0.0.6) 56(84) bytes of data.
64 bytes from 10.0.0.6: icmp_seq=1 ttl=64 time=0.694 ms
64 bytes from 10.0.0.6: icmp_seq=2 ttl=64 time=0.361 ms
64 bytes from 10.0.0.6: icmp_seq=3 ttl=64 time=0.357 ms
--- 10.0.0.6 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.357/0.470/0.694/0.159 ms
[root@main root]# route add -net 10.0.0.0 netmask 255.0.0.0 eth0
[root@main root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
10.0.0.0 * 255.0.0.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
[root@main root]# ping 10.0.0.6
PING 10.0.0.6 (10.0.0.6) 56(84) bytes of data.
From 10.0.0.4 icmp_seq=1 Destination Host Unreachable
From 10.0.0.4 icmp_seq=2 Destination Host Unreachable
From 10.0.0.4 icmp_seq=3 Destination Host Unreachable
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.