DebianThis forum is for the discussion of Debian Linux.
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.
I've used Redhat and Fedora quite a bit, but am totally new to Debian. I
I have just installed Debian on a server in my office (command line interface only, no desktop), and I cannot get an IP from my DHCP. I have a router in place with the ip address 192.168.9.254 and the other computers in my office can all request IPs and get them fine.
I am thinking that my debian server has a firewall in place that is blocking the request or something. Whenever I do a /etc/init.d/networking start it freezes on this line:
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
And it tries it over and over and over and then stops and fails.
How can I tell if I have a firewall in place and disable it? I've done an apt-get remove iptables and it removed iptables.
Ancient rule of trouble shooting: "1st, check power cord."
Well obviously you have done that, but what about your physical ethernet connection? -- Have you checked the lights at both ends of that?
Assuming that is okay, run:
Code:
ifconfig -a
As to your firewall Q, ironically iptables -L is the normal way to check your firewall rules. It's also the normal way to insert rules into the netfilter module, so rebooting should have cleared the firewall. (You did reboot after the iptables-ectomy, didn't you?)
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Make sure:
/etc/network/interfaces
has these lines:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
Then do as root:
ifup eth0
If you have more than one network interface in the server, there should be:
eth0
and
eth1
In which case you need to plug the cable into the other NIC interface. Check the cable, too. You should generally not use a crossover cable between a router and NIC. When you butt up the ends on a crossover cable all the colors line up. On a straight through cable the colors are reversed, one plug from the other.
Thanks guys, I had that stuff all entered in my ifconfig...
But, I've put in my ubuntu CD and it loaded up fine, and I'm posting this message with it, so the network hardware / connection / wiring is working fine. There must be something with my debian install that isn't working.
When I put my Debian CD 1 in the drive to install it goes through the setup process and when it gets to the autoconfiguring of DHCP it fails... so why would Ubuntu work from the live cd right away, but Debian not be able to connect to my network during the install?
(I don't have the Debian network install CD - I had the 14 CDs burned and mailed to me.)
In looking at my networking files from the Ubuntu Live CD, in resolv.conf it has:
nameserver 192.168.9.254
and in /etc/network/interfaces is has:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
but only eth0 is active and working (I only have 1 network port)
I had these entered in my resolv.conf and interfaces file, are there any other files that I should check and use for my debian install?
Also, when going into System > Administration > Networking in the Ubuntu GUI, in the Connections tabs it shows Ethernet connection and says "The interface eth0 is active", on the General tab it has ubuntu as my hostname, and the domain name is left blank. the DNS tab has 192.168.9.254 as the DNS Server and nothing in the Search Domains textbox. Finally the Hosts tab has my localhost 127.0.0.1 and 127.0.1.1 (ubuntu) as well as a bunch of IPV6 entries.
14 CD's so thjat leads me to believe you are trying to install Debian Stable 3.1r4. It may not support the network card in your machine. you could try telling Debian to install the 2.6 kernel (2.6.8-3) by using the linux26 command at the boot prompt of the install.
or you could download the Debian Etch installer with the 2.6.18 Kernel at install.. much better chance of it detecting your hardware properly and getting your network card to work.. If you have broadband connection just grab the 100MB Netinstall iso.. http://www.debian.org/devel/debian-installer/
Sorry I didn't post an update, but after I had connected to the internet with the ubuntu live cd, I took out the ubuntu CD and restarted the computer to try some more to get it to work, and when it restarted the computer it received an IP from the router during the startup. So when the debian install wouldn't work, all I did was run the Ubuntu live cd and then restart the computer and it worked... I don't know why that would have made a difference, maybe the router was ignoring my server's mac address until ubuntu got it's attention, then it gave an IP to my debian install?
I then formatted and re-installed debian just to make sure it still worked, and this time when I did the install it went smoothly and got an IP right away.
Any explanations would be appreciated but I'm just glad it's working now.
There are some differences there, there is an if-up.d if-down.d directories but they're empty, but the /etc/network/interfacs file is the same as I had it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.