In this lab, you will edit network configuration files.
Outcomes
An additional network address added to each system.
Reset your serverX and desktopX systems.
As the root user, edit the /etc/sysconfig/network-scripts/ifcfg-eth0 on serverX to add an additional address of 10.0..
X.1/24
Append an entry to the file to specify the IPv4 address.
[root@serverX ~]#echo "IPADDR1=10.0.X.1" >> /etc/sysconfig/network-scripts/ifcfg-eth0
Append an entry to the file to specify the network prefix.
[root@serverX ~]#echo "PREFIX1=24" >> /etc/sysconfig/network-scripts/ifcfg-eth0
Activate the new address.
Reload the configuration changes.
[root@serverX ~]#nmcli con reload
Restart the connection with the new settings.
[root@serverX ~]#nmcli con up "System eth0"
As the root user, edit the /etc/sysconfig/network-scripts/ifcfg-eth0 on desktopX to add an additional address of 10.0. and load the new configuration.
X.2/24
Modify the file to add the IPv4 and network prefix.
[root@desktopX ~]#echo "IPADDR1=10.0.X.2" >> /etc/sysconfig/network-scripts/ifcfg-eth0[root@desktopX ~]#echo "PREFIX1=24" >> /etc/sysconfig/network-scripts/ifcfg-eth0
Reload the configuration changes.
[root@desktopX ~]#nmcli con reload
Bring up the connection with the new settings.
[root@desktopX ~]#nmcli con up "System eth0"
Test the connectivity using the new network addresses.
On serverX, verify the IP address.
[root@serverX ~]#ip addr
On serverX, ping the new address of desktopX.
[root@serverX ~]#ping 10.0.X.2
On desktopX, verify the IP address.
[root@desktopX ~]#ip addr
On desktopX, ping the new address of serverX.
[root@desktopX ~]#ping 10.0.X.1