Jump to content

Routing problems


johanl
 Share

Recommended Posts

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 by johanl
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by johanl
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...