How to configure the IP Address, Gateway, Netmask, Network, Broadcast and DNS on Ubuntu
(Note: For this event you may need an internet connection, in case of need to install or download available updates on your Ubuntu OS.)
Here’s the Steps / Instructions on How to configure the IP Address and DNS Network on Ubuntu
(Note: For GNOME GUI (Tested on Ubuntu 10.04 LTS – Ubuntu 11.04), I’m not certain on other GUI Environment such as Unity, :D, you may try if you want, to see the results.)
1. Logon to your account then at your Desktop go to Applications then to Accessories then click Terminal.
This will launch Terminal.
2. Then go to Places then click to Computer.
Then at Computer, click on File System, then find the folder etc and double-click it to get inside the folder. Then locate network folder, and double-click it.
Then at network folder, locate interfaces file.(This is were your TCP/IP configuration exists.)
3. Grab the interfaces file by Hold the left-click button mouse, then drag it to the terminal, it will show the path of your interfaces file.
At terminal, add a command sudo gedit at the beginning of the path of your interfaces file.
As the example picture below, (sudo gedit ‘/etc/network/interfaces’)
(Note: It will ask for a administration password, or your own account password, type it and press Enter.)
Then the gedit with interfaces file appears.
4. The interfaces file contains information of your tcp/ip configuration, such as ip address, gateway, netmask, network, broadcast…
(Note: By manually configuration, I am aware that you have any knowledge on tcp/ip properties. ^_^) See the example picture below.
5. After the configuration, save to gedit interfaces file, click File then click Save. Then exit geditinterfaces file. Do not not yet quit or exit the terminal.
6. At terminal, type sudo /etc/init.d/networking restart (See the picture below).
7. Then locate the file resolv.conf (located at etc folder), then Hold the left-click button mouse, then drag it to the terminal, it will show the path of your resolv.conf file.
Add a command sudo gedit at the beginning of the path of your resolv.conf file. As the example picture below, (sudo gedit ‘/etc/resolv.conf’)
You can now set your own nameserver or DNS (Primary DNS and Secondary DNS). See the example picture below.
After the configuration, save to gedit resolv.conf file, click File then click Save. Then exit gedit resolv.conf file.
8. You can also set up hostname or computer name at the file hostname or hosts. (See for yourself about this, try to explore on your own.) 😀
And that’s it. You may restart your computer for more effectivity of the new configuration.
Welcome to Ubuntu World! 😀
(Disclosure: Ubuntu OS, Applications/Logo/Images/Pictures mention above have a respective copyright. We used it for demonstration purpose only.)
If something in your mind to comment or suggest, please let us know. In our efforts to provide detailed information, there is possibility of inaccurate contents. If you see any mistake or incomplete in our information, please don’t hesitate to tell us. We will fix it immediately as soon as possible.
Related Links / Articles / Entries / References / Sources:
How to Install Ubuntu 10.04 LTS or Ubuntu 11.04 on Desktop or Laptop by Jcyberinux
How to Install Application using Ubuntu Software Centre
How to Install or Activate Graphic Card Driver using Ubuntu Hardware Drivers
How to Install Software Packages using Synaptic Package Manager
Ubuntu Official Site
Download Ubuntu Official Site