- Re: RH8 - dial-up modem network setup trouble

PDA

View Full Version : Re: RH8 - dial-up modem network setup trouble


John Reiser
07-24-2004, 08:49 PM
> I'm attempting to set up Red Hat 8.0 on a Compaq PC; using an external
> US Robotics modem, model 5686E (NOT a winmodem) on serial port 1.

There are newer .rpms [for RH9, anyway] which may help:
redhat-config-network-1.2.15-1.noarch.rpm
redhat-config-network-tui-1.2.15-1.noarch.rpm
rhpl-0.93.4-1

The results should be 3 files that are hardlinked ("ln", not "ln -s"):
/etc/sysconfig/networking/profiles/default/ifcfg-<nickname>
/etc/sysconfig/networking/devices/ifcfg-<nickname>
/etc/sysconfig/network-scripts/ifcfg-ppp0
and a file /etc/ppp/peers/ppp0 which contains
-----
connect "/usr/bin/wvdial --remotename ppp0 --chat '<nickname>'"
-----
where <nickname> is typically the name of the ISP. Make the nickname
without spaces or special characters, etc.

The contents of ifcfg-<nickname> sometimes look like
-----
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL=yes
PEERDNS=yes
ONBOOT=no
TYPE=Modem
DEVICE=ppp0
BOOTPROTO=dialup
CCP=off
PC=off
AC=off
BSDCOMP=off
VJ=off
VJCCOMP=off
LINESPEED=115200
MODEMPORT=/dev/ttyS0
PROVIDER=<nickname>
DEFROUTE=yes
PERSIST=no
PAPNAME='<login_name>'
WVDIALSECT=<nickname>
MODEMNAME=Modem0
DEMAND=no
-----

and the contents of /etc/wvdial.conf sometimes look like
-----
[Modem0]
Modem = /dev/ttyS0
Baud = 115200
SetVolume = 1
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM1
FlowControl = Hardware (CRTSCTS)
[Dialer <nickname>]
Area Code = <area_code>
Username = <login_name>
Password = <password>
Phone = <phone_number>
Stupid Mode = 1
Inherits = Modem0
-----

If things don't work automatically, you can always try running wvdial
directly (as root). Either use the line from peers/ppp0, or just
# wvdial <nickname>

YMMV [Your Mileage May Vary]. Good luck!

Lewis
07-24-2004, 08:52 PM
John Reiser <jreiser@BitWagon.com> wrote in message news:<3F3E6B79.2000908@BitWagon.com>...
> > I'm attempting to set up Red Hat 8.0 on a Compaq PC; using an external
> > US Robotics modem, model 5686E (NOT a winmodem) on serial port 1.
>
> There are newer .rpms [for RH9, anyway] which may help:
> redhat-config-network-1.2.15-1.noarch.rpm
> redhat-config-network-tui-1.2.15-1.noarch.rpm
> rhpl-0.93.4-1

No such updates are posted for Red Hat 8.

I checked each of the links and config files you suggested, and found
things to generally be in order. So I tried...

[root@Fred root]# wvdial <nickname>
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT<number>
--> Waiting for carrier.
ATDT<number>
CONNECT 52000/ARQ/V90/LAPM/V42BIS
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Aug 18 22:28:21 2003
--> pid of pppd: 1007

I don't see a confirmation of my login, but I assume it took place, or
I would expect my ISP would have hung up within a few minutes.

Still no joy as to reaching the net. Grasping at straws, I tried...

[root@Fred root]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4682 (4.5 Kb) TX bytes:4682 (4.5 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.64.64.64 P-t-P:10.112.112.112
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:17 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:0 (0.0 b) TX bytes:180 (180.0 b)

ppp1 Link encap:Point-to-Point Protocol
inet addr:198.144.38.227 P-t-P:198.144.34.35
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1514 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:164 (164.0 b) TX bytes:84 (84.0 b)

(After trying to ping various hosts local to my ISP, I again tried...)

[root@Fred root]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4682 (4.5 Kb) TX bytes:4682 (4.5 Kb)

ppp1 Link encap:Point-to-Point Protocol
inet addr:198.144.38.227 P-t-P:198.144.34.35
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1514 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:260 (260.0 b) TX bytes:84 (84.0 b)

(The modem was still active, and remained so until I whacked it and
got the wvdial process's attention, but nothing I did made the Tx/Rx
lights flicker.)

Thanks, John, for getting me this far. Any suggestion for what I
should try to actually get on the net, and how I can make this all
happen automagically?

Again, TIA

--Lewis