Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS7

40 bytes added, 16:39, 4 May 2015
no edit summary
# Restart the <code>centos3</code> VM, or just wait a few minutes.
# 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><br>[[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 configuration 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: <b><code><span style="color:#3366CC;font-size:1.2em;">ifdown eth1eth0</span></code></b> and then <b><code><span style="color:#3366CC;font-size:1.2em;">ifup eth1eth0</span></code></b>
# Verify your configuration as you did before.
# Restart the <code>'''centos3</code> ''' VM.# Login and attempt to <code>'''ssh</code> ''' to your matrix account to verify the settings.
'''Answer Part 4 observations / questions in your lab log book.'''
13,420
edits

Navigation menu