Find the answer to your Linux question:
Results 1 to 4 of 4
Good Day. I am currently busy with my RHCE and i am trying to set up the same situation like in the class room. What i need to know is ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25

    Smile Connectiong two PCS together in centos 5.2

    Good Day.

    I am currently busy with my RHCE and i am trying to set up the same situation like in the class room.

    What i need to know is the following:

    I have two laptops one with a complete install of centos 5.2 the other is running xp and virtual machine with a setup of centos 5.2.

    i have a cross over cable that is connecting the two how do i setup a network
    i am new to this so i need some step by step help please....

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    On the settings menu is a network tool. Use that to set an IP address for each machine, and put both the IP addresses into the hosts tab. As it's a closed network, you dont have to worry about what numbers you pick, but 10.0.0.1 and 10.0.0.2 is easy to type... Set the network masks to 255.255.255.0 and you'll be off and running.

    That's pretty much it. You should be able to ping one from the other then.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25
    Thank you very much for your help its a great help...

  4. #4
    Just Joined!
    Join Date
    Jan 2009
    Posts
    25
    Hi i finally managed to get the output please have a look thanks.
    _________


    [root@fnb-22bdcde5839 etc]# cd yum.repos
    -bash: cd: yum.repos: No such file or directory
    [root@fnb-22bdcde5839 etc]# cd yum.repos.d
    [root@fnb-22bdcde5839 yum.repos.d]# ls
    CentOS-Base.repo CentOS-Media.repo
    [root@fnb-22bdcde5839 yum.repos.d]# cat CentOS-Base.repo
    # CentOS-Base.repo
    #
    # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client. You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    #
    #

    [base]
    name=CentOS-5 - Base
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
    #baseurl=http://mirror.centos.org/centos/5/os/i386/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #released updates
    [updates]
    name=CentOS-5 - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
    #baseurl=http://mirror.centos.org/centos/5/updates/i386/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #packages used/produced in the build but not released
    [addons]
    name=CentOS-5 - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons
    #baseurl=http://mirror.centos.org/centos/5/addons/i386/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #additional packages that may be useful
    [extras]
    name=CentOS-5 - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras
    #baseurl=http://mirror.centos.org/centos/5/extras/i386/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-5 - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/5/centosplus/i386/
    gpgcheck=1
    enabled=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    [root@fnb-22bdcde5839 yum.repos.d]#
    __________________________________________________ ________________
    [root@fnb-22bdcde5839 yum.repos.d]# cat CentOS-Media.repo
    # CentOS-Media.repo
    #
    # This repo is used to mount the default locations for a CDROM / DVD on
    # CentOS-5. You can use this repo and yum to install items directly off the
    # DVD ISO that we release.
    #
    # To use this repo, put in your DVD and use it with the other repos too:
    # yum --enablerepo=c5-media [command]
    #
    # or for ONLY the media repo, do this:
    #
    # yum --disablerepo=\* --enablerepo=c5-media [command]

    [c5-media]
    name=CentOS-5 - Media
    baseurl=file:///media/CentOS/
    file:///media/cdrom/
    file:///media/cdrecorder/
    gpgcheck=1
    enabled=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
    [root@fnb-22bdcde5839 yum.repos.d]#

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...