Apt configuration problems during Debian Installation
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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....
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?
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...).
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.
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...).
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.