Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS7

16 bytes added, 16:35, 4 May 2015
no edit summary
# Login and test your configuration again. What happened?
# While we can configure network settings from the command line those settings are not persistent. To configure persistent network configurations we need to edit the configuration files:
#:* Change to the '''/etc/sysconfig/network-scripts''' directory on <code></code>
[[Image:new-network-config.png|thumb|300px|right|This diagram should show the newer network configuration of your '''c7host''' machine in relation to your '''Virtual Machines'''.]]
#:* List the contents of the directory and you should see 2 different types of files, network config scripts and network configuration files.#:* Look for the config file for your original interface, it should be named <code>ifcfg-eth0</code>#:* Make a backup of this file for later reference.#:* Edit the new file for you interface and give it the following settings (or create a brand new file, might be easier than editing the old one):#:::DEVICE="eth0"#:::IPADDR="192.168.235.13"#:::NETMASK="255.255.255.0"#:::GATEWAY="192.168.235.1"#:::HWADDR="52:54:00:3f:5c:fa" <-- '''use the MAC address for YOUR interface
#::DNS1="192.168.235.1" '''
#:::BOOTPROTO="static"#:::ONBOOT="yes"#:::NM_CONTROLLED="yes"#:::IPV6INIT="no"
# Save the file and then restart the network connection by issuing the commands: <code>ifdown eth1</code> and then <code>ifup eth1</code>
# Verify your configuration as you did before.
13,420
edits

Navigation menu