Ubuntu Server Ethernet Connected to LAN - Can't Connect to Internet

Please Note: The TotalFreedom Forum has now been put into a read-only mode. Total Freedom has now closed down and will not be returning in any way, shape or form. It has been a pleasure to lead this community and I wish you all the best for your futures.
  • I'm running Ubuntu Server 16.04 (32 bit) on an old dell dimension 4600 desktop tower PC. Whilst connected to Ethernet, I am able to ping the router and all other devices on my network. I am not able to ping public world wide websites (ex. Google.com). I booted into another Linux desktop distro and verified that I am able to connect to sites there, just not on the server

    im p new to linux - if there is any more information required i'll update the thread. Thanks!

    ifconfig:

    enp1s8 Link encap:Ethernet HWaddr 00:11:11:39:fd:2b
    inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::211:11ff:fe39:fd2b/64 Scope:Link
    inet6 addr: 2603:8080:aa00:1aac:211:11ff:fe39:fd2b/64 Scope:Global
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:2346 errors:0 dropped:3 overruns:0 frame:0
    TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:151848 (151.8 KB) TX bytes:9138 (9.1 KB)

    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:65536 Metric:1
    RX packets:6583 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6583 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1
    RX bytes:487680 (487.6 KB) TX bytes:487680 (487.6 KB)

    /etc/network/interfaces file:

    auto lo
    iface lo inet loopback

    auto enp1s8
    iface enp1s8 inet static
    address 192.168.1.16
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1

    sudo lshw -c network:

    *-network
    description: Ethernet interface
    product: 82562EZ 10/100 Ethernet Controller
    vendor: Intel Corporation
    physical id: 8
    bus info: pci@0000:01:08.0
    logical name: enp1s8
    version: 02
    serial: 00:11:11:39:fd:2b
    size: 100Mbit/s
    capacity: 100Mbit/s
    width: 32 bits
    clock: 33MHz
    capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
    configuration: autonegotiation=on broadcast=yes driver=e100 driverversion=3.5.24-k2-NAPI duplex=full ip=192.168.1.16 latency=64 link=yes maxlatency=56 mingnt=8 multicast=yes port=MII speed=100Mbit/s
    resources: irq:20 memory:feaef000-feaeffff ioport:df40(size=64)

  • make sure that, that internal address isn't already assigned to another device (assuming you're using DHCP) -- ive had issues with my servers being assigned address that had already been taken, so try changing it/setting a static IP

    1gaah.png

  • wild1145 November 2, 2022 at 6:35 PM

    Selected a post as the best answer.