Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-05-2006, 11:31 PM   #1
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
rc.inet1, routes, default gateways

This post is directed to Eric (Alien Bob) because I think you played a significant role in writing the 10.2 version of the rc.inet1 script.

A default gateway is established in the new script. This probably is a reasonable approach for people running dedicated servers and gateways. However, I run my simple two-box network as peer-to-peer. I also still am stuck connecting with dialup.

In my case, I dial out with either box and that box then becomes the LAN gateway for that session.

However, the KPPP dialer and the PPP daemon will not override any default gateways. This is incorrectly designed IMO, but that's life. To overcome this default gateway hurdle, I had to write my own script to disable all default gateways and then reestablish a simpler static route for the LAN. This way I maintain LAN communications, but do not establish a default gateway. Then when I dial out, KPPP and PPPD have no problems connecting and can establish the ppp0 device as the default route.

In my script I run route add -net netmask gw 192.168.1.xx, where xx is the static NIC address of the opposite box.

I'm guessing that although peer-to-peer LANs are far outnumbered by client-server LANs, peer-to-peer LANs still exist in small business offices. I'm also guessing that like me, that any one or more of those boxes can dial out. Thus, they would be in a similar bind as me.

In conclusion, possibly could future versions of Slack be designed such that the rc.inet1 script works for both types of LANs? I'm no networking guru, but possibly another option in the rc.inet.conf file might be used to distinguish whether peer-to-peer or client-server is being used and whether the primary internet connection is by modem. Then based upon those elements, revising rc.inet1 gateway functions to configure the gateway as either static or default.

Old 01-06-2006, 12:41 AM   #2
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Just my own two cents here, but wouldn't it be alot more efficient to designate one box as the modem sever and have it be the only one to dial out? That would save on lines, etc for each workstation. Could still have multiple modems in the server, but then wouldn't have to have them strung all over the office(i.e. two lines to each station, one for phone and on for dialup).
That's how I started my network, with one box designated as the dialup/gateway/router, then when I switched to broadband, was real easy.

As I said, just my two cents


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple default gateways jireson Linux - Networking 3 02-04-2006 01:24 AM
how are multiple default gateways handled? eantoranz Linux - Networking 9 06-01-2005 02:09 PM
Default Routes joel112 Linux - Networking 0 12-30-2004 11:13 AM
3 network cards and 2 default gateways Oderus Linux - Networking 2 10-20-2004 03:04 AM
routes, default gateways, ip's internet connecting - Much Stress mudelf Linux - Networking 2 09-29-2003 06:13 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration