Gateway assignment?

Posted on 1998-11-16
Last Modified: 2010-03-18
I have a Linux server doing the routing to the ISP and the masquerading just fine. My WinNT boxes have no problem using the Linux server as the gatway to the Internet.

Now, I have a Linux laptop connected to the Ethernet and I want to tell it to use the other Linux server as the gatway to the Internet. Do I configure routed for that? How to best achieve that?

Many thanks

Question by:mauricetokyo
  • 2
  • 2

Accepted Solution

harrys earned 100 total points
ID: 1587661
Ff you linux router is a static route should do it.
eg <route add default> on the laptop, theres no need for dynamic routing here, or do I miss the point?


Expert Comment

ID: 1587662
harrys is right. all you need is to set a default route to your linux router.


Author Comment

ID: 1587663
Thanks, but I know that. Maybe I should have written my question differently. Of course, if I add static route then I see the internet fine. But when I am on the road and dial out using my PCMCIA modem it will try to find the network but it is not connected and I have to take eth0 down with ifconfig.

Can I automate all these with gated?

That is the real quesiton, but since I was too stupid to ask it right in the first time, I still award you the points.

Best regards


Expert Comment

ID: 1587664
Don't you use some kind of script to dial your isp? That might be the place to remove the default route.

Author Comment

ID: 1587665
The problem is that xdm hangs during login if it is not connected to the ethernet, for some mysterious reason.

I am forced to boot linux, ctrl-alt/F2 to do a mingetty login, comment the route adds in rc.local, shutdown now -r and then dial into my isp with pppd.

This clearly is not nice.

Any ideas? I am increasing the points...


Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now