LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-28-2006, 08:26 AM   #1
SpaceGhoti
LQ Newbie
 
Registered: Apr 2002
Location: Des Moines, IA, USA
Posts: 25

Rep: Reputation: 15
Kubuntu IP addressing


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.
 
Old 04-28-2006, 06:07 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Mine says "mapping eth0" where yours says "mapping hotplug". Try that change out?
 
Old 04-29-2006, 01:02 PM   #3
SpaceGhoti
LQ Newbie
 
Registered: Apr 2002
Location: Des Moines, IA, USA
Posts: 25

Original Poster
Rep: Reputation: 15
Tried it.

Quote:
Originally Posted by ataraxia
Mine says "mapping eth0" where yours says "mapping hotplug". Try that change out?
It wouldn't even bring up the network interface after that. Thanks for trying, though.
 
Old 05-04-2006, 08:23 AM   #4
SpaceGhoti
LQ Newbie
 
Registered: Apr 2002
Location: Des Moines, IA, USA
Posts: 25

Original Poster
Rep: Reputation: 15
Does anyone have any suggestions? The "KNetworkConf" tool just assigns a generic Windows IP when I try to use it and won't pull my DHCP address from my Linksys router, let alone let me assign a static IP.
 
Old 05-11-2006, 09:14 AM   #5
SpaceGhoti
LQ Newbie
 
Registered: Apr 2002
Location: Des Moines, IA, USA
Posts: 25

Original Poster
Rep: Reputation: 15
Hello? Anybody? Please?
 
Old 05-11-2006, 10:23 AM   #6
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Not that it's much help, but I think that network configuration in Kubuntu is pretty broken at the moment. I had a lot of trouble with it when setting up.
 
Old 05-11-2006, 05:02 PM   #7
SpaceGhoti
LQ Newbie
 
Registered: Apr 2002
Location: Des Moines, IA, USA
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Gethyn
Not that it's much help, but I think that network configuration in Kubuntu is pretty broken at the moment. I had a lot of trouble with it when setting up.
Well, that's a start anyway. Does the same problem occur in regular Ubuntu?
 
Old 05-11-2006, 05:08 PM   #8
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
It's not broken (well, maybe the hotplug part is). Put

auto eth0

in front of iface eth0... and it's all good.

Last edited by demian; 05-11-2006 at 05:58 PM.
 
Old 05-12-2006, 04:42 PM   #9
SpaceGhoti
LQ Newbie
 
Registered: Apr 2002
Location: Des Moines, IA, USA
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by demian
It's not broken (well, maybe the hotplug part is). Put

auto eth0

in front of iface eth0... and it's all good.
Nope, I'd say it's broken. I added that to the front of the iface eth0 line and while the system appeared to run smoother, it still refused to assign the static IP. I had to manually run dhclient after I got to a terminal window.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help With IP Addressing jmj99385 Slackware 2 04-27-2006 01:34 PM
Absolute addressing Glemu Programming 2 10-13-2005 02:49 PM
Problem with IP Addressing orko Linux - Networking 3 01-14-2005 03:54 PM
question for addressing tuanuhcl Linux - Networking 4 11-16-2004 10:12 PM
RedHat 9 IP Addressing TenderFoot Red Hat 7 06-28-2004 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration