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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

569 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