×

How to configure IP in linux?

How to configure IP in linux?

If you want to configure IP in linux then first af all you have to edit the network file:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Simple output:

DEVICE=”eth0″
BOOTPROTO=static
ONBOOT=yes
TYPE=”Ethernet”
IPADDR=192.168.X.X
HWADDR=00:0C:29:28:FD:4C
GATEWAY=192.168.X.X

Next, restart network services after entering all the details using the following
command.

# /etc/init.d/network restart

To restart the network service

Next, restart network services after entering all the details

# /etc/init.d/networking restart

In this way you can configure network file in linux

 

Leave a Reply

Your email address will not be published.