IP/DNS Setup on Kubuntu - Solutions & Tips

  • Thread starter Thread starter assed
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on configuring IP/DNS settings on Kubuntu by setting the network interface to use DHCP. Users are advised to modify the /etc/network/interfaces file, specifically adding the lines "auto eth0" and "iface eth0 inet dhcp" to enable DHCP. After making these changes, it is essential to restart the network manager with the command "service network-manager restart". Additionally, users are encouraged to check with their IT department for potential network restrictions and to troubleshoot connectivity issues by testing with a Live CD.

PREREQUISITES
  • Understanding of DHCP configuration in Linux
  • Familiarity with editing files in the /etc directory
  • Basic knowledge of using the command line in Kubuntu
  • Experience with the KDE desktop environment
NEXT STEPS
  • Learn how to troubleshoot network issues in Linux using Live CD
  • Research the use of Network Manager in KDE for managing network connections
  • Explore advanced DHCP configurations for specific network environments
  • Investigate potential hardware issues affecting network connectivity
USEFUL FOR

Kubuntu users, network administrators, and anyone troubleshooting network connectivity issues on Linux systems.

assed
Messages
26
Reaction score
1
Some suggestions ot solve my problem include set the network to " Obtain IP/DNS address automatically ". I've seen that in other operational systems this setting is pretty easy to find, but I can't find a way to do it on kubuntu. Can someone tell me how its done. Thanks.
 
Computer science news on Phys.org
You need to set the interface to use DHCP. This is the default setting as far as I know.

To set an interface to use DHCP, you'll need to modify your /etc/network/interfaces
(I am assuming that eth0 is the interface that you are using. If not, you will need to change that to whatever interface you're on)

first make a copy of the file, in case we break something else

then add the following code
Code:
auto eth0
iface eth0 inet dhcp

then restart the network manager so that it uses the new settings with the following command
Code:
service network-manager restart

EDIT: Given your other post, I would also suggest that you check with the Univeristy's IT department first. There may be a specific reason why you're not able to connect to your network. They will likely be able to tell you why. Once you have that, it is a lot easier to solve.
 
Thanks for the reply.
Didn't have time to check with the IT department and as sometimes they recquire you to leave your computer there for some time with them and I am currently in need of using it I am postponing it and trying some suggestions to solve this, and using other connections when I need.
By the way, I have already tried what you suggested and when I set "eth0" (the way you recommended), I cannot connect to any wired connection. Same way, when I set "wlan0" (which I think is my wireless interface) my computer doesn't detect any wireless connection. Do you know a reason why this is happening? I find it strange because many people suggest it as if it were usual/default.
Thanks again.
 
I'd start off by trying to narrow down if the problem was hardware or a software configuration. Download a Ubuntu live CD from another system and try booting your computer from that. If you are able to use the NIC to connect to a network, then we know the problem is some configuration (works on LiveCD but not when you boot from the HDD). If it still doesn't work, then we may possibly be looking at a hardware issue.

I'd also post on the kubuntu support forums.
 
Last edited:
Greetings
Since you have the KDE desktop, you should find Network Manager in "System Settings" and it is quite intuitive to set. If by chance your version didn't include Network Manager, you can use Synaptic or your Software Manager to download and add it. On most distros "System Settings" is on the Favorites (first page) of the Kicker Menu. If not for you, look in "Settings" or "System". Sorry for so many "ifs" but there are so many possibilities depending on how you setup KDE to suit you.

Just for the record, in Unix Land (still in use in BSD and some Linux distros) most configuration scripts are routinely in "/etc/rc.d". Unfortunately many have dispensed with the easy text way in the interest of "convenience". You can check to see if yours still has such scripts but the GUI in KDE works well too.
 

Similar threads

  • · Replies 35 ·
2
Replies
35
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
2
Views
2K
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K