I have a Huawei ADSL modem that my ISP gave me a few days ago. My FC6 found it inmidiatly after plugin the USB cord, and after surfing the web with my old connection, and installing packages I didn't have (linux-atm and rp-pppoe for example) I made it work with these commands:
# modprobe br2684 # br2684ctl -c 0 -b -a 0.33 # ifconfig nas0 up # adsl-setup # ifup ppp0
Now, with the exception of adsl-setup, all the other commands I have to execute then after booting the PC to get a conection to my ISP. I there a way to get all this to work each time I reboot?
On Sun, 2007-04-01 at 15:03 -0300, Martin Marques wrote:
# modprobe br2684 # br2684ctl -c 0 -b -a 0.33 # ifconfig nas0 up # adsl-setup # ifup ppp0
Now, with the exception of adsl-setup, all the other commands I have to execute then after booting the PC to get a conection to my ISP. I there a way to get all this to work each time I reboot?
Edit the /etc/rc.local script.
NB: You may want, or need, to enter the full path to those commands, e.g. like "/sbin/ifconfig" rather than just "ifconfig".
Tim escribió:
On Sun, 2007-04-01 at 15:03 -0300, Martin Marques wrote:
# modprobe br2684 # br2684ctl -c 0 -b -a 0.33 # ifconfig nas0 up # adsl-setup # ifup ppp0
Now, with the exception of adsl-setup, all the other commands I have to execute then after booting the PC to get a conection to my ISP. I there a way to get all this to work each time I reboot?
Edit the /etc/rc.local script.
NB: You may want, or need, to enter the full path to those commands, e.g. like "/sbin/ifconfig" rather than just "ifconfig".
Yes, that's what I did, but shouldn't there be a way of adding, specifically the br2684ctl line, this commands before the ppp0 interface is brought up using the network scripts?
On Mon, 2007-04-02 at 10:47 -0300, Martin Marques wrote:
shouldn't there be a way of adding, specifically the br2684ctl line, this commands before the ppp0 interface is brought up using the network scripts?
Way back when I used dial-up, I had a ppp post script that run after ppp connected, and I think there's also a ppp pre script. Using ppp automatically tried to find those files with specific filenames, and would run them if they existed. That sounds like the sort of thing you might want to do, but I don't recall the files involved. You'd have to look through the code of the network scripts to see what they referenced, or plow through documentation.
You can modify the scripts involved with dialling, but then such changes might disappear on you if the system modifies files, or you do updates.
Martin Marques wrote:
Tim escribió:
On Sun, 2007-04-01 at 15:03 -0300, Martin Marques wrote:
# modprobe br2684 # br2684ctl -c 0 -b -a 0.33 # ifconfig nas0 up # adsl-setup # ifup ppp0
Now, with the exception of adsl-setup, all the other commands I have to execute then after booting the PC to get a conection to my ISP. I there a way to get all this to work each time I reboot?
Edit the /etc/rc.local script.
NB: You may want, or need, to enter the full path to those commands, e.g. like "/sbin/ifconfig" rather than just "ifconfig".
Yes, that's what I did, but shouldn't there be a way of adding, specifically the br2684ctl line, this commands before the ppp0 interface is brought up using the network scripts?
Martin,
You could run the br2684ctl command from withing modprobe.conf. See man modprobe.conf and take a look at the example for the install command. You might be able to alias br2684 to nas0 so that everything happens automatically when you ifconfig nas0 up.
Bob...
Martin Marques escribió:
Tim escribió:
On Sun, 2007-04-01 at 15:03 -0300, Martin Marques wrote:
# modprobe br2684 # br2684ctl -c 0 -b -a 0.33 # ifconfig nas0 up # adsl-setup # ifup ppp0
Now, with the exception of adsl-setup, all the other commands I have to execute then after booting the PC to get a conection to my ISP. I there a way to get all this to work each time I reboot?
Edit the /etc/rc.local script.
NB: You may want, or need, to enter the full path to those commands, e.g. like "/sbin/ifconfig" rather than just "ifconfig".
Yes, that's what I did, but shouldn't there be a way of adding, specifically the br2684ctl line, this commands before the ppp0 interface is brought up using the network scripts?
If anyone ever needs to configure this modem, this is what has to be done. Add these lines to /etc/modprobe.conf:
========================================================= alias nas0 br2684 install br2684 /sbin/modprobe --ignore-install br2684 && \ /usr/sbin/br2684ctl -c 0 -b -a 0.33 >/dev/null 2>&1 || : ==========================================================
Remember that you have to put acording values to the -a option of br2684ctl that reflect how your ISP is working.
Hope it helps.