Linux-Networking Digest #817, Volume #10 Sun, 11 Apr 99 00:13:53 EDT
Contents:
Help, pppd fails just after connection (Sepehr Kiani)
Re: smbf needs mount version 6 (Jeff Brubaker)
Free CD of ur choice for curing my PPP blues ("MalayJ")
Re: Linux as router? (Luca Filipozzi)
Re: IRQ conflicts ("William Evans")
Re: IRQ conflicts (Jack Beatty)
Re: Linux as router? ("Curt")
Re: Cable Modem? Distributing over small network. (Peter Eacmen)
2 Ethernet Cards - IRQ/Address Conflict? Help! ("Simon Morley")
----------------------------------------------------------------------------
From: Sepehr Kiani <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Help, pppd fails just after connection
Date: Sat, 10 Apr 1999 23:12:59 -0400
I'm trying to connection to my ISP (Netcom) and the linux pppd keeps
failing. I've read all the usenet discussions and tried several
solutions that don't work.
I'm running pppd version 2.3.5-1. When I use the Gnome-ppp dialer (same
as EZppp), the configuration and scripting is very straight forward.
When I dial out I get the following messages in the debug window.
**********Debug window starts
---NEW CONNECTION---
ATZ
OK
EATZ
OK
ATDT1-781-398-0800
CONNECT 50000 V42bis
bsg-ma-pm1 line 1/8/40
ICG Netcom
login: us,ppp,my_user_name
Password:
PPP session from (163.179.204.130) to 209.110.248.174 beginning...
************Debug window ends
If I have the script look for "ing..." for the last command the dialer
says "connected to ppp" then a couple seconds later a dialog pops up
with a message that the pppd stopped unexpectately. If just let the
debug window go I start getting garabage (which is what is supposed to
happen after the connection is actually made).
Giving up on the easy route I contacted NETCOM for their instructions:
************Netcom Instructions
This document provides all of the necessary information needed to
configure Slackware Linux 3.2 pppd to connect with a NETCOMplete
account. This information has also been verified to work with
Slackware 3.0. We cannot guarantee that these intructions will work
with any other distribution of Linux.
Note: Several scripts are included in this document. They will need
to be copied as is onto the Linux system.
I. Required Programs
In order to establish a PPP connection, Linux needs support for TCP/IP
and PPP in the kernel. Most Slackware pre-compiled kernels with
Network support already have this feature. If the kernel does not have
this support, however, re-compile the kernel. Consult the Linux
documentation for assistance with this step.
A working version of pppd and chat is also required. This comes with
Linux. If using kernel 1.3.21 or greater, however, obtain version
2.2.0 of pppd. It is available via FTP from:
sunsite.unc.edu/pub/Linux/system/network/serial/ppp/ppp-2.2.0f.tar.gz
Both pppd and chat should be placed in the /usr/sbin directory.
II. Create Scripts and Configuration Files
Create the following four files:
Filename Perms Ownership Path of file
------------- ----- ------------ ----------------------
ppp-on: 755 root.root /usr/sbin/ppp-on
chat-netcom
: 640 root.root /etc/ppp/chat-netcom
options: 640 root.root /etc/ppp/options
ppp-off: 755 root.root /usr/sbin/ppp-off
resolv.conf: 644 root.root /etc/resolv.conf
The first file that must be created is ppp-on. This is used to
actually establish the connection. Below is a sample script:
---- Cut Here ----
#!/bin/sh
/usr/sbin/pppd /dev/cua2 38400 \
connect "/usr/sbin/chat -f /etc/ppp/chat-netcom" \
defaultroute modem crtscts lock
---- Cut Here ----
Depending upon which COM port the modem is on, the above script
may need to be edited. Please refer to the following chart:
/dev/cua0 = COM1 /dev/cua2 = COM3
/dev/cua1 = COM2 /dev/cua3 = COM4
Note: The highest speed for a COM port is 38400 bps. In order
to refer to a higher speed, edit the following file:
/etc/rc.d/rc.serial
This file must have the "spd_hi" or "spd_vhi" option when
configuring the COM port on which the modem is connected to.
More
information requiring this step may be found in your Linux
documentation.
The second file that must be created is chat-netcom
.. This is
the configuration file that contains the initialization string
of the modem, the telephone number, username and password.
Below is a sample chat-netcom
file:
---- Cut Here ----
ABORT BUSY
ABORT 'NO CARRIER'
'' ATZ
OK AT+FCLASS=0
OK AT&F&C1&D2
OK ATDT261-4700
CONNECT ''
login: us,ppp,userID
Password: your-passwd
'PPP session' ''
---- Cut Here ----
Note: The string "us,ppp" (without the quotes) must be inserted
in front of the username in the login: field. Without this
prefix, Linux will be unable to establish a PPP connection.
Edit any other entries as necessary. Be aware that we can not
be responsible for any errors that occur due to using the above
script.
The third file is called options. Under most circumstances,
this
file does not need to be modified from its original form:
---- Cut Here ----
domain ix.netcom.com
ipcp-accept-local
ipcp-accept-remote
noipdefault
---- Cut Here ----
The fourth file to create is ppp-off. This is used to terminate
the connection. Below is a sample script:
---- Cut Here ----
#!/bin/sh
DEVICE=ppp0
#
# If the ppp0 pid file is present then the program is running. Stop it.
if [ -r /var/run/$DEVICE.pid ]; then
kill -INT `cat /var/run/$DEVICE.pid`
#
# If unsuccessful, ensure that the pid file is removed.
#
if [ ! "$?" = "0" ]; then
echo "removing stale $DEVICE pid file."
rm -f /var/run/$DEVICE.pid
exit 1
fi
#
# Success. Terminate with proper status.
#
echo "$DEVICE link terminated"
exit 0
fi
#
# The link is not active
#
echo "$DEVICE link is not active"
exit 1
---- Cut Here ----
The final file to create is resolv.conf. This is used to
configure DNS lookups. Below is a sample resolv.conf:
---- Cut Here ----
domain netcom.com
nameserver 199.182.120.203
nameserver 199.182.120.202
nameserver 199.182.120.1
nameserver 199.182.120.2
---- Cut Here ----
At this point, Linux is configured to access a NETCOM Account. Login
as root and run the ppp-on script to establish the connection. When
finished with your PPP session, run the ppp-off script.
***********End of Netcom instructions
I follow this to the letter (except for username and password). the
ppp-on script dials and sounds like it connects (I don't know how to
echo to the terminal) but then the connection is not active. Seems like
I am missing some very minor element here in my setup. Anyone out there
in TV land who can help (very frustrated)?
thanks,
--
Sepehr (Sep) Kiani
************************************
Development Engineering
Teradyne Connection Systems
[EMAIL PROTECTED] <<---NOTE CHANGED PERMINANT ADDRESS
at MIT: http://pergatory.mit.edu/skiani
inside TCS: http://epsomite
------------------------------
From: Jeff Brubaker <[EMAIL PROTECTED]>
Subject: Re: smbf needs mount version 6
Date: Sat, 10 Apr 1999 22:45:32 -0400
Lemme guess, you updated Red Hat 5.x to the 2.2 kernel? They provided
updated packages that will fix the problem, they're in a 2.2-upgrade
directory or something like that.
Jeff
razoon wrote:
> I get this message after trying to mount a winclient.
> Where can i get mount version 6?
> What should i do?
------------------------------
From: "MalayJ" <[EMAIL PROTECTED]>
Subject: Free CD of ur choice for curing my PPP blues
Date: Sat, 10 Apr 1999 19:39:17 -0700
Folks:
I have spent enough time on this that I am willing to buy someone a CD of
their
choice to solve it. I have read all the HOW-TO's and tried all suggestions
offered so far - no luck.
Please see end of the mail for 'reward' conditions.
Summary of my problem
=====================
- Can successfully ping my dns server but I ping anything else there is no
response.
- Name resolution works: if I type in redhat.com, its IP address will show
up.
- If i remove the default route option from pppd then, i get "network not
reachable"
when I try to ping anything other than my name server.
All relevant information and outputs are given below.
System configuration
====================
- Direct modem dialup connection.
- There is an ethernet card on the NT side of my system but it is not
configured under linux.
- There is an adaptec Ultra2 scsi card in system which not recognized or
used
via linux. I am using an IDE drive.
- Running Redhat 5.2 out of the box on a Dell NT XP350, booting from a
floppy.
- From the NT side I can successfully operate PPP over same modem and IP
addresses.
/etc/ppp/options file contents: this file is used when I invoke pppd
====================================================================
noipdefault
/dev/ttyS0
38400
lock
crtscts
asyncmap 0
mtu 576
mru 576
defaultroute
/etc/resolv.conf settings
=========================
domain ns.best.com
nameserver 204.156.128.1
nameserver 204.156.128.10
/etc/sysconfig/network file contents
====================================
NETWORKING=yes
FORWARD_IPV4="no"
HOSTNAME-localhost.localdomain
GATEWAY=""
GATEWAYDEV=""
My logon process
================
1. I run minicom and login into my PPP account via the modem.
2. Quit minicom without a reset (q) option
3. run pppd
AFTER CONNECTION IS ESTABLISHED I GET THE FOLLOWING OUTPUTS:
ifconfig
========
lo Link encap:Local Loopback
inet addr: 127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric: 1
...<packet info stuff all set to 0>...
ppp0 Link encap: Point-to-Point Protocol
inet addr:205.149.171.120 P-t-P:204.156.128.1 Mask: 255.255.255.0
UP POINTOPOINT RUNNING MTU:576 Metric: 1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
Memory:7181830-7181cc4
route -n
========
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
204.156.128.1 0.0.0.0 255.255.255.255 UH 0 0 1 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 204.156.128.1 0.0.0.0 UG 0 0 1 ppp0
ping 204.156.128.1 (this is the name server and gateway address supplied by
ISP)
================
PING 204.156.128.1 (204.156.128.1): 56 data bytes
64 bytes from 204.156.128.1: icmp_seq=0 tt1=252 time=173.6 ms
64 bytes from 204.156.128.1: icmp_seq=1 tt1=252 time=150.0 ms
64 bytes from 204.156.128.1: icmp_seq=2 tt1=252 time=150.0 ms
...
ping 205.149.171.120 (my local IP address from ifconfig above)
===========================================
PING 205.149.171.120 (205.149.171.120): 56 data bytes
64 bytes from 205.149.171.120: icmp_seq=0 tt1=64 time=0.1 ms
64 bytes from 205.149.171.120: icmp_seq=1 tt1=64 time=0.0 ms
...
ping redhat.com
===============
PING redhat.com (207.175.42.154): 56 data bytes
...<<It just hangs here with no output till I hit Ctrl C>>... then it gives
65 packets transmitted, 0 packets received, 100% packet loss.
ping to any other named or harcoded address has same hang.
If I remove "defaultroute" from the options file and remake the connection,
the ping to other addresses return:
"Network not reachable"
Please help!
FREE CD conditons:
==================
I will buy a CD of your choice (<$15 before shipping) from Amazon and send
it to you as a gift if:
- You respond with a reply that fixes the problem.
- If not, you should be willing to enter into a direct e-mail dialogue,
where
I can try your suggestions and let you know the results till the problem
is fixed or you give up. I will try and deal with one person at a time if
they are responsive.
Thanks
Malayj
------------------------------
From: [EMAIL PROTECTED] (Luca Filipozzi)
Subject: Re: Linux as router?
Date: Sat, 10 Apr 1999 20:12:50 -0700
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> I've got a small lan, 3 or 4 windows pcs, that need to share
> one "Mediaone Express" connection. A Cisco 2500 would be nice,
> but the only thing that's available is an old 486 and Slackware
> 3.2
>
> The question: Before I waste my time trying, does this machine
> realistically have enough computing power to do the job of a
> router?
>
> Specifics:
> 486 dx2-66, 12 mb ram, 540 mb hdd
> isa slots only;
> aha-1522 scsi
> nics/ dec etherworks-3 &
> amd 1500/2100t
>
> Job req'd/
> pick up an ip adr from mediaone's DHCP server and act
> as gateway for the other machines, which will all be
> using fixed addresses on 10 mbits. Firewall functionality
> a plus.
>
> So, any opinions on whether this is enough machine for the
> job?
>
absolutely.... i have a 486sx25 with 8mb and two 3c509 cards and it acts
as a router / firewall for a 4 computer lan (not including the router)
connected to the Internet via an ADSL line...
And you don't even need a harddrive. Two projects
http://www.linuxrouter.org and http://edge.fireplug.net are Debian
redistributions geared to boot off of a floppy and reside in RAM. (Yup,
RAM based filesystem and all that speed!!)
After you get the right ethernet drivers onto the floppy (for
LinuxRouter, anyway), it includes everything you need.
--
Luca Filipozzi <[EMAIL PROTECTED]>
------------------------------
From: "William Evans" <[EMAIL PROTECTED]>
Subject: Re: IRQ conflicts
Date: 10 Apr 1999 23:24:06 -0400
>>>>> "Snoopy" == Snoopy :-)) <[EMAIL PROTECTED]> writes:
Snoopy> I have the problem which is described. I have an External USR modem. In
Snoopy> Win95 It is on Com3---Irq7. In Linux it shows Irq4.
I take it that the third com port is an add-on? BTW: this should have
nothing to do with the fact that a modem happens to be connected to
it.
The fact that linux is initially assigning IRQ 4 is by convention;
Coms 1 & 3 got IRQ 4 while Coms 2 & 4 got IRQ 3. Problem? Well,
generally, yes. However, because the system only has so many
interrupts, and a majority of those are taken up with petty things
like keyboard and mouse, they couldn't assign them arbitrarily. Also,
who uses more than 2 serial ports? It goes along with "who's ever
going to need more than 640k of memory?"
Linux is not assigning this with some deep-founded knowledge; it is
making the assumption. To correct it (and this is quite easy), just
issue the setserial command such as
setserial /dev/ttyS2 irq 7
That's all.
You may also want to make sure that the I/O port is set to 0x03e8,
which is the standard for Com3. If not (if not indeed, win95 is
arbitrarily calling it Com3), find out what it is and change the above
command line to
setserial /dev/ttyS2 irq 7 port 0x3e8
replacing 0x3e8 with whatever the port is (0x3e8 in hex or 1000 in
decimal). If it is in fact 0x3e8, don't try to mess with it.
If this isn't done, and linux continues to use IRQ 4 for a device that
is trying to use 7, then the device will not work correctly. In the
case of a serial port, it will not perform (much past a line or two at
most).
HTH
-bill
--
William Evans < william . evans @ computer . org >
------------------------------
From: Jack Beatty <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux,apana.lists.os.linux.ppp,comp.os.linux.setup
Subject: Re: IRQ conflicts
Date: Sat, 10 Apr 1999 07:08:05 -0400
Mojoman wrote:
> I have been informed that a slow running minicom can be caused by IRQ
> conflicts with my modem. I have a feeling this is the case. However, I have
> no idea how to find the IRQ settings within linux to determine what
> conflicts I may have. Anyhelp would be appreciated, and if anyone has
> suggestions on how to fix these conflicts I would really be happy.
>
> Mark Powell
It may not be a conflict just that your modem is not using the IRQ you believe
it is given the COM port (CUA1-4) its assigned to. Once you find out what the
problem is you can use setserial to change the IRQ of the serial port. I had
similar problem and since I had a dual boot linux/win95 PC was able to
determine that the modem in COM port 3 was using IRQ 5 instead of 4 from
windows. I then used setserial to correct the problem.
------------------------------
From: "Curt" <[EMAIL PROTECTED]>
Subject: Re: Linux as router?
Date: Sat, 10 Apr 1999 22:34:39 -0500
It will be loafing acting as a firewall/router for a 3 or 4 PC lan.
You'll probably need to run IP masquerading for your local network.
http://metalab.unc.edu/LDP/HOWTO/mini/IP-Masquerade.html
Meade wrote in message <[EMAIL PROTECTED]>...
>I've got a small lan, 3 or 4 windows pcs, that need to share
>one "Mediaone Express" connection. A Cisco 2500 would be nice,
>but the only thing that's available is an old 486 and Slackware
>3.2
>
>The question: Before I waste my time trying, does this machine
>realistically have enough computing power to do the job of a
>router?
>
>Specifics:
> 486 dx2-66, 12 mb ram, 540 mb hdd
> isa slots only;
> aha-1522 scsi
> nics/ dec etherworks-3 &
> amd 1500/2100t
>
>Job req'd/
> pick up an ip adr from mediaone's DHCP server and act
> as gateway for the other machines, which will all be
> using fixed addresses on 10 mbits. Firewall functionality
> a plus.
>
>So, any opinions on whether this is enough machine for the
>job?
------------------------------
From: Peter Eacmen <[EMAIL PROTECTED]>
Subject: Re: Cable Modem? Distributing over small network.
Date: Sat, 10 Apr 1999 23:40:05 -0400
Is the network card they give you an ISA card or PCI (10 or 100Mbps). Because
my linux box is an AT i486 (no PCI)
Thanks
-Peter
Mike Kirk wrote:
> > > If I were to get a cable modem would it be compatible with Linux?
>
> I think it's more a question of if the network card they give you with the
> cable modem is compatible with linux. If the network card works you should
> be set. I'm running RH5.2 fine with Rogers @Home.
>
> > > How would I be able to set up the cable
> > > modem so that all nodes on the network could access the Internet.
>
> The easiest way is to find out if your cable modem ISP can give you
> extra IP addresses (some will for a small fee). This would be the cleanest
> way, then you just need a hub.
>
> > > Could my Linux box act as a gateway to the Cable network?
> > > Has anyone done this?
>
> Yes. I'm doing it. If you can't get extra IPs, then you can setup IP
> masquerading in linux, and it will "fake out" all your internal IP
> addresses into a single IP address (which it uses to talk through your
> cable modem). This requires 2 network cards in your linux machine, but the
> cable modem guys should give you one for free anyways.
>
> Other alternatives is to put 2 cards in a Windows machine and use software
> like NAT1000 (www.nevod.com - it works well), MS Proxy server (blech!), or
> WinGate (didn't work too well for me). I suggest NAT1000, but I think MS
> bought them out and tore down there web page or something.
>
> I have a linux box in my closet running IP masquerading for my internal
> network. It's been up running that and ftp, telnet, www and email daemons
> for over 2 months without a crash or reboot. I forget it's there.
>
> Yes, it runs games fine. I've heard that StarCraft may make you do some
> tweaking, but Tribes , Half-Life, and Quake-type games have all worked for
> me.
>
> Later,
>
> Mike
>
> Please respond to [EMAIL PROTECTED]
------------------------------
From: "Simon Morley" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,linux.redhat.misc,comp.os.linux.help
Subject: 2 Ethernet Cards - IRQ/Address Conflict? Help!
Date: Sun, 11 Apr 1999 23:58:47 +0800
My RedHat installation was fine with one ethernet card.
I just installed a second and added a file ifcfg-eth1.
On reboot the system hangs. Remove the card and its fine.
Both cards work fine under Windows.
Neither card has jumpers and both seem to be using IRQ11.
They use different addresses (6400 & 6800).
Is there anything I can do to fix this other than buying a new card with
jumpers?
Thanks in advance. [EMAIL PROTECTED]
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.networking) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Networking Digest
******************************