johanl Posted March 11, 2004 Report Share Posted March 11, 2004 (edited) First my setup: Mandrake 9.0 server with 2 NIC's: eth0 (10.0.1.155) -> internal network eth1 (192.168.1.155) -> external network, connected to my ADSL router (192.168.1.249) The gateway for my server is set to the ADSL router, and I can internet, FTP etc. from my server, no problem. The ADSL router makes the connection, not my server. The server is also a DHCP server on the internal network. When I start up my laptop, it gets an IP adres and some other things: IP: 10.0.1.157 Gateway: 10.0.1.155 (my linux server) DNS server: 10.0.1.155 (my linux server also runs as a dns server) Now from my laptop, when I type ping nu.nl in a dos-prompt, I can see the domain is resolved to an ip adress, so the DNS works, but I don't get any replies. Logically, I can not internet from my laptop. I can ping the server from my laptop, but visa versa does not work! The solution to this problem surely has to do with my server not being able to ping my laptop, although it does give out an IP adress to it...Any suggestions? Edited March 11, 2004 by johanl Quote Link to comment Share on other sites More sharing options...
Gowator Posted March 12, 2004 Report Share Posted March 12, 2004 This sounds like your default route is not being exported by the mandrake box. I dont remember much windows stuff ... perhaps somewone else will help on that but its something like route /print to say the routes .... and route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2 destination^ ^mask ^gateway metric^ ^ Interface^ If IF is not given, it tries to find the best interface for a given gateway. (according to my work machine :D ) However, since your using Mandrake 9.0 you can still use linuxconf :D In here you can choose the option export my default route (on the IF which is supplying the DHCP address to your windows laptop) (choose networking/interfaces) then when WinBlows gets the IP address it should also get the default route! Quote Link to comment Share on other sites More sharing options...
johanl Posted March 12, 2004 Author Report Share Posted March 12, 2004 I can try that, however, when I type ipconfig /all on my Windows laptop, it does has a gateway configured, 10.0.1.155 which should be correct as far as I know. The server then has to reroute to the other interface so I guess it goes wrong there... Quote Link to comment Share on other sites More sharing options...
Gowator Posted March 12, 2004 Report Share Posted March 12, 2004 Ah, OK thats good ...... then I guess its your routing on the MDK box. as root do a route you might have 2x default gw for instance ..... your probably REALLY REALLY CLOSE :D Quote Link to comment Share on other sites More sharing options...
johanl Posted March 12, 2004 Author Report Share Posted March 12, 2004 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.1.0 blizzard.ravenr 255.255.255.0 UG 0 0 0 eth0 10.0.1.0 * 255.255.255.0 U 0 0 0 eth0 192.168.1.0 192.168.1.155 255.255.255.0 UG 0 0 0 eth1 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.168.1.249 0.0.0.0 UG 0 0 0 eth1 This is what I get, does it look allright to you cause it kinda does look ok to me. Quote Link to comment Share on other sites More sharing options...
Gowator Posted March 12, 2004 Report Share Posted March 12, 2004 yep, however if the internal address of your machine is 10.0.1.155 it should be the ... bah sorry I need to see this on my own machine.... and its time for me to go home anyway !!!! Ill look later :D Quote Link to comment Share on other sites More sharing options...
johanl Posted March 12, 2004 Author Report Share Posted March 12, 2004 (edited) Ok now by exporting the default route, something seems to be fixed/going better now. Now I can ping my laptop from the server. I can surf if I use my proxy server (same linux server), only I still can't ping from a dos prompt so I don't have a direct connection to the internet. When I do a tracert fom my laptop to a website, it gets as far as my server (10.0.1.155), from there I think it should go to 192.168.1.249 which is the gateway for my server, and from there to the internet. Edited March 12, 2004 by johanl Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.