Network Setup in RHCE6

download Network Setup in RHCE6

of 15

Transcript of Network Setup in RHCE6

  • 8/12/2019 Network Setup in RHCE6

    1/15

    Network setup in RHCE6

    In this article we would setup a test network for RHCE exam practice. RHCE is a practical base exam. Ideally you

    can set up as much as systems you need, for example you can set up a dedicated web server, a dedicate DHCP

    server, a dedicate DNS server, a dedicate client for testing of each service.

    However that is not practical required. You can complete all exercises with four systems. You can use four physical

    systems or can use virtual machines.

    server.example.com 192.168.1.1 255.255.255.0

    linuxclient.example.com 192.168.1.10 255.255.255.0

    windowclient.example.com 192.168.1.20 255.255.255.0

    outsider.example.org 192.168.0.100 255.255.255.0

    Configure IP address and Hostname

    Configure portmap daemon Configure xinetd service

    Configure IP address and hostname

    IP address is the unique address of computer in network. Computer use IP address to communicate with other

    computers of the network. Assign above IP addresses to the associated computers.

    Configure xinetd daemon

    http://computernetworkingnotes.com/network-administration/network-setup-in-rhce6.htmlhttp://computernetworkingnotes.com/network-administration/network-setup-in-rhce6.htmlhttp://computernetworkingnotes.com/network-administration/network-setup-in-rhce6/print.htmlhttp://computernetworkingnotes.com/network-administration/network-setup-in-rhce6.html
  • 8/12/2019 Network Setup in RHCE6

    2/15

    xinetd, the eXtended InterNET Daemon, is an open-source daemon. xinetddaemon provide access control for all

    the services based on the address of the remote host. It allows you to bind the specific services to the specific IP

    address of host system. xinetddaemon process listens on all service ports for the services listed in its configuration

    file. When a request comes in, xinetdstarts the appropriate server. Each service has its own specific configuration

    file for Xinetd. These files are located in the/etc/xi netd.ddirectory.

    Configure portmap service

    portmapservice is required to map RPC(Remote Procedure Calls) requests to the correct services. In exam you

    have to configure services like NFSthat rely on RPC. NFSuses RPCto route requests between clients and servers.

    portmapservice must be enabled and active at the proper runlevels for NFScommunication to happen. portmap

    service uses TCP wrappers' hosts access files (/etc/hosts.al lowand/etc/hosts.deny) for access control.

    You will not find portmapservice in RHEL 6. You will return with following error

    portmap: unrecognized service

    To support IPv6 portmapservice is replaced by rpcbindin RHEL6. Use rpcbindinstead of portmap.

    server.example.com

    This is designated system for server. We will use static IP address for server. Server related services will be

    configured on this system. Configure IP address

    Run system-config-networkcommand

    Select Device configurationand press enter

    Select the appropriate network adaptor. In real life you may see multiple network adaptors but in exam you will get

    only one network adaptor unless you have configured additional adaptor.

  • 8/12/2019 Network Setup in RHCE6

    3/15

    Fill the IP address which we have set for this system in above table and select OKand press enter

    Select saveand press enter

    Select Save & Quitand press enter to return to command prompt

  • 8/12/2019 Network Setup in RHCE6

    4/15

    Restart the network adaptor to take the change in effect

    We have assigned IP address. Now open /etc/sysconfig-networkfile to set hostname

    Set NETWORKINGto yesand HOSTNAMEto serverand save file.

    Restart the system to take the hostname change in effect

    Check updated hostname

  • 8/12/2019 Network Setup in RHCE6

    5/15

    We have updated hostname. Now it's time to configure portmapdaemon. As I have said previouslythat portmapisreplaced with rpcbind.

    rpcbind-0.2.0-8.el6.x86_64package is required for rpcbinddaemon. Install package if it is not installed.

    check rpcbindservice is on in runlevel 3 and runlevel 5. on it if it is set to off.

    check rpcbindservice status. start if it is stop.

    Now configure the xinetdservice. xinetd-2.3.14-31.el6.x86_64RPM is required for xinetdservice. Install it if it is

    not available

    check xinetdservice is on in runlevel 3 and runlevel 5. on it if it is set to off

  • 8/12/2019 Network Setup in RHCE6

    6/15

    check service status, start it if it is stopped

    We have configured serversystem for networking.

    linuxclient.example.com

    This system will be used to verify the configuration on the server.example.comsystem.

    For example if we have configured DHCP server we should be able to receive dynamic IP address on

    linuxclient.example.comsystem.

    configuration for this system is same as we did for server.example.comsystem except the IP address and hostname.

    Run system-config-networkcommand

    Press enter on Device configuration

    select network adaptor

  • 8/12/2019 Network Setup in RHCE6

    7/15

    Assign the IP address and return back to command prompt

    Restart the network adaptor to take the new IP address in effect

    Open hostname configuration file

    Change HOSTNAMEto linuxclientand save the file

  • 8/12/2019 Network Setup in RHCE6

    8/15

    restart the system

    check updated hostname

    Check rpcbindrpm and service

    Check xinetdrpm and service

    When you finished with configuration check connectivity with server.example.com

  • 8/12/2019 Network Setup in RHCE6

    9/15

    outsider.example.org

    outsider system is essentially a random system from an external network . During the exam you need to configure

    security on server. Appropriate security settings means that some services on server.example.commachine would

    not be accessible to outsider system.

    configuration for this system is same as we did for server.example.comsystem except the IP address and hostname.

    Run system-config-networkcommand

    Select Device configurationand press enter

    select network adaptor

  • 8/12/2019 Network Setup in RHCE6

    10/15

    Assign the IP address and return back to command prompt

    Restart the network adaptor to take the new IP address in effect

    #ifdown eth1

    #ifup eth1

    Open hostname configuration file

    Change HOSTNAMEto outsiderand save the file

    restart the system and check the updated hostname

  • 8/12/2019 Network Setup in RHCE6

    11/15

    Check rpcbindrpm and service

    Check xinetdrpm and service

    windowclient.example.com

    Finally we will configure a window client for our network. Although it is not required to configure window client

    but if you have additional system you should. It would give us additional system for testing.

    Click on network icon and Click on open network sharing and center

  • 8/12/2019 Network Setup in RHCE6

    12/15

    click onchange adaptor setting

    select the network adaptor and do right click. click on propertiesfrom opened dialog box

    select Internet protocol version (TCP/IPv4)and click on properties

  • 8/12/2019 Network Setup in RHCE6

    13/15

    set the IP address and click on apply

    To change computer name click on stat, right click on computerand click on properties

    click on change setting

    click on change

  • 8/12/2019 Network Setup in RHCE6

    14/15

    assign new name windowclinetand change workgroup to MSHOME

    restart is required. Click on ok to restart the computer

    After restart open command prompt and check IP address and hostname

  • 8/12/2019 Network Setup in RHCE6

    15/15

    check connectivity with server.example.com

    In this article we have setup network for RHCE practice in LAB environment. To setup this lab on Vmware watch

    following video.