View Single Post
  #22   Report Post  
DoN. Nichols
 
Posts: n/a
Default

In article ,
Gunner wrote:
On 25 Jul 2005 23:12:07 -0400, (DoN. Nichols)
wrote:


Perhaps so. But I think that I have covered most of what may
be needed (other than how to convince a Windows box to use that instead
of a modem to dial up a network connection. :-)

Enjoy,
DoN.


Don, quick question for you. It appears you are linux/unix smart. Ive


Sorry -- I fell behind during a local metalworking club meeting
combined with more than usual of the day dealing with some program
modifications, so I'm only now just seeing this.

Note that I only have one linux box up, and it uses only a
direct ethernet card. It has been a long time since I've used a modem
to connect to the net. I've currently got a leased T1 line.

got a Linux box running on the home net, one that Ive been using to
try various distros of Linux (I rather like Mepis btw) and have been
setting them up to use proxy access to the net via my regular win XP
pro box (dial up..sigh) Works great via proxy.

My problem is that I scrounged an external modem (works fine) and
after installing it, I cannot connect to the net via the modem. KPPP
setup is fine, it dials out properly but when I load any browser or
apt-get etc etc..it ignores that there is a modem ready and waiting.
Ive changed/removed the proxy settings from all the browsers
(firefox/konqurer/Dillo) and none will use the modem. If I use a Run
from CD distro, all works fine.

Any idea which file(s) needs to be configured to allow all internet
tasks to go to tty/s01? No one in my area that Im familar with knows
dick about linux, nor does the local Community College offer any
classes, and learning this on my own is a stone bitch. Ive got a QUE
book on linux...but its not helping much either....sigh.


Hmm ... again -- I've not used a modem and PPP (or SLIP, which
was what I actually used back then) for net connection in a long time,
and that was on an old SunOs 4.1.4 box, not linux.

However, you might start by running:

ifconfig -a

and seeing what it returns. If your PPP connection is up, it should be
visible on that. (One of my internal net systems shows the following:


================================================== ====================
lo0: flags=2001000849UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843UP,BROADCAST,RUNNING,MULTICAST,IPv4 mtu 1500 index 2
inet 10.0.0.26 netmask ffffff00 broadcast 10.0.0.255
ether 8:0:20:7f:10:23
lo0: flags=2002000849UP,LOOPBACK,RUNNING,MULTICAST,IPv 6,VIRTUAL mtu 8252 index 1
inet6 ::1/128
hme0: flags=2000841UP,RUNNING,MULTICAST,IPv6 mtu 1500 index 2
inet6 fe80::a00:20ff:fe7f:1023/10
ether 8:0:20:7f:10:23
================================================== ====================

Note that the "lo0" entries are the internal "loopback" net, no
connection to anything outside that machine), and the "hme0" ones are
the 100BaseT/10BaseT twisted pair ethernet interface. There are two
entries for it, because I am running both the standard IPv4 (inet) and
the IPv6 (inet6) networking at once.

Once it is verified that your ppp is runing (it may show up as
"ppp0:"), and make sure that it says "UP,RUNNING" (with other possible
states), then you need to make sure that things are routed to it.

For that, try:

netstat -r

And you should get something of this form:


================================================== ====================
Fuego:csu 1:12 # netstat -r

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
d-and-d ceili2 UG 1 78
10.0.0.0 Fuego U 1 4095 hme0
BASE-ADDRESS.MCAST.NET Fuego U 1 0 hme0
default sponge UG 1 67
localhost localhost UH 6 98 lo0

Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------ -----
fe80::/10 Fuego U 1 4 hme0
ff00::/8 Fuego U 1 0 hme0
default Fuego U 1 0 hme0
localhost localhost UH 6 252 lo0
================================================== ====================

(Probably minus the second IPv6 part). Anyway -- look at what is set
for "default". In my case, it is pointing to the firewall machine.
You may need to type "route add default something" to get things
pointed to your dialup PPP link. If you were previously talking to the
net through your Windows box, that is probably the default.

You might first try connecting booted from the CD-ROM, and see
what both of those commands show (write it down), and that may help you
to see what it should be doing on the disk booted version.

There are various ways of doing the configurations, depending on
what system you are running. On Sun's Solaris, there is an
/etc/defaultrouter file containing the name of the default route, so it
is automatically set on boot. Also, there is an /etc/hosts file giving
matches between names and local IP addresses, and a
/etc/hostname.(interface) (such as /etc/hostname.hme0 for above), which
tells the system which IP address to use. In Sun's Solaris 10, it
contains the system name, and the IP address is in the /etc/hosts file.

For OpenBSD, on an Intel based box, the file is:

/etc/hostname.rl0

and the contents a

inet 10.0.0.23 255.255.255.0 NONE

giving the IP address and the netmask (plus saying that there are no
extra things being done with this). I picked this one as my example
OpenBSD system for two reasons:

1) It is internal net only, so it is giving away nothing serious.
The 10.*.*.* IP blocks cannot be routed to the outside, and
connection to the outside is done through the firewall, which
does NAT (Network Address Translation) to make selected
protocols appear to be from an outside capable IP).

2) It is a *lot* simpler than the other OpenBSD box, which is a
firewall with five ethernet interfaces -- mostly internal nets,
but one external one.

I added the modem after installing the OS. When booting, the os
finds the modem no problem. I used KPPP to set up the modem, all went
well there.

Do I need to reinstall? Id rather not lose all my other settings.


I'm sure that you don't -- but the trick is finding what you
need to reconfigure. Without knowing that, you may need to reinstall.
Can you run backups of everything important?

Id run off a CD..but its slow, even on a 700 mhz machine with 512 ram.
Which sort of defeats futzing with linux.


I agree.

Ive got Mepis (current distro) loaded, with Mandiva , Fedora and
Ubuntu waiting in the wings, along with Knoppix, which, like Mepis,
works pretty well. Im not doing anything other than desktop stuff,
and have a second 80gig drive mounted as hdb1 for storage serving via
samba


I tend to avoid linux for externally net-visible systems. While
it is not nearly as bad as Windows with constant patches needed, it
still needs patching more frequently than I find comfortable.

BSD versions vary on security posture, with OpenBSD probably
being the most anal-retentive (and thus the most secure). Pretty much
anything which is on by default is safe. The other stuff, you have to
learn to turn on. :-)

I'm using linux only on one system, to run an EMC package to
(eventually) control a Bridgeport via a Servo-to-Go card. The EMC
package is nicely tied to much older versions of linux, so I am rather
out of date on that -- let alone not having experience with the various
distributions which you have listed.

Ive also got DSL, Beatrix and several other small versions also.

Got any suggestions on how to solve the modem problem?


I have some starting points above. I'm pretty sure that it is
not a modem problem, but a networking routing problem. And the last
time I worked at setting up linux networking (with a real network card),
things were strangely located, relative to the Sun Solaris and the
OpenBSD implementations.

I hope that this is a start, at least.

Enjoy,
DoN.

--
Email: | Voice (all times): (703) 938-4564
(too) near Washington D.C. |
http://www.d-and-d.com/dnichols/DoN.html
--- Black Holes are where God is dividing by zero ---