Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
10 views1 page

Linux Server Deployment Cooked Book

Uploaded by

ak19.alamgir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Linux Server Deployment Cooked Book

Uploaded by

ak19.alamgir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Linux Server Deployment Cooked Book

Setting a static IP address


Open the Ethernet device's configuration file, found under /etc/ sysconfig/network-
scripts,with your text editor:
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
Change the value of BOOTPROTO to none:
BOOTPROTO="none"
At the end of the file, add the IPADDR, NETMASK, and BROADCAST entries to set the desired IP
address. Assign them values that properly reflect your network:
IPADDR="192.168.56.100"
NETMASK="255.255.255.0"
BROADCAST="192.168.56.255"

Open the /etc/sysconfig/network file using your editor:


vi /etc/sysconfig/network

Add a GATEWAY entry to identify your network's gateway:


GATEWAY="192.168.56.1"

Restart the networking service for the configuration changes to take effect:
systemctl restart network.service

Binding multiple addresses to a single Ethernet device

You might also like