My Kubuntu (5.10) box is able to connect to my Internet connection and see other computers on my LAN, but ifconfig eth0 won't register my IP address, either DHCP or static. To finally get DHCP working correctly I added this to my startup:
Code:
# force DHCP
sudo dhclient
I do not consider this to be an optimal solution, especially because I'm interested in setting a static IP for NAT routing.
I have two versions of /etc/network/interfaces. The one I'm currently trying to use is for static IP:
Code:
# netmask 255.0.0.0
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet dhcp
kurgan@Linus:/etc/network$ cat interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# address 127.0.0.1
# netmask 255.0.0.0
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet static
address *.*.*.86
netmask 255.255.255.0
network *.*.*.0
broadcast *.*.*.255
gateway *.*.*.1
dns-nameservers 204.127.203.135 216.214.225.135
Of course, the IPs have been masked to protect the innocent.
I wrote a second version for DHCP:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# address 127.0.0.1
# netmask 255.0.0.0
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet dhcp
Neither file seems to work, so I have to force DHCP through the first script.
Can anyone help me figure out why I can't get Kubuntu to automatically recognize DHCP from my router or assign a static IP?
Thank you.