Re: My Debian box can't connect Internet (run out of tricks)
Hi Robert,
Thanks for your advice.
On Tue, 2003-12-16 at 03:44, Robert Storey wrote:
> Dear Stephen,
>
> It's very odd that you can't change this file as root. The only thing I
> know of that would cause this is if the immutable flag is set. The way
> to find out is with the lsattr command:
>
> bob@sonic:/etc> lsattr resolv.conf
> s-------c-------- resolv.conf
>
> As you don't see an "i" that means the immutable flag is not set, so no
> problem.
>
> Changing the immutable flag is done with the chattr command.
>
> I have heard it said that crackers do mess with the immutable flag, but
> it seems odd that your box would be cracked if you can't even get
> online.
>
> By the way, my /etc/resolv.conf has nothing in it, but it works.
After running
# chattr + /etc/resolv.conf
then
# chattr - /etc/resolv.conf
Now /etc/resolv.conf can be edited.
> When I
> connect with the command "pon dsl-provider" a temporary address is
> provided. I can see that address with the plog command. The only
> annoyance I've had with pppoe is that I have to be root to issue the
> pon/poff dsl-provider commands - there must be a way around that, but I
> haven't found it yet. You could try running pppoeconf again and set your
> system so it does NOT connect to the Internet on bootup, and use the
> pon/poff dsl-provider command (it would be easier than reinstalling).
I ran 'pppoeconfig' again selecting not starting 'pppoe' at boot.
# pon dsl-provider
ifconfig showing ISP connected but the Debian box was still cut off
from Internet.
I took another spare hard drive and performed another installing Debian
test on another PC. This time I used net-installer, sarge CD.
Everything went through smoothly. However he same problem still
occurred, ISP connected but cut off from Internet. Therefore I could
not download packages from Debain website or its mirror sites to
complete the installation.
I am a little bid disappointed. I could not discover where the Debian
box are blocked from connecting to Internet.
B.R.
Stephen
>
> On Mon, 15 Dec 2003 12:24:19 +0800
> Stephen Liu <satimis@icare.com.hk> wrote:
>
> > Hi Paul,
> >
> > Thanks for your advice.
> >
> > On Mon, 2003-12-15 at 04:13, Paul Johnson wrote:
> >
> > > On Sun, Dec 14, 2003 at 11:54:22PM +0800, Stephen Liu wrote:
> > > > # cat /etc/resolv.conf
> > > > search domain.com\000
> > > > nameserver 192.168.2.1
> > >
> > > Ah ha! You might try adding a nameserver on the outside or make
> > > sure that nameserver is able to get a connection to the outside
> > > world.
> >
> > That is the original 'resolv.conf' file. I have not touched it and
> > also I was not allowed to alter this file even as ROOT. This was very
> > strange to me. The said file can be opened with a Text editor, 'nano'
> > or 'kedit', and editing also allowed. 'Saving changes' to the file
> > was not allowed. You can save the file but it only retains its
> > original content.
> >
> > If no solution found then I think I have to make another clean
> > installation of Debian 3.0 again. I will use net-installation. I am
> > connecting to broadband of 3MB bandwidth. If it is not installing
> > from source code, like Gentoo 1.4, the download time won't be long and
> > I can have the maybe uptodate packages.
> >
> > B.R.
> > Stephen
Reply to: