eth0 no ip address

Asked by Richard Thayer

I just insalled Ubuntu 9.10. Seamed everything was fine. but when i tried to get on my network, couldn't. I looked at the "network tools" in the administrator menu, and it shows eth0 and eth1 with no ip address. i opened up a terminal session, and it shows the devices being there with no ip adresses. I tried using "ifconfig -a 10.10.1.13 eth9" (10.10.1.0 is my local network) and it tells me it is an "unknown device". i tried using "sudo iface eth0 up" and nothing happens.

Please help. I am a indows guy, and this is more advanced than what Bill gives us. ;-)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) said :
#1

I have never needed to use ifconfig and ifup in Ubuntu. Normally NetworkManager takes care of the network connection automatically. It works the same way as in Windows these days ;)

But if ifconfig shows that you don't have an IP address then you don't have any, and the nice automatic system has failed :( And it's good to remember the old commands in that case

Could you please give more info about your network. Is it wired Ethernet? Or wireless (WLAN also know as Wi-Fi)?

Does your network have a DHCP server? If you don't know what DHCP is,let me rephrase the question: When you connect a Windows machine to your network for the first time, do you have to configure the IP address manually or does it just work automatically?

Revision history for this message
Richard Thayer (rthayer) said :
#2

This is a wired network. I have two interfaces I am trying to use. Eth0 will have an ip address when finished as 10.10.1.13/24. Eth1 will have the IP address of 172.16.1.2/24. This box will function as a SSL VPN entry point from the internet.

I do not use DHCP except for my workstations. This is being configured as a role os a server.

I tried using the network tools. It shows the interfaces there, but with no IP addresses. I cannot edit them. That is why I was using the terminal session. I am an old command prompt guy from the old days with DOS, and I kind of miss them.

Thanks

Revision history for this message
Uwe Geuder (ubuntulp-ugeuder) said :
#3

Ok, that makes things a bit more tricky and I'm afraid I cannot give a clear answer.

Please check whether you have NetworkManager running in your system.

$ ps -e | grep etwork

Mine shows

 2528 ? 00:00:02 NetworkManager

so I have it running (of course the process id and CPU time will be different for you)

If you have it, you can try to configure it using the GUI. (Normally the network icon is close to the upper right corner of the desktop) But I'm not sure whether it is at all planned
to support two interfaces with fixed IP-addresses. I understand it mostly intended for the "typical" end user using one interface a time, maybe changing between a wired connection and various wireless network connections from time to time, and typically all of them offering DHCP.

(I don't have a 9.10 Ubuntu handy right now and cannot check what the NetworkManager UI exactly supports in that version)

I guess the alternative might be to uninstall network manager and just configure your desired interfaces the old way. I believe it's done in /etc/network/interfaces.

To uninstall network manager you would give the command

sudo apt-get remove network-manager

(It might be wise to first try a simulation run

sudo apt-get -s remove network-manager

in order to make sure that the command would not uninstall some desired components, which happen to depend on it)

P.S. My personal problem with network manager is that it is very much the Microsoft approach. It works nicely and automatically for 90% of the cases. And in the remaining 10% where the user wants exactly to determine what to do, things get difficult and there is no documentation. (At least not installed in the system, maybe the network manager developers have a Wiki, I haven't checked)

Can you help with this problem?

Provide an answer of your own, or ask Richard Thayer for more information if necessary.

To post a message you must log in.