Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: No network connection after boot

  1. #1
    Join Date
    Nov 2010
    Beans
    23

    No network connection after boot

    I recently installed Ubuntu Server 10.10. Establishing a network connection during the installation process was problematic, it took me a few attempts to get it working (not that I actually did anything other than retrying). However, now when I boot the server it does not have a network connection. ifconfig says that eth0 is configured, but it doesn't get an IP. So I have to do
    Code:
    sudo ifdown eth0
    sudo ifup eth0 192.168.1.103
    And it would work. But the same problem will occur when I reboot.

    Yes, the router is configured to give this server a static IP. But I've changed /etc/network/interfaces to reflect this. This is my /etc/network/interfaces file:
    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    #auto eth0
    #iface eth0 inet dhcp
    auto eth0
    iface eth0 inet static
    address 192.168.1.103
    netmask 255.255.255.0
    gateway 192.168.1.1
    ifconfig output (after doing ifdown/ifup):
    Code:
    eth0      Link encap:Ethernet  HWaddr 00:24:8c:26:e2:74  
              inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::224:8cff:fe26:e274/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:322 errors:0 dropped:0 overruns:0 frame:0
              TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:30644 (30.6 KB)  TX bytes:85687 (85.6 KB)
              Interrupt:28 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:7 errors:0 dropped:0 overruns:0 frame:0
              TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:612 (612.0 B)  TX bytes:612 (612.0 B)

  2. #2
    Join Date
    Nov 2010
    Beans
    23

    Re: No network connection after boot

    I tried adding broadcast 192.168.1.255 in the interfaces file, still have the same problem

  3. #3
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: No network connection after boot

    Can you post your ouput of resolv.conf file

    Code:
    cat /etc/resolv.conf

  4. #4
    Join Date
    Nov 2010
    Beans
    23

    Re: No network connection after boot

    Code:
    cat /etc/resolv.conf
    nameserver 192.168.1.1

  5. #5
    Join Date
    Nov 2010
    Beans
    23

    Re: No network connection after boot

    I dont know if this is useful:
    Code:
    dmesg | grep eth0
    [    1.404535] eth0: RTL8168c/8111c at 0xffffc90000340000, 00:24:8c:26:e2:74, XID 1c4000c0 IRQ 28
    [    4.187061] r8169: eth0: link down
    [    4.187068] r8169: eth0: link down
    [    4.187335] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   37.175121] r8169: eth0: link down
    [   37.175357] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   40.608402] r8169: eth0: link up
    [   40.608701] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   50.840029] eth0: no IPv6 routers present

  6. #6
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: No network connection after boot

    You should give your DNS server address in resolv.conf file..For your reference see my resolv.conf file

    Code:
    karthick@Ubuntu-desktop:~$ cat /etc/resolv.conf
    # Generated by NetworkManager
    nameserver 218.248.255.139
    nameserver 218.248.255.146
    DNS server address will be different for you.So ask your ISP to know DNS address.

  7. #7
    Join Date
    Nov 2010
    Beans
    23

    Re: No network connection after boot

    Quote Originally Posted by karthick87 View Post
    You should give your DNS server address in resolv.conf file..For your reference see my resolv.conf file

    Code:
    karthick@Ubuntu-desktop:~$ cat /etc/resolv.conf
    # Generated by NetworkManager
    nameserver 218.248.255.139
    nameserver 218.248.255.146
    DNS server address will be different for you.So ask your ISP to know DNS address.
    I dont really see what DNS has to do with this. The router (192.168.1.1) will redirect DNS queries to my ISPs nameservers (or nameservers defined by me).

    My desktop computer have the exact same resolv.conf file as this server, and it works.

    The problem is that the server dont seem to connect to the network until I do ifdown/ifup manually.

  8. #8
    Join Date
    Nov 2010
    Beans
    23

    Re: No network connection after boot

    Well I tried changing nameservers anyway, it didn't work.

  9. #9
    Join Date
    Nov 2010
    Beans
    23

    Re: No network connection after boot

    I just noticed that with the configuration I have in /etc/network/interfaces (see above) I don't need to do
    Code:
    ifdown eth0
    ifup eth0 192.168.1.103
    It's enough to just do
    Code:
    ifdown eth0
    ifup eth0
    So I suspect its not my configuration that is the problem (most of it is default from the installation anyway).

    Perhaps a temporary solution would be to run a script each time the system boots which would automate this? However thats done?

    Still have the original problem.

  10. #10
    Join Date
    Nov 2010
    Beans
    23

    Re: No network connection after boot

    bump

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

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