Good afternoon,
I'm trying to get GCC installed on a CentOS 5.2 system, and I've been sent from UNIX/Linux forum to network engineering forum "https://networkengineering.stackexchange.com/questions/26048/centos-5-2-set-up-ip-network" to this one, I really hope that somebody can help me :-)

One way of getting this done, is to get my network working, and so I could launch an automatic script for configuring/compiling/installing GCC, so my question gets down to the network part: (see hereby my previous post)

As explained in this other StackExchange post "https://unix.stackexchange.com/questions/256093/how-to-install-gcc-4-7-2-on-centos-5-2", I would like to install a GCC version on a CentOS 5.2 virtual machine.
There are two advises in this post:

  • Upgrade to a more recent version of CentOS
  • Launch a command which will connect to the internet and do the modifications automatically.

    As the first advise can't be followed, I would like to discuss the second advise, and see what I need to do in order to setup a network connection on my virtual CentOS machine.

    At this moment, my situation is the following:
    On my PC:

    Windows IP Configuration
       Connection-specific DNS Suffix  . : <mycompany>.com
       Link-local IPv6 Address . . . . . : fe80::5c75:960e:db38:8f39%11
       IPv4 Address. . . . . . . . . . . :
       Subnet Mask . . . . . . . . . . . :
       Default Gateway . . . . . . . . . :
    Ethernet adapter VMware Network Adapter VMnet1:
       Connection-specific DNS Suffix  . :
       Link-local IPv6 Address . . . . . : fe80::30fe:4197:b189:5516%26
       IPv4 Address. . . . . . . . . . . :
       Subnet Mask . . . . . . . . . . . :
       Default Gateway . . . . . . . . . :

    In my VMWare settings: VMWare network adaptor settings

    In my virtual machine (CentOS 5.2): (small remark, bepc153 is the name of my PC): Virtual machine network configuration

    (in order to be complete, I also add here the contents of the most important network related files):

    root@dbserv1 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
    [root@dbserv1 network-scripts]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    ::1     localhost.localdomain   localhost dbserv1.orbotech.org    dbserv1   bepc153 bepc153
    [root@dbserv1 network-scripts]# cat /etc/resolv.conf
    ; generated by /sbin/dhclient-script
    search localdomain

    As you can see, it's the intention to use my PC (bepc153) as a gateway for my virtual machine to enable network settings and so, to go on the internet.

    However, when I try to start up the network service, I get following message:

    root@dbserv1 network-scripts]# /etc/init.d/network restart
    Shutting down interface eth0:                              [  OK  ]
    Shutting down loopback interface:                          [  OK  ]
    Bringing up loopback interface:                            [  OK  ]
    Bringing up interface eth0:  RTNETLINK answers: Invalid argument
                                                           [  OK  ]

    And the network seems not to work either:
    From the VMWare machine:

    [root@dbserv1 network-scripts]# ping
    PING ( 56(84) bytes of data.
    From icmp_seq=2 Destination Host Unreachable
    From icmp_seq=3 Destination Host Unreachable
    From icmp_seq=4 Destination Host Unreachable

    From my PC (Windows 7):

    Pinging with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.

    Does anybody have a clue? In case this is the wrong forum for virtual machine related questions, please let me know.
    Thanks in advance

    Your Answer

    By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

    Browse other questions tagged or ask your own question.