LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Sarge 3.1-Networking and aDSL problems...please have a look.. (https://www.linuxquestions.org/questions/debian-26/sarge-3-1-networking-and-adsl-problems-please-have-a-look-377284/)

deepclutch 10-26-2005 11:03 PM

Sarge 3.1-Networking and aDSL problems...please have a look..
 
Hello to All,
I am using Sarge 3.1r0a happily.My Problem is that i configured my standalone PC with network-admin GUI setting an IP-192.168.1.2/255.255.255.0 and G/W(router):192.168.1.1.and restarted networking.and 'ifconfig' displayed lan card 'eth0' and loopback interface 'lo' correctly.now i ran pppoeconf and everythings working.But when i restarted PC and logged into Sarge 'ifconfig' shows only 'lo'.But i have enabled 'network-admin' to start/Activate 'eth0' on startup.networking is not started,also i cant run 'pon-dsl-provider' to get aDSL connected.i need to manually start networking by '/etc/init.d/netwroking restart'.will you geeks help me connected to internet........

between iam using a huawei MT 880 modem/router.and webinterface is @192.168.1.1.
also in debian any 'chkconfig' like tools for configuring @ startup.....
:rolleyes:
will you geeks help me connected to internet.......:(

Dead Parrot 10-27-2005 02:27 AM

Please post the contents of your /etc/network/interfaces.

"network-admin" is part of gnome-system-tools, right? It's possible that using two different config tools has messed up your /etc/network/interfaces. I think using pppoeconf should have been enough.

Is "chkconfig" RedHat's tool for managing init scripts / services? If so, then you can install either "sysvconfig" (a terminal tool with ncurses interface) or "bum" (a GUI tool).

deepclutch 10-27-2005 06:25 AM

here is /etc/network/interfaces:(not working):(
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
broadcast 127.255.255.255
network 127.0.0.0
# The primary network interface
# please do not modify the following line
iface eth0 inet static
name Ethernet LAN card
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1

auto eth0

iface dsl-provider inet ppp
provider dsl-provider
# please do not modify the following line
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
========================================================
ifconfig shows eth0,lo and ppp0(but somehow not working)
For mine adsl cable is connected dirctly to PCs tcp/ip port.
B/w can i know which packages are for networking and aDSL?what is the normal procedure for adsl.i run network-admin>new ethernet>eth0 saved.and ran 'pppoeconf'.And chkconfig replacement for Debian is 'update-rc.d'.i tried that for starting network at boot.please....help...

Dead Parrot 10-27-2005 07:59 AM

Looks like you've got lots of unnecessary stuff in your /etc/network/interfaces. Maybe cleaning it up will make it work better. I suggest that you should delete everything that follows this line: "# The loopback network interface". Then you can add the following two lines to set up the loopback interface:

auto lo
iface lo inet loopback

After that, run "pppoeconf" and check /etc/network/interfaces again. Now it should look something like this:
Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto dsl-provider
iface dsl-provider inet ppp
    provider dsl-provider
# please do not modify the following line
    pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf

That should be enough. There's no need to run "network-admin" -- it will only serve to confuse things.

You don't need to specifically make networking to start at boot -- "pppoeconf" will set that up for you. But if you want to control which services are loaded at boot time, you can install "bum" (boot-up manager) with the command "aptitude install bum gksu". To run it, type "gksu bum".

deepclutch 10-27-2005 08:45 AM

Thanks Dead Parrot for ur reply.now i tried what u said and heres my
cat /etc/network/interfaces:(put manual start(pon &off)
Quote:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

iface dsl-provider inet ppp
provider dsl-provider

auto eth0

iface eth0 inet manual
=========================================================================
Now am writing from Sarge.i downloaded eciadsl.deb is it have any use?..:confused:
Quote:

# please do not modify the following line
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
I am not getting this line.also if i restart its showing only lo.help.............b/w i downloaded and installed newer ppp packages..........:cry:
my ifconfig ppp0
Quote:

ppp0 Link encap:Point-to-Point Protocol
inet addr:59.93.35.87 P-t-P:59.93.32.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:1468 errors:0 dropped:0 overruns:0 frame:0
TX packets:1497 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:841877 (822.1 KiB) TX bytes:243576 (237.8 KiB)

Dead Parrot 10-27-2005 10:30 AM

You had the "pre-up /sbin/ifconfig eth0 up" line in the /etc/network/interfaces that
you posted earlier, so I think it's what you ought to have there. It's strange that
"pppoeconf" didn't add it.

The line "pre-up /sbin/ifconfig eth0 up" should automatically get eth0 ready
before starting ppp0, so there shouldn't be any need for "auto eth0" and
"iface eth0 inet manual" (or anything like that).

It's possible that I'm wrong about this but I think you should at first do some
copying & pasting to make your /etc/network/interfaces to look like the example
I gave in my earlier post and then reboot and check with "ifconfig" if the three
interfaces "lo", "eth0" and "ppp0" have come up as expected.

If not, then try "pon dsl-provider".

Quote:

i downloaded eciadsl.deb is it have any use?
I don't know, let's see.
Code:

$ apt-cache show eciadsl
Package: eciadsl
Priority: extra
Section: net
Installed-Size: 352
Maintainer: Marco d'Itri <md@linux.it>
Architecture: i386
Version: 0.11-2
Depends: libc6 (>= 2.3.5-1)
Recommends: ppp (>= 2.4.2+20031002-3), udev
Filename: pool/main/e/eciadsl/eciadsl_0.11-2_i386.deb
Size: 155242
MD5sum: c96ea0be9db14fa2a12029abd8a7b95f
Description: userspace driver for the Globespan-based USB ADSL modems
 This package contains userspace utilities and daemons necessary to get
 working in Linux the USB ADSL modems based on the Globespan chipset.
Tag: hardware::modem:dsl, hardware::usb, made-of::lang:c, use::driver

Well, it looks like it's a "driver for the Globespan-based USB ADSL modems".
If you managed to get a net connection without it, then I don't think you actually need it.
You'll probably find some more info about this driver from /usr/share/doc/eciadsl/ .

deepclutch 10-27-2005 11:01 AM

thanks.the line
Quote:

pre-up /sbin/ifconfig eth0 up
been added manually by me */who had know experiance in shell scripting/*:)
but that doesnt seem to work.whatever, now i removed all connxns by deleting from network-admin and started pppoeconf and all run smoothly- seleted manual(pon/poff) and tried pon dsl-provider and connected.now i reboot and tried pon dsl-provider but its not connecting.while
#ifconfig lists ppp0,eth0 and lo. and eth0 is starting up at boot also.
as strange it is.
After i edited eth0 and gave ip 192.168.1.2/255.255.255.0 and g/w 192.168.1.1 (huawei MT880 router).restarted network.and again tried pon dsl-provider.not connected.but listed in by ifconfig command as ppp0 .
Please help......or is it a bug.i installed eciadsl also for support for CPE.but not discovered :)

Dead Parrot 10-27-2005 01:18 PM

In your first post you say: "i configured my standalone PC with network-admin
GUI setting an IP-192.168.1.2/255.255.255.0 and G/W(router):192.168.1.1.and
restarted networking.and 'ifconfig' displayed lan card 'eth0' and loopback interface
'lo' correctly.now i ran pppoeconf and everythings working."

That sounds like a good starting point. You set a static ip address, netmask & gateway.
Then you ran "pppoeconf" and everything was working. :) So I took a look at the
/etc/network/interfaces in your second post and edited that a little. Here's how I think
it should look:
Code:

auto lo
iface lo inet loopback

iface eth0 inet static
    address 192.168.1.2
    netmask 255.255.255.0
    gateway 192.168.1.1

auto dsl-provider
iface dsl-provider inet ppp
    provider dsl-provider
    pre-up /sbin/ifconfig eth0 up

Make your /etc/network/interfaces to look like above (copy & paste) and reboot to see
if that works any better than the previous attempts.

EDIT: I found another thread that you may find useful: http://www.linuxquestions.org/questions/history/366436

deepclutch 10-28-2005 02:26 AM

Thanks.I'll try it and posts the result...
BIB

deepclutch 10-28-2005 04:57 AM

@Dead Parrot:
I tried those and no workaround it seems.so i am going for a reinstall,coz i opted expert26 during

install.Thank You:Pengy:

Dead Parrot 10-28-2005 06:50 AM

OK, obviously the normal adsl setup (via pppoeconf) is not sufficient for your
specific modem/router. That hardware needs some special settings and I don't
know what they are.

But did you explore the link I gave in my last post? It seems that there's an in-built
web based configuration interface for your router, and all you need to do to access
it is to point your web browser to the following address: http://192.168.1.1/ .
That definitely seems worth a try. And this runlevel0 guy/gal seems to know a lot
about these kind of modem/routers, so his/her posts are also worth a careful read.

So it seems to me that basically you need to configure /etc/network/interfaces to
bring "lo", "eth0" and "ppp0" up at boot and then point your web browser to the
above address in order to configure your router. Good luck. :)

deepclutch 10-28-2005 03:39 PM

Thanks Dead Parrot.Took solid 3 hours reinstalled sarge and now somehow pppoe IS working.also those" pre-up /sbin/ifconfig eth0 up" is showing up now. guess what?i didnt put any IP address etc for onboard lan card eth0.simply ran pppoeconf and am browsing right now from Sarge ! .b/w i made a dependeny mess with the prev install as i upgraded all libc6 and installed 2.6.12 kernel....and tried to install udev v.70.?? and from 2.6.12 onwards no hotplug needed for udev .SO i misconfigured both some how lasttime i installed hotplug and latest udev .07? and everything messed up!But NOw Sarge Rocks!
Thanks to All.:)
B/W only irritant is i have to run as root :"ifconfig eth0 up" every time:( :(

deepclutch 10-29-2005 04:45 AM

Hai to All,
I got my sarge 3.1 connected to web via adsl.but i have to manually awake lan eth0
by running
Code:

debian:/home/prakash# ifconfig eth0 up
every time i start debian i need to do this.somebody got this problem fixed?please help......:study:

Dead Parrot 10-29-2005 06:29 AM

Hmm... Apparently the "pre-up /sbin/ifconfig eth0 up" isn't taking effect as expected.
You could try adding "auto eth0" to /etc/network/interfaces. Or if you already have
"auto lo", you can change it to "auto lo eth0" -- that should have the same effect as
"auto eth0". In other words, it should bring eth0 up at boot.

deepclutch 10-29-2005 07:01 AM

Hai dead parrot
i tried adding "auto eth0" to /etc/network/interfaces.heres what i got after i restarted
my networking.
Code:

debian:/home/prakash# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...ifup: interface lo already configured
Ignoring unknown interfaceeth0=eth0.
done.

anyway i am going to restart and post the results.thank you:)


All times are GMT -5. The time now is 10:03 AM.