LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apt configuration problems during Debian Installation (http://www.linuxquestions.org/questions/linux-networking-3/apt-configuration-problems-during-debian-installation-309467/)

gunncyclopedia 04-04-2005 12:50 AM

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?

t3gah 04-04-2005 04:01 AM

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?

gunncyclopedia 04-04-2005 10:45 PM

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.

t3gah 04-08-2005 12:28 PM

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?

gunncyclopedia 04-10-2005 09:56 PM

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


All times are GMT -5. The time now is 01:12 AM.