Open main menu

CDOT Wiki β

Changes

OPS335 Lab 1

626 bytes added, 16:40, 12 January 2016
no edit summary
== Making Persistent (Permanent) Network Setting Changes ==
If you change your network settings using the commands in the previous section, those changes will be lost if you restart your Linux machine. In order to have your network settings become permanent, you need to edit and save the settings changes in a file.For the IP address, subnet mask, default gateway, and DNS server you edit a that file is contained in a directory called: '''/etc/sysconfig/network-scripts/'''.
You# From your 'll need 'OPS335''/''OPS235''/'''ULI101''' notes, issue a file that describes command to provide the full path-name of the settings for a directory: ''network interface. The association between a specific -scripts'' # Why do you think that previously issued command can be useful when you want to edit your exiting network interface and the configuration file is made using (from least to most important):settings?* # The name of the file (that contains your persistent network settings has the following name format: '''ifcfg-{interfacename}'''interfacename)* The "NAME" setting inside # Which filename in your network-scripts directory do you think contains your current network settings?# View the contents of the fileto see if it contains the IP ADDRESS, subnet mask, and default gateway?* The "DEVICE" setting inside # What is the MAC address if your current machine?# Does this file* The "HWADDR" setting inside contain the filehostname of your machine? If not, what command can allow you to change your machine's hostname?
To set the hostname you use the '''hostnamectl''' command.
== Set static IP addresses on vm1, vm2, and vm3 ==
13,420
edits