Find the answer to your Linux question:
Results 1 to 2 of 2
After doing the following procedures, I still unable to connect to the Internet. However, I can ping my modem, but not google.com or any other websites. Pls help. Thanks. slax ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    7

    Question Linux Backtrack Internet Problem (After Doing the Following Procedures)


    After doing the following procedures, I still unable to connect to the Internet. However, I can ping my modem, but not google.com or any other websites. Pls help. Thanks.


    slax ~ # ifconfig eth0 up
    slax ~ # dhcpcd
    **** dhcpcd: already running
    **** dhcpcd: if not then delete /etc/dhcpc/dhcpcd-eth0.pid file
    slax ~ # ifconfig eth0 up
    slax ~ # ping 192.168.1.1 (This is my default gateway / modem address)
    PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
    64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=3.64ms
    ...
    ...
    (ping successful)

    slax ~ # ping google.com
    ping: unknown host google.com

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Posts
    38
    In some cases when using dhcp it is necessary to enter your IP provider's DNS address in /etc/resolv.conf
    It may be that dhcpcd is assigning your router/modem address as the DNS, in which case it may be impossible to access the internet.

    Just add the following lines to /etc/resolv.conf

    nameserver xxx.xxx.xxx.xxx
    nameserver xxx.xxx.xxx.xxx

    xxx. etc replace with the appropriate values for your providers DNS, primary and secondary.
    In most cases you can delete any address assigned by dhcpcd in resolv.conf.

    Hope it works for you.

Posting Permissions

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