Internet Sharing & nic bridge?
:Pengy:
Ilustration: Internet || || eth0 Linux RH 8.0 (with 3 nic) || \\ || eth2 (192.168.0.2) <=> Win 2k (192.168.0.10) || eth1(192.168.0.3) <=> Win 2k (192.168.0.70) Internet sharing and everything else works on eth1 & eth2 (this is done with a iptable script) Now I Want the 2 win2k to be connected like if the linux pc hade been a switch (or hub). I can see each win2k computer in the others network workgroup but i cant connect. I cant ping either (192.168.0.10 to 192.168.70, vice versa). [Old problem was that I couldnt ping (etc.) 192.168.0.70 from linux.] |
How does the 'route' result from the Linux machine look like? I guess you need to use a command similar to 'route add -host target interface', but I'd like to be sure.
|
It is a routing problem - all 192 trafic will be being sent out of eth1. The "route" command will let you see the routing table. You can then use "route add -host 192.168.0.10 dev eth1".
Note: this will be lost on reboot - you may want to put it in a startup script. |
Yes it helped alot... thanks guys.. (or girls)
|
hmm i still cant ping from one win2k to the other...
i can see them in the workgroup but i cant connect |
You probably don't have IP forwarding enabled - try:
echo "1" > /proc/sys/net/ipv4/ip_forward |
nope didnt help...
I have done that already! but thanks for reply! |
Quote:
|
No... because this morning I reinstalled rh 8
and now I cant get the nic's to work... I use 3 nic's eth0 = realtech 8139 eth1 = realtech 8139 eth2 = 3com 905b I think It has to do with the fact that there are 2 identical nic's (using 8139too.o) Please tell me if i should post more info! |
Now i got it working again..
not the connection between w2k <-> w2k but internetsharing works fine when I ping it just say "...Timeoute" |
Tihs is my firewall script.. should i enter something to allow everything betveen eth1 & eth2 (lan)
Code:
echo -e "\n\nLoading simple rc.firewall...\n" I am a Noob so if u see something in there u feel I should change, dont hesitate. Post! I would also want to know what im doing wrong, not geting the forwarding of port 80 to my http server (192.168.0.10) (about line 20 from the bottom in the script) Code:
Here are my route table: |
The route:
Code:
192.168.0.10 * 255.255.255.255 UH 0 0 0 eth2 and im not quite sure what these are doing Code:
192.168.0.70 * 255.255.255.255 UH 0 0 0 eth1 |
ohh... sorry forgot to change the info in the first post...
I have changed the configuration a bit... now i have edited the first post so that it should be up2date to |
In that case use eth0
In the routing table you are saying to access 192.168.0.10 use eth2 but 192.168.0.10 is attached to eth0. You will need to do this for both green NICs. |
no... *check the first post*
internet is connected to eth0 192.168.0.70 is connected to eth1 192.168.0.10 is connected to eth2 evrything works exept for portforwarding and connectivety 192.168.0.10 <==> 192.168.0.70 Code:
Kernel IP routing table |
All times are GMT -5. The time now is 05:10 PM. |