Ubuntu Networking configuration

Published on by Fahim

HOWTO- Configure Network interfaces by using bash shell

You can configure a network interface from the command line using the networking utilities.
First  we need to edit /etc/apt/interfaces.so

Step1: Configure Dynamic ip adress:

#nano /etc/network/interfaces 




Then we got network interfaces file

 auto etho
 iface eth0 inet dhcp 





Step2: Configure Static ip address:

 
#nano /etc/netw ork/interfaces 




#The primary network interfaces

auto eth0
iface etho inet static
address 192.168.3.91
gateway 192.168.3.1
netmask 255.255.255.0
broadcast 192.168.3.255 









After Entering all the details you need to Restart networking services

  /etc/init.d/networking restart 




Step3: Configure DNS Server:

Manually configure your DNS configuration file and edit a following command

 #nano /etc/resolv.conf        




Open your preferred editor  

name server 192.168.3.91 (enter your dns ip)
name server 192.168.3.91 (enter your alt dns ip) 





Be sure you have save your changes.

Step4: Restart your configuration:

 /etc/init.d/network restart   




This should send result look like following command

 *Reconfigure network interfaces...[ok ]  



To be informed of the latest articles, subscribe:
Comment on this post
C
<br /> This is a nice addition to my collection of 100 best articles. I like the spirit. Will also share it with my friends and business associates. By Matt, Corporate Logo Design Critic and Article<br /> Collector, Miami, FL.<br /> <br /> <br />
Reply
F
<br /> Thanks for appreciate..<br /> <br /> <br />
C
<br /> Hey, there I am impressed the way you have gathered and articulated such information, it was a nice read and I will definitely be sharing this with others. Emma Jones, Team Lead LDC, a custom logo<br /> design company.<br /> <br /> <br />
Reply
F
<br /> Thanks for appreciate.<br /> <br /> <br />
P
<br /> Interesting work there. I think this would really be a good idea if I share it with others. By Natalie Schmidt, Professional logo designer, London.<br /> <br /> fashion logos design<br /> <br /> <br />
Reply
F
<br /> Thanks :)<br /> <br /> <br />
L
<br /> 1.Hello U there, that was good thinking. I wait for more of this stuff. By Jack Amiss, a logo design services provider.<br /> <br /> company logos design<br /> <br /> <br />
Reply
F
<br /> Thanks..! i will improve it with more best articles.<br /> <br /> <br />