LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   what are the packages which controls /etc/network/...please help (https://www.linuxquestions.org/questions/debian-26/what-are-the-packages-which-controls-etc-network-please-help-378326/)

deepclutch 10-30-2005 10:19 AM

what are the packages which controls /etc/network/...please help
 
Hello All,:)
I use Sarge 3.1 and uses pppoe adsl for internet.I wanted to uninstall/remove and reinstall the /etc/network/interfaces file.please point out which .deb package(s) are those determining network(/etc/network/)....please help :)

jlinkels 10-30-2005 10:46 AM

/etc/network/interfaces is the configuration file for ifup anf ifdown.

But what do you want to achieve? Have some installation program rebuild a broken configuration?

Usually that does not happen with uninstall/re-install, unless you specify the purge option in apt. In Linux is is almost never needed to go through the re-install dance to get an error fixed.

jlinkels

deepclutch 10-30-2005 12:06 PM

Yes.i got problem with /etc/network/interfaces of which i edited few lines got allcorrupted.I thought like ppp .debs there may be packages controlling network interfaces.

jlinkels 10-30-2005 05:28 PM

How I understand is that ifup and ifdown primarily deal with starting and shutting down network interfaces. Most other programs (mostly script) make calls to ifup and ifdown to do something with these interfaces. After they're up, everything is handled on a higher level. That means programs read/write from and to /dev/eth0 etc.

The only thing I cannot help you with is tell what entries /etc/network/interfaces should have for ppp, I have never used that.

It should be quite easy however to google for this. It saves you from re-installing

jlinkels

mrcheeks 10-30-2005 05:41 PM

try
Code:

pppoeconf

deepclutch 10-30-2005 11:21 PM

Quote:

Originally posted by mrcheeks
try
Code:

pppoeconf

Thanks.I already had a hell lot of problems with Adsl which is solved:rolleyes: .
please see the link:
http://www.linuxquestions.org/questi...hreadid=377284

Now if i manually put ip address etc,i cant get adsl connected.i tried dpkg-reconfigure.. etc but for the adsl to start,At boot i need to run
Code:

Password:
debian:/home/prakash# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6640 (6.4 KiB)  TX bytes:6640 (6.4 KiB)

debian:/home/prakash# ifconfig eth0 up
debian:/home/prakash# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:11:66:B6:5E
          inet6 addr: fe80::211:11ff:fe66:b65e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6640 (6.4 KiB)  TX bytes:6640 (6.4 KiB)

debian:/home/prakash# pon dsl-provider
Plugin rp-pppoe.so loaded.

now got connected to internet.
will you help me solve this please...................

tuxuser19 10-31-2005 07:59 AM

Okay, by looking at your output messages I can see that there is no IP address for your eth0. You can give an IP address by your self temporarily by typing
$ifconfig eth0 IP ADDRESS(like 192.168.1.X)

In most cases the DHCP server (which is your service provider will give the IP address automatically & it keep changes whenever you login to the internet-i meant dynamic IP add). In this situation what you can do is-change the "interfaces"
file in /etc/network/interfaces

When you open that you can type the following lines in it:

auto eth0
iface eth0 inet dhcp
name Ethernet LAN card

If you want to give the IP address by your self(i meant static)-you can do the following in /etc/network/intefaces:

iface eth0 inet static
address 192.168.X.X
netmask 255.255.255.0
broadcast 192.168.X.255
network 192.168.X.X

Give the proper IP address numbers whereever i typed in "X"
After you do this restart the network or you can do "ifdown eth0" and "ifup eth0". That's it everything must ready to go.

Let me know it worked for you ;)

deepclutch 10-31-2005 09:13 AM

Thanks.I''ll try and post:) .b/w will i need to put 'auto eth0' if i set static IP address ?

deepclutch 10-31-2005 01:03 PM

Well,I tried configuring etho manually assigned ip g/w etc and gave auto eth0 option too.It starts fine and showed at boot.but my adsl connxn isnt working afterwards.if i try "ifconfig ppp0 up",then it is listed as active devices in ifconfig command.But I CANNOT get connected!i tried pinging the DNS server IP and it pings!


If i doesnot assign any ip address,simply ran pppoeconf and it is working.I also installed updating ppp,ifupdown,pppoe,pppoeconf from latest unstable repo.after i updated pppoeconf deb the vi /etc/network/interfaces shows "auto eth0" instead of " pre-up /sbin/ifconfig eth0 up",which is removed(and was not working)...please hind/help what should i need to do/try.............:) :(

Dead Parrot 10-31-2005 03:45 PM

Do you still have that /etc/init.d/local file that I suggested you should create in the other thread? Well, you could try making it look like this:
Code:

#!/bin/sh
ifconfig eth0 up
pon dsl-provider

And then you could edit /etc/network/interfaces and make it look like this:
Code:

auto lo
iface lo inet loopback

Next, you could run "pppoeconf" and then reboot and see if that helped at all.

- - -

It looks like /etc/network/interfaces isn't automatically installed by any package (I ran "dpkg -S /etc/network/interfaces" to verify that). Rather, it apparently gets created by any application that you first use to configure your network connection -- and afterwards, any further attempts to configure network will modify the already existing file. You can also manually edit /etc/network/interfaces with a text editor -- this is a perfectly legitimate way to configure your network.

Usually just running "pppoeconf" is enough, but it seems that in your case some additional steps are needed. I gather from your many posts that it's not necessary to assign any ip address for your eth0 -- it rather seems that you can connect to network even without configuring eth0 at all (I may be wrong here but that's what it seems to me). You just need to bring eth0 (and lo) up and then make ppp0 to connect to your dsl-provider.

But it seems that just running "pppoeconf" doesn't bring eth0 up at boot automatically, and it also looks like you need to run "pon dsl-provider" manually. This is why I suggest that you should put those commands to your /etc/init.d/local file. So give it a try and see what happens. ;)

tuxuser19 10-31-2005 07:12 PM

First of all I didn't understand properly what you type in!! But, by the info I can understand that you can ping the dhcp server but you cannot connect to the internet right?

The "auto eth0" block which I typed in in my previous post is needed if you want your DHCP server to give an IP address automatically.

The "iface eth0 inet static" block is needed when you want to give the IP address by yourself-means if you want to enter manually.

There must be only one type of allocation at a time i.e either static or dymanic(DHCP).

deepclutch 10-31-2005 11:45 PM

Thanks@Dead Parrot i tried that script but it produced a lot of instances of ppp and i need to run killall and poff -a etc.

eth0 is brought up automatically(after upgrading pppoe packages) at start after i tried auto eth0 with both cases ie,
with ip address for eth0 and without ip.And if i try pon dsl-provider,ppp0 is not shown.then i tried ifconfig ppp0 up.and 'ifconfig' command listed ppp0 also as active devices.but i cannot browse web/ping any site.i searched LQO and other guy also got same problem not solved.

Quote:

First of all I didn't understand properly what you type in!! But, by the info I can understand that you can ping the dhcp server but you cannot connect to the internet right?
I am in a stand alone computer.my e100 lan card module is loaded works with sarge.am sorry i thought inet addr:59.93.33.121 as ISPs DNS server IP....
Code:

debian:/home/prakash# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:59.93.33.121  P-t-P:59.93.32.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:958 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1022 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:345342 (337.2 KiB)  TX bytes:129619 (126.5 KiB)

i tried pinging 59.93.33.121 and its pinging but cant connected to web:confused:
PPP0 is listed but is not allowing pinging...........
Also in my network-admin GUI,two connections are listed one is 'Unknown Interface type-DSL provider' and eth0.if i remove all and run pppoeconf only
'Unknown Interface type-DSL provider' is shown and that too working eth0 is brought up also.My problem is if i assign IP for my compuetr i CANNOT browse...please help as occassionally i need to connect another computer as a small LAN ...Thanks to All

Dead Parrot 11-01-2005 05:20 AM

Quote:

i tried that script but it produced a lot of instances of ppp and i need to run killall and poff -a etc.
In that case, please remove the lines "ifconfig eth0 up" and "pon dsl-provider" from /etc/init.d/local (leaving only the "#!/bin/sh" line). These lines will only create unnecessary confusion.

You should concentrate on editing /etc/network/interfaces and forget /etc/init.d/local for the moment (after you've cleared the above mentioned lines). At some point later on you may want to add some commands to /etc/init.d/local but at this point it will only create unnecessary confusion.

It's rather difficult to give any good advices because you don't report all the changes that you've made between your posts. Posting your current /etc/network/interfaces and the output from "ifconfig" in the beginning of your every post would give us a better understanding of your current configuration and help us to give better advices.

It really shouldn't be too difficult -- you have several times managed to get an *almost* working configuration. :) And then you changed something and suddenly nothing works anymore. :( So I think that you should edit /etc/network/interfaces making only one change at a time (and then reboot and check with "ifconfig" if anything changed), and if this latest change seems to be a step towards the worse, then you should revert that change and go back where you were before. Tread very carefully and you will find a working network configuration. :)

deepclutch 11-01-2005 01:21 PM

Thanks.OK now i deleted:rolleyes: all connections and ran pppoeconf and i tried
pon dsl-provider.ifconfig listed all ie eth0,lo,ppp0(connxn) properly and i can browse web now.if i restart debian,i need to run as #ifconfig eth0 up and #pon dsl-provider.please help......

deepclutch 11-01-2005 01:23 PM

Also if i try network-admin GUI for setting up ethernet lan it works ok and start at bootup.but afterthat i cannot get adsl connxn connected to web.ie by running 'pppoeconf' after eth0 is set with network-admin.if i try pppoeconf it completes all steps correctly.and even "ifconfig" command shows ppp0 along with eth0 and lo.but.........i cant get connected to internet by this way..........please help.....


All times are GMT -5. The time now is 05:43 PM.