From: Hadi Motamedi on

Dear All

According to your previous replies on my 'tcpdump' inquiry , I upgraded my Debian box from Sarge to Lenny . It is now running version 5.0.4 . But surprisingly I cannot connect it to Internet , as I did previously . I am trying as the followings :

#ifconfig eth0 ip-address netmask netmask-bits up

#route add default gw gw-address

#vi /etc/resolv.conf

domain domain-name

nameserver dns-server

I did it repeatedly when I was on my Sarge and it always got true . By I am trying for the same procedure on my new Lenny and it does not get through . Can you please let me know why ?

Thank you



_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
From: Boyd Stephen Smith Jr. on
In <SNT125-W520C423B872FB71E60D473DB3E0(a)phx.gbl>, Hadi Motamedi wrote:
>I upgraded my
> Debian box from Sarge to Lenny .

Did you read the Release Notes? If not, you should.

Also note that going directly from Sarge to Lenny isn't really supported -- it
may or may not have worked completely. You should have done an intermediate
upgrade to Etch.

> It is now running version 5.0.4 . But
> surprisingly I cannot connect it to Internet , as I did previously . I am
> trying as the followings :
>
>#ifconfig eth0 ip-address netmask netmask-bits up
>
>#route add default gw gw-address
>
>#vi /etc/resolv.conf
>
>domain domain-name
>
>nameserver dns-server
>
>I did it repeatedly when I was on my Sarge and it always got true . By I am
> trying for the same procedure on my new Lenny and it does not get through .
> Can you please let me know why ?

Can you ping the gw-address? Can you ping the dns-server?

Is eth0 the correct device? The output of (/sbin/ifconfig -a) might help us
determine that.

You should be using /etc/network/interfaces to configure your network. Then,
you can use ifup and ifdown or even have the device automatically started as
boot time. See (man 5 interfaces) for information about the file.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss(a)iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
From: Hadi Motamedi on




> From: bss(a)iguanasuicide.net
> To: debian-user(a)lists.debian.org
> Subject: Re: Upgrade to Lenny?
> Date: Sat, 27 Feb 2010 01:03:59 -0600
>
> In <SNT125-W520C423B872FB71E60D473DB3E0(a)phx.gbl>, Hadi Motamedi wrote:
> >I upgraded my
> > Debian box from Sarge to Lenny .
>
> Did you read the Release Notes? If not, you should.
>
> Also note that going directly from Sarge to Lenny isn't really supported -- it
> may or may not have worked completely. You should have done an intermediate
> upgrade to Etch.
>
> > It is now running version 5.0.4 . But
> > surprisingly I cannot connect it to Internet , as I did previously . I am
> > trying as the followings :
> >
> >#ifconfig eth0 ip-address netmask netmask-bits up
> >
> >#route add default gw gw-address
> >
> >#vi /etc/resolv.conf
> >
> >domain domain-name
> >
> >nameserver dns-server
> >
> >I did it repeatedly when I was on my Sarge and it always got true . By I am
> > trying for the same procedure on my new Lenny and it does not get through .
> > Can you please let me know why ?
>
> Can you ping the gw-address? Can you ping the dns-server?
>
> Is eth0 the correct device? The output of (/sbin/ifconfig -a) might help us
> determine that.
>
> You should be using /etc/network/interfaces to configure your network. Then,
> you can use ifup and ifdown or even have the device automatically started as
> boot time. See (man 5 interfaces) for information about the file.
> --
> Boyd Stephen Smith Jr. ,= ,-_-. =.
> bss(a)iguanasuicide.net ((_/)o o(\_))
> ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
> http://iguanasuicide.net/ \_/



Thank you . According to the Debian page , the current network installation iso image is 'debian-504-i386-netinst.iso' that I have tried with . I tried to define my netwirk settings according to your comment , i.e. defining them inside /etc/network/interfaces . But still the gw-address cannot be PING , nor the dns . Can you please give me a hint on this ?




_________________________________________________________________
Hotmail: Trusted email with Microsoft�s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
From: Andrew M.A. Cater on
On Sat, Feb 27, 2010 at 09:13:26AM +0000, Hadi Motamedi wrote:
>
> > > It is now running version 5.0.4 . But
> > > surprisingly I cannot connect it to Internet , as I did previously . I am
> > > trying as the followings :
> > >
> > >#ifconfig eth0 ip-address netmask netmask-bits up

Herewith a correctly formatted /etc/network/interfaces for an eth0

# 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
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.115
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 62.31.176.39 195.188.53.113 195.188.53.114

and the corresponding /etc/resolv.conf

nameserver 192.168.1.1

[resolvconf was previously installed, I think - in any event, the
dns-nameservers line points to my ISP's nameservers here and the single
nameserver line points to my current network gateway]

This also works

# 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
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.115
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

and

nameserver 195.188.53.114
nameserver 195.188.53.113
nameserver 194.168.4.100

where the /etc/resolv.conf has a direct reference to three of the ISPs
nameservers - if one goes, then the next one is tried: the
/etc/network/interfaces no longer has the reference to dns-nameservers
and /etc/resolv.conf

Glad to hear that you upgraded to Lenny: use the above files as a
reference if it helps,

All the best,

AndyC


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100227102853.GA15384(a)galactic.demon.co.uk
From: Hadi Motamedi on




> Date: Sat, 27 Feb 2010 10:28:53 +0000
> From: amacater(a)galactic.demon.co.uk
> To: debian-user(a)lists.debian.org
> Subject: Re: Upgrade to Lenny?
>
> On Sat, Feb 27, 2010 at 09:13:26AM +0000, Hadi Motamedi wrote:
> >
> > > > It is now running version 5.0.4 . But
> > > > surprisingly I cannot connect it to Internet , as I did previously . I am
> > > > trying as the followings :
> > > >
> > > >#ifconfig eth0 ip-address netmask netmask-bits up
>
> Herewith a correctly formatted /etc/network/interfaces for an eth0
>
> # 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
> allow-hotplug eth0
> iface eth0 inet static
> address 192.168.1.115
> netmask 255.255.255.0
> network 192.168.1.0
> broadcast 192.168.1.255
> gateway 192.168.1.1
> # dns-* options are implemented by the resolvconf package, if installed
> dns-nameservers 62.31.176.39 195.188.53.113 195.188.53.114
>
> and the corresponding /etc/resolv.conf
>
> nameserver 192.168.1.1
>
> [resolvconf was previously installed, I think - in any event, the
> dns-nameservers line points to my ISP's nameservers here and the single
> nameserver line points to my current network gateway]
>
> This also works
>
> # 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
> allow-hotplug eth0
> iface eth0 inet static
> address 192.168.1.115
> netmask 255.255.255.0
> network 192.168.1.0
> broadcast 192.168.1.255
> gateway 192.168.1.1
>
> and
>
> nameserver 195.188.53.114
> nameserver 195.188.53.113
> nameserver 194.168.4.100
>
> where the /etc/resolv.conf has a direct reference to three of the ISPs
> nameservers - if one goes, then the next one is tried: the
> /etc/network/interfaces no longer has the reference to dns-nameservers
> and /etc/resolv.conf
>
> Glad to hear that you upgraded to Lenny: use the above files as a
> reference if it helps,
>
> All the best,
>
> AndyC
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
> Archive: http://lists.debian.org/20100227102853.GA15384(a)galactic.demon.co.uk
>

Thank you . I modified my Lenny settings as the followings :

- under /etc/network/interfaces

auto lo

iface lo inet loopback

allow-hotplug eth0

iface eth0 inet static

address 192.168.10.114

netmask 255.255.255.0

network 192.168.10.0

broadcast 192.168.10.255

gateway 192.168.10.2

dns-nameservers 4.2.2.4 192.9.9.3

- under /etc/resolv.conf

nameserver 4.2.2.4

But still the gateway cannot be PING . Please be informed that , with respect to my low Internet bandwidth , I just installed the Base System on my Lenny . Can it be the root cause of the problem of not being able to connect my Lenny to Internet ? Please comment me .




_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969