To temporarily set the ip address below is the command
to install ifconfig if not already available
yum install net-tools
ifconfig ens192 <ip_address>/<subnet_mask>
ifconfig enp0s3 192.168.178.32/24
ifconfig enp0s3 192.168.178.32 netmask 255.255.255.0
For permanently setting it, below to be followed
ls -l /etc/sysconfig/network-scripts
references:
https://devconnected.com/how-to-change-ip-address-on-linux/
No comments:
Post a Comment