LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2005, 12:50 AM   #1
gunncyclopedia
LQ Newbie
 
Registered: Apr 2005
Location: Singapore
Posts: 10

Rep: Reputation: 0
Apt configuration problems during Debian Installation


Hi everyone

i have some problems with the network under debian i think.

When i am installing Sarge rc3 into a PC which previously ran windows, i used the netinstaller and everything worked fine, but when things came to apt configuration, it simply cannot connect to any external sources.

I tried to ping all the hosts in my network routed by D-link router, and the responses are positive, however, i am not able to ping any ip address outside this network.

I tried a woody installer on the same pc, and the same result turned out.

The ip address of the pc is 192.168.1.253
router is 192.168.1.1

I suspected that this might be the problem of the ethernet card, so i installed sarge into another box of mine, which had been running Woody fine for a long time. Unfortunately the same problem arose again, and i simply cannot turn back to Woody....

Could anyone help me figure out this problem?
 
Old 04-04-2005, 04:01 AM   #2
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
Re: Apt configuration problems during Debian Installation

Quote:
Originally posted by gunncyclopedia
Hi everyone

i have some problems with the network under debian i think.

When i am installing Sarge rc3 into a PC which previously ran windows, i used the netinstaller and everything worked fine, but when things came to apt configuration, it simply cannot connect to any external sources.

I tried to ping all the hosts in my network routed by D-link router, and the responses are positive, however, i am not able to ping any ip address outside this network.

I tried a woody installer on the same pc, and the same result turned out.

The ip address of the pc is 192.168.1.253
router is 192.168.1.1

I suspected that this might be the problem of the ethernet card, so i installed sarge into another box of mine, which had been running Woody fine for a long time. Unfortunately the same problem arose again, and i simply cannot turn back to Woody....

Could anyone help me figure out this problem?
What's the config for gateway for both the router and the system in question?

Also, that IP address for the box in question, is that from DHCP?
 
Old 04-04-2005, 10:45 PM   #3
gunncyclopedia
LQ Newbie
 
Registered: Apr 2005
Location: Singapore
Posts: 10

Original Poster
Rep: Reputation: 0
My D-Link router is set to DHCP with IP range from 192.168.1.2 to 192.168.1.150, i changed the upper limit to 192.168.1.255 but it still does not work.

the configuration file /etc/network/interfaces is as following:

#this loopback network interface
auto lo
iface 10 inet loopback

#the primary network interface
auto etho
face ehto net dhcp

While my another PC at hostel works with the same content of this file(using internal network of university, ip ranges in 172.20...).

The ifconfig return the following message:

eth0 link encap: ethernet Hwaddr: 00:E0:29:1D:EA:9E
inet addr: 192.168.1.253 Bcast 192.168.1.255
Mask 255.25.255.0
UPBROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Rx Packets: 402 errors: 0 dropped: 0 overruns: 0 frame: 0
Tx packtes: 204 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelon:1000
Rxbytes: 118726(115.9KiB) Txbytes: 46904(45.8KiB)
interrupt: 5 Base Address: Oxe800

lo ....

I restarted and changed the cable but the same IP address is distributed to this pc(or not distributed), another PC which is of the same problems has the IP addrss of 192.168.1.254, which looks also abnormal.
 
Old 04-08-2005, 12:28 PM   #4
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
Quote:
Originally posted by gunncyclopedia
My D-Link router is set to DHCP with IP range from 192.168.1.2 to 192.168.1.150, i changed the upper limit to 192.168.1.255 but it still does not work.

the configuration file /etc/network/interfaces is as following:

#this loopback network interface
auto lo
iface 10 inet loopback

#the primary network interface
auto etho
face ehto net dhcp

While my another PC at hostel works with the same content of this file(using internal network of university, ip ranges in 172.20...).

The ifconfig return the following message:

eth0 link encap: ethernet Hwaddr: 00:E0:29:1D:EA:9E
inet addr: 192.168.1.253 Bcast 192.168.1.255
Mask 255.25.255.0
UPBROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Rx Packets: 402 errors: 0 dropped: 0 overruns: 0 frame: 0
Tx packtes: 204 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelon:1000
Rxbytes: 118726(115.9KiB) Txbytes: 46904(45.8KiB)
interrupt: 5 Base Address: Oxe800

lo ....

I restarted and changed the cable but the same IP address is distributed to this pc(or not distributed), another PC which is of the same problems has the IP addrss of 192.168.1.254, which looks also abnormal.
Either machine, can you ping it's loopback and an IP address you set fixed to it without being hooked up to the network?

What does

cat /proc/interrupts

show?
 
Old 04-10-2005, 09:56 PM   #5
gunncyclopedia
LQ Newbie
 
Registered: Apr 2005
Location: Singapore
Posts: 10

Original Poster
Rep: Reputation: 0
Hi thanks for your reply, at the moment i think i have already found the problem.

I took notice to the message shown during the bootup, and found that the DHCPOFFER always comes from IP address 192.168.1.100, while my gateway to the internet is a wiressless router addressed at 192.168.1.1. The .1.100 address comes from a residential gateway which we use as a printer server. We disconnected this gateway and boot up, the PC will be able to acess the internet with no problem. otherwise, it will only be able to acess the IP address but cannot solve the domain names.

However this problem happens to two of my Debian PCs, while the third one runs fine.

The problem now is everytime during bootup or reboot, we have to disconnet the print server. It is very unconvenienet and may affect the printing of Linux. So is there a way to set this DHCPoffer to be always from 192.168.1.1, which is the right gateway we are usng?

thanks again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
problems with apt-get upgrade in Debian unstable Boogieman Debian 8 05-13-2004 02:18 PM
New to debian, php problems with apt-get familyman Debian 4 05-04-2004 11:58 AM
Problems with Debian Installation! aragorn_great Linux - Newbie 2 05-14-2003 09:24 PM
problems setting up libgtk2.0-common via apt-get on debian unstable f3lix Linux - Software 1 04-15-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration