In this post I will explain the ways we can configure Wired LAN connection on Ubuntu. While configuring any network resource we always need the IP Address to connect to the Domain/Network System. And this IP Address we configure either manually or using DHCP option(DHCP – the Dynamic Host Configuration Protocol – allows network devices to automatically obtain a valid IP address from a server.). There are many networking utilities we can use to configure the network, Now let see Network Interface configuration Using Command-Line.
Step 1: Go to Terminal and Type the below command.
gksudo gedit /etc/network/interfaces (if you have GUI) OR sudo vi /etc/network/interfaces (use vi if no GUI installed)
-> Change to set if using DHCP
auto eth0 iface eth0 inet manually TO auto eth0 iface eth0 inet dhcp
-> Change to set if using Static IP
auto eth0 iface eth0 inet static address 126.96.36.199 gateway 188.8.131.52 netmask 255.255.255.0
Step 3: Save the file.
Step 4: After you save the file, Its time to restart networking services.
sudo /etc/init.d/networking restart
Now go to Administration -> System Monitor and click on the Resources Tab and observe the Network History to see the Network connection graph.
Yepeee.. you are now connected 🙂