Improve company productivity with a Business Account.Sign Up


Gateway assignment?

Posted on 1998-11-16
Medium Priority
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 200 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
When you have multiple client accounts to manage, it often feels like there aren’t enough hours in the day. With too many applications to juggle, you can’t focus on your clients, much less your growing to-do list. But that doesn’t have to be the cas…

585 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