All of the devices used in this document started with a cleared (default) configuration. The information presented in this document was created from devices in a specific lab environment. This document is not restricted to specific software and hardware versions. There are no specific requirements for this document. Subnet 172.16.1.0 netmask document guides you through the process of selecting the right serial cables for your network. # systemctl enable dhcpd //set it to run on startup # systemctl start dhcpd //the dhcpd service should fail because it has not been configured yet Install and configure a DHCP server – 2ptsġ. Take a screenshot of your Apache web server homepage from the Web Browser Using your hsot computer (not CentOS7) open a web browser, and browse to your CentOS7 web server’s enp0s3 ip addressĤ. You will need to shutdown the nftables firewall in order to reach the Apache webserverģ. In this lab we will use the older iptables instead of the newer nftables(firewalld). ![]() # systemctl enable httpd //set it to run on startupĢ. # systemctl start httpd //start the apache web server # yum install httpd //install apache web server Install Apache Webserver and reach it from your Windows computer – 2ptsġ. Take a screenshot showing your active enp0s3 and enp0s8 interfaces. HWADDR= //see network adapter advanced settingsĩ. # nano /etc/sysconfig/network-scripts/ifcfg-enp0s8 # cp /etc/sysconfig/network-scripts/ifcfg-enp0s3 /etc/sysconfig/network-scripts/ifcfg-enp0s8 Copy ifcfg-enp0s3 to ifcfg-enp0s8 to create a configuration file for enp0s8: – if enp0s8 still doesn’t show up, then go to step 7 anyway and try and force it to see it.ħ. – deactivate the network adapter 2 and then re-enable it. – if enp0s8 doesn’t show up, then shutdown CentOS, go back to virtual machine settings Start Centos7 and check to see if CentOS7 recognizes the new network adapter: – Settings: select Network > select Adapter 2:Ħ. Now that eth0 is working and you are connected online it is time to shutdown your systemĪnd install a second network interface card. Once you are online install the following tools:ĥ. NM_CONTROLLED=no //**this is the only line we need to addĤ. HWADDR= //adding this is optional, see network adapter advanced settings in Virtualbox for the virtual NIC mac address – make sure the configuration has the following items you do not need to delete any other items: – to save press “esc”, then type a “:”, then “wq” to write quit ![]() Next, you will manually edit/configure the ifcfg-enp0s3 network adapter configuration file: # ip addr //have you picked up an ip address from the network DHCP server? If not, try:ģ. Starting with CentOS-7 minimal install and virtual machine network interface in bridged modeĢ. Login to CentOS7 as root and take a screenshot logged into your CentOS7 Virtual Machine (save screenshot)Īdd and Configure 2 Network Adapters – 2ptsġ. Install CentOS-7.5 (the latest version)Į. Click finish and then Start which will boot the virtual machine to the iso image file. – Choose Settings: set the network adapter to bridged modeĬ. – Choose Settings: set the CD-ROM to boot directly from the CentOS-7 iso image file, – Settings: Linux, RedHat 64 bit, Disk Size minimum 12Gb, Memory 1 to 2Gb Using Virtualbox create a new virtual machine: Choose “I will install the operating system later.” Use the CentOS7 minimal install x86_64 iso image file. The idea for this lab was taken from my Winter 2015 Final Exam, it is a great project that I know you will love. Linux can be a server, a gateway router, a proxy, a transparent bridge you name it, and using virtualization I have the flexibility to test things from my laptop workstation. From a networker’s perspective there is so much you can do with Linux, so many servers and free tools to play with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |