Quantcast
Channel: EZ Linux Admin » Linux Drivers
Viewing all articles
Browse latest Browse all 4

Manually changing an IP in Linux

$
0
0

It’s pretty easy actually.

Just go to this directory:

/etc/sysconfig/network-scripts

Then you will see a file for eachnetwork port, for example my server is:

ifcfg-eth0

and

ifcfg-eth1

I already have the ifcfg-eth0 set up from the install but I want to use the second one for back ups so I just opened the file and added the IP to it. Then I made sure the rest of the setting smatched the first one other then the:

HWADDR=

That line is specific to the network port.

So that is how you configure a eth0 or eth1 port.

 


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images