Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS6

388 bytes removed, 16:52, 12 January 2014
Investigation 4: How do I configure the network without a GUI tool?
=== Investigation 4: How do I configure the network without a GUI tool? ===
{{Admon/note | Use fedora3 | Complete this investigation on your fedora3 VM.}}
# Start '''fedora3centos3''' VM and login as root
# Use the command <code>ifconfig</code> to list active interfaces, you should see one with a name of <code>eth0</code> or a similar name.
# To configure your card with a static address use the following command:
#* <code>ping</code> your other VM's and fedora host.
#* <code>ssh</code> to your matrix account to test DNS
# Restart the <code>fedora3centos3</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 <code>/etc/sysconfig/network-scripts</code> directory on <code>fedora3</code>
#* List the contents of the directory and you should see 2 different types of files, network config scripts and network configuration files.
#* look Look for the config file for your original interface, it should be named <code>ifcfg-eth0</code>#* Copy that Make a backup of this file to <code>ifcfg-eth<b>N</b></code> where <b>N</b> relates to your current eth interface number (we will use <b>eth1</b> as an example)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="eth1eth0" <-- '''or the interface name YOU have '''
#**IPADDR="192.168.235.13"
#**NETMASK="255.255.255.0"
#**GATEWAY="192.168.235.1"
#**HWADDR="52:54:00:3f:5c:fa" <-- '''use the HWADDR MAC address for YOUR interface
#**DNS1="192.168.235.1" '''
#**BOOTPROTO="static"
#**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><br /><br ><b>NOTE: </b>If there are errors, check that the hardware address in the config file matches the hardware address of the device its configuring<br /><br />
# Verify your configuration as you did before.
# Finally the kickstart file used to install this VM did not set the hostname. Edit the file <code>/etc/sysconfig/network</code> and set the hostname to <code>fedora3</code># Restart the <code>fedora3centos3</code> VM.
# Login and attempt to <code>ssh</code> to your matrix account to verify the settings.

Navigation menu