Configuring Wired LAN(internet) on Ubuntu

Hi,

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)

Step 2:
-> 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 192.125.1.10
gateway 192.125.1.2
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 🙂


Thanks,
R Vashi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s