Find the answer to your Linux question:
Results 1 to 2 of 2
I hv just install the ES 3 RH system , I hv modified the below file , but I still can't ping my IP 192.168.0.1 , I can only ping ...
  1. #1
    ust
    ust is offline
    Just Joined!
    Join Date
    Feb 2005
    Posts
    77

    can't ping my IP address

    I hv just install the ES 3 RH system , I hv modified the below file , but I still can't ping my IP 192.168.0.1 , I can only ping localhost , even reboot , it still not work , could suggest what is wrong in my system ? thx


    #vi /etc/sysconfig/network-scripts/ifcfg-eth0

    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=static
    IPADDR=192.168.0.1
    NETMASK=255.255.255.0
    GATEWAY=192.168.0.2

    I use ifconfig to check that , only the bwlow was shown , is it the network card still not setup or not started ? I can only ping 127.0.0.1 . thx a lot

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:20944033 errors:0 dropped:0 overruns:0 frame:0
    TX packets:20944033 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1075938067 (1026.0 Mb) TX bytes:1075938067 (1026.0 Mb)

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Why are you using a static ip?
    It looks like you are getting your ip address from the router. 192.168 addresses are not routable ip addresses.
    That is the address that your router gives you.
    Try switching to a dynamic ip and the ipaddr, netmask and gateway should be left blank.

    Try that, I hope this helps.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

Posting Permissions

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