You are not logged in.

#1 2006-12-28 10:12:48

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

udev rules for a modem

The following udev rule was given to me last February to get a friends dial-up working:

KERNEL=="ttyS[0-9]", NAME=="%k", MODE=="0660", GROUP=="tty", SYMLINK+="modem"

I have just updated the system and I am aware that the udev rules have changed. It is not an area that I usually venture into. What is now needed to achieve a suitable device creation at boot-up to have the modem recognised?

Thanks.

Offline

#2 2006-12-28 17:03:41

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: udev rules for a modem

This rule has wrong syntax. Try this one:

KERNEL=="ttyS[0-9]", NAME="%k", MODE:="0660", GROUP:="tty", SYMLINK:="modem"

Also it's a good idea to place this rule in a file that will be processed as the first for example: /etc/udev/rules.d/00.modem.udev.rules

Offline

#3 2006-12-28 18:18:30

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: udev rules for a modem

Thanks lanrat, I'll give that a go.

Offline

#4 2006-12-28 18:56:45

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: udev rules for a modem

We're making progress of sorts. The new udev rule worked great and the modem symlink is created upon boot. When I test the dial-up wvdial goes through all of the correct processes but no web services or email are available. If I ping the remote IP and DNS servers I get confirmation that there is a network connection. Upon examination of the /var/log/errors.log I get this:

Dec 28 18:27:51 hollowood pppd[3498]: Cannot determine ethernet address for proxy ARP
Dec 28 18:30:43 hollowood pppd[3557]: The remote system is required to authenticate itself
Dec 28 18:30:43 hollowood pppd[3557]: but I couldn't find any suitable secret (password) for it to use to do so.
Dec 28 18:30:43 hollowood pppd[3557]: (None of the available passwords would let it use an IP address.)

Given that I have changed none of the existing config files I am not certain why this is happening. Has anyone else experienced this sort of problem?

Thanks.

Offline

#5 2006-12-29 04:41:21

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: udev rules for a modem

Disable proxyarp and auth in /etc/ppp/options?


1000

Offline

#6 2006-12-29 12:08:15

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: udev rules for a modem

Thanks byte. This got rid of the messages but didn't solve the connection problem  sad  I have now reverted back to the orginal options file as this does match the old one. This is really strange. I created a separate partition and rsynced the original Arch install across and updated grub. I then updated one installation and left the other alone just in case I ran into problems. As it happened the upgrade went fine and both old and new installations run fine except the dial-up on neither works  sad  I am now beginning to think it might be a problem with the ISP (uklinux.net), but their website does not suggest any status issues.

I went back through the errors.log on the old installation and found that the:

Dec 28 18:27:51 hollowood pppd[3498]: Cannot determine ethernet address for proxy ARP 

always occurs and does not stop the connection. I have checked the /etc/rc.conf as I had to make some changes in connecting and disconnecting to my network and have got rid of the other messages that way.  There are no other error messages and wvdial runs through the connection and disconnection process perfectly. Is there anything else I could have overlooked or could this be problems with the ISP?

Offline

#7 2006-12-29 12:34:52

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: udev rules for a modem

Answered my own question. It is the ISP. I contacted my own broadband provider and asked for a dial-up number so that I could test the script. It works fine with my ISP.

At least I now know.

Offline

Board footer

Powered by FluxBB