Solved

Gateway assignment?

Posted on 1998-11-16
5
243 Views
Last Modified: 2010-03-18
Hi
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

Mauricetokyo
0
Comment
Question by:mauricetokyo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

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

0
 

Expert Comment

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

0
 

Author Comment

by:mauricetokyo
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

Mauricetokyo
0
 
LVL 2

Expert Comment

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

Author Comment

by:mauricetokyo
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...

Mauricetokyo
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

763 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