Announcement

Collapse
No announcement yet.

Internet connection

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Internet connection

    Hi everybody!

    I'm really new with kubuntu.. And I'm having many problems to get an internet connection...

    I've tryied by the normal way:
    - Go to <<edit connection>>, new connetion, and then write my manual IP configuration (just like windows)
    In this case, nothing happened, there is no connection, if I do any ping to any IP, also my gateway, the answare is: <<connect: Network is unreachable>>



    I've thinked that maybe there is some problema with my driver

    however (like i'll explain later) i discover there isn't.



    After this disaster i've tried to solve the problemes by the terminal:
    I've write <<sudo ifconfig eth0 172.16.0.8 netmask 255.255.0.0 up>> and <<sudo add default gw 172.16.0.1>>

    after that the answer of <<ifconfig eth0>> is:
    Code:
    eth0 link encap:Ethernet HWaddr 00:23:54:62:b9:__
     inet addr:172.16.0.8 Bcast:172.16.255.255 Mask:255.255.0.0
     inet6 addr: fe80::223:54ff:fe62:b926/64 Scope:Link
     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
     RX pakets:154 errors:0 dropped:582287922 overruns:0 frame:0
     TX pakets: 86 errors:0 dropped:0 overruns:0 carrier:0
     colisions:0 txqueuelen:1000
     RX bytes:15421(15,4 KB) TX bytes:133994(13.9 KB)
     Interrupt:216 Base address:0xc000
    and the answer of <<route>> is:
    Code:
    Kernel IP routing table
    Destination  Gateway    Genmask    Flags  Metric  Ref  Use  Iface
    172.16.0.0   *       255.255.0.0   U   0     0   0  eth0
    default     172.16.0.1  0.0.0.0     UG   0     0   0  eth0

    If I make a ping to my gateway (172.16.0.1) there IS answer.
    Also If I make a ping to my DNS adress there IS answer
    (so it can't be a driver problem)
    But if I make a ping to www.google.es, there is NO answer..



    So........
    ....it may be a DNS problem
    ¿How I can configure them by the terminal?

    and....
    .... when I restart my computer (kubunutu it's installed no live CD) all the ifconfig are erased...
    ¿How I can configure the net properly?



    Thanks for you attention!!

    DAVID

    #2
    Re: Internet connection

    When you use DHCP, your system automatically obtains the DNS entries it needs. When you specify a static IP, it doesn't. You have to entrer the DNS in your resolv.conf file. See my post here on how to setup your computer with a static IP.

    http://kubuntuforums.net/forums/inde...opic=3100052.0

    Comment


      #3
      Re: Internet connection

      IIRC /etc/resolv.conf will be reset after a reboot, so you will loose DNS servers (at least in 8.04 it did). If this is the case, you can add dns servers in /etc/dhcp3/dhclient.conf

      In dhclient.conf look for a line with "prepend domain-name-servers", unhash it and add dns servers (comma separated, closed by semi-colon).
      Once your problem is solved please edit the first post of your topic and add [SOLVED] in front of the subject. In that way, others can benefit from your experience!

      Comment


        #4
        Re: Internet connection

        Originally posted by JohanLingen
        IIRC /etc/resolv.conf will be reset after a reboot, so you will loose DNS servers
        If you use dhcp it will. With a static IP it shouldn't. The dhclient.conf file does not run unless using dhcp.

        Comment

        Working...
        X