SliTaz SliTaz Forum

You are not logged in.

#1 2014-10-29 17:44:50

skyhawk
Member
Registered: 2012-11-05
Posts: 21

UDHCPC without ETH0 as default interface

I'm experimenting with my Slitaz 4.0 install on my very old Pentium 3 machine. I've disabled the onboard ethernet hardware in BIOS, to avoid any possible IRQ conflicts, and also because I don't use an ethernet connection. I only want to connect to the internet via a dial-up modem (56k USB), using wvdial to initiate ppp.

Is there any way I can use UDHCPC to fetch IP addresses without having eth0 shown as the default interface, as configured in /etc/network.conf. Actually, I need nothing in netbox for network configuration. I only need UDHCPC to provide IP addresses, so that I can resolve url's and surf the web.

Offline

#2 2014-10-29 19:09:19

Guest
Guest

Re: UDHCPC without ETH0 as default interface

Last time that I used a modem to connect to the internet, I just pointed to the serial port, & it would connect to my provider.

(Puppy used to be good for using modems, so if you don't get a suitable answer here, take a look through their forum.)

#3 2014-10-30 13:47:38

skyhawk
Member
Registered: 2012-11-05
Posts: 21

Re: UDHCPC without ETH0 as default interface

I've had the modem working with Slitaz 4.0 twice previously, two fresh installs, but not after some tweaking. On this fresh install, I'm trying to determine exactly why problems arise with not resolving url's. The modem dials-out correctly, connects, and UDHCPC fetchs primary and secondary DNS's dynamically, but not without many error codes. Then, it's not possible to resolve url's, although /etc/resolv.conf shows that the DNS's have been written to the file.

I'm thinking now that I have two options. Run UDHCPC at boot-up without eth0 as the default interface, then run wvdial, or just use static IP addresses for local, remote, nameservers, etc. Using static IP's, I might not need UDHCPC at all.

I might find some helpful info at the BusyBox website.

Offline

#4 2014-11-02 18:33:57

skyhawk
Member
Registered: 2012-11-05
Posts: 21

Re: UDHCPC without ETH0 as default interface

My Slitaz 4.0 install is now connecting to the internet again. I seemed to be missing some essential packages, needed for DNS resolution and for getting the USB modem to connect properly. Those packages are:

bind

bind-client

linux-usb-misc

linux-usbdsl

linux-usbip

and their dependencies. Those might actually be more packages than I needed, but my connection is now working, and that's the only thing that's important.

I'm using eth0 as the default interface in /etc/network.conf with the DHCP client enabled at boot time. The path to the USB modem, which is /dev/ttyACM0, is the default route specified in /etc/ppp/scripts/ppp-on. This works, despite the fact that the on-board ethernet hardware is disabled in BIOS. The kernel module, cdc-acm, is loaded as the USB modem driver.

When connecting with the "Stupid Mode = 1" option added to /etc/wvdial.conf, I see the following output:

root@slitaz:/home/tux# wvdial

--> WvDial: Internet dialer version 1.61

--> Cannot get information for serial port.

--> Initializing modem.

--> Sending: ATZ

ATZ

OK

--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

OK

--> Modem initialized.

--> Sending: ATDT< my connect phone number >

--> Waiting for carrier.

ATDT< my connect phone number >

CONNECT 115200

--> Carrier detected.  Starting PPP immediately.

--> Starting pppd at Sun Nov  2 15:53:49 2014

--> Pid of pppd: 1378

--> Using interface ppp0

--> pppd: 8A[06][08]�8[06][08]

--> pppd: 8A[06][08]�8[06][08]

--> pppd: 8A[06][08]�8[06][08]

--> pppd: 8A[06][08]�8[06][08]

--> pppd: 8A[06][08]�8[06][08]

--> local  IP address 72.251.71.29

--> pppd: 8A[06][08]�8[06][08]

--> remote IP address 207.223.72.68

--> pppd: 8A[06][08]�8[06][08]

--> primary   DNS address 64.136.173.147

--> pppd: 8A[06][08]�8[06][08]

--> secondary DNS address 64.136.164.146

--> pppd: 8A[06][08]�8[06][08]

For my ISP, the local IP address is set dynamically; it changes session-to-session. The remote IP address, primary DNS address, and secondary DNS address, are static; they remain the same session-to-session. This is information, by the way, that the support staff at my ISP could not provide. The staff there adamantly refuses to have anything to do with Linux. I was able to fetch the IP addresses, however, even before I was able to resolve URL's, so I could see what was dynamic and static.

The TRENDnet 56K USB modem works nicely. It is very compact and lightweight, so it can hang freely from its built-in USB connector without being physically supported. US Robotics also makes a 56K USB modem that works perfectly with Slitaz 4.0, but it is slightly larger and heavier, plus it costs more.

And, in conclusion, I discovered what needs to be done, if I need to do a fresh install of Slitaz 4.0 in the future. Another old Pentium III machine has been saved from the recycling facility, thanks to Slitaz 4.0.

=======================================================================

Compaq Deskpro EN, Pentium III 930 MHz, 512 MB RAM, 20 GB HDD,

TRENDnet 56K USB Modem TFM-561U

=======================================================================

"Avoid that bloated feeling. Use Slitaz daily."

=======================================================================

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]