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 :) |
/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 |
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.
|
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 |
try
Code:
pppoeconf |
Quote:
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: will you help me solve this please................... |
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 ;) |
Thanks.I''ll try and post:) .b/w will i need to put 'auto eth0' if i set static IP address ?
|
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.............:) :( |
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 Code:
auto lo - - - 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. ;) |
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). |
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:
Code:
debian:/home/prakash# ifconfig ppp0 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 |
Quote:
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. :) |
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...... |
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. |