본문 바로가기

IT/Server

[Ubuntu] Unclaimed state of Network interface enp2s0

반응형
keunuk@keunuk:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2  wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 90:2e:1c:42:0a:c2 brd ff:ff:ff:ff:ff:ff
    inet 172.20.10.8/28 metric 600 brd 172.20.10.15 scope global dynamic wlp1s0
       valid_lft 3472sec preferred_lft 3472sec
    inet6 2001:2d8:2182:32b6:922e:1cff:fe42:ac2/64 scope global mngtmpaddr noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::922e:1cff:fe42:ac2/64 scope link
       valid_lft forever preferred_lft forever

 

First of all, We have to check what server has interface

keunuk@keunuk:/var/log/apt$ sudo lshw -C network
  *-network
       description: Wireless interface
       product: Wireless 7260
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: bb
       serial: 90:2e:1c:42:0a:c2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=6.8.0-41-generic firmware=17.3216344376.0 7260-17.ucode ip=172.20.10.8 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:133 memory:80900000-80901fff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 2b
       serial: 00:e0:4c:6d:ca:83
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.052.01-NAPI duplex=full ip=10.17.52.101 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:17 ioport:3000(size=256) memory:80804000-80804fff memory:80800000-80803fff

 

 

Maybe. I would say my server doesn't have right driver. So I will install right Driver on Server. 

First of all, Server can not connect internet through wire network. so i will Configure of Wifi in Ubuntu

sudo vi /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    version: 2
    wifis:
      wlp1s0:
        dhcp4: true
        access-points:
          "SSID":
            password: "password"
    ethernets:
      enp2s0:
        dhcp4: false
        addresses:
          - 10.17.52.101/24
        gateway4: 10.17.52.1



Apply below command after above configure

keunuk@keunuk:~$ sudo netplan apply
 

 

 

sudo apt install r8168-dkms dkms build-essential

Start-Date: 2024-11-12  03:49:57
Commandline: apt install r8168-dkms dkms build-essential
Requested-By: keunuk (1000)
Install: libgcc-13-dev:amd64 (13.2.0-23ubuntu4, automatic), libstdc++-13-dev:amd64 (13.2.0-23ubuntu4, automatic), libalgorithm-merge-perl:amd64 (0.08-5, automatic), libgomp1:amd64 (14-20240412-0ubuntu1, automatic), g++-13:amd64 (13.2.0-23ubuntu4, automatic), gcc-13:amd64 (13.2.0-23ubuntu4, automatic), build-essential:amd64 (12.10ubuntu1), libctf-nobfd0:amd64 (2.42-4ubuntu2, automatic), gcc-x86-64-linux-gnu:amd64 (4:13.2.0-7ubuntu1, automatic), libtsan2:amd64 (14-20240412-0ubuntu1, automatic), cpp:amd64 (4:13.2.0-7ubuntu1, automatic), g++:amd64 (4:13.2.0-7ubuntu1, automatic), gcc:amd64 (4:13.2.0-7ubuntu1, automatic), libhwasan0:amd64 (14-20240412-0ubuntu1, automatic), libalgorithm-diff-perl:amd64 (1.201-1, automatic), libbinutils:amd64 (2.42-4ubuntu2, automatic), libfakeroot:amd64 (1.33-1, automatic), cpp-x86-64-linux-gnu:amd64 (4:13.2.0-7ubuntu1, automatic), binutils-x86-64-linux-gnu:amd64 (2.42-4ubuntu2, automatic), bzip2:amd64 (1.0.8-5.1build0.1, automatic), g++-x86-64-linux-gnu:amd64 (4:13.2.0-7ubuntu1, automatic), libcc1-0:amd64 (14-20240412-0ubuntu1, automatic), cpp-13-x86-64-linux-gnu:amd64 (13.2.0-23ubuntu4, automatic), libmpc3:amd64 (1.3.1-1build1, automatic), libfile-fcntllock-perl:amd64 (0.22-4ubuntu5, automatic), dpkg-dev:amd64 (1.22.6ubuntu6.1, automatic), libasan8:amd64 (14-20240412-0ubuntu1, automatic), make:amd64 (4.3-4.1build2, automatic), libctf0:amd64 (2.42-4ubuntu2, automatic), lto-disabled-list:amd64 (47, automatic), cpp-13:amd64 (13.2.0-23ubuntu4, automatic), binutils-common:amd64 (2.42-4ubuntu2, automatic), libitm1:amd64 (14-20240412-0ubuntu1, automatic), libdpkg-perl:amd64 (1.22.6ubuntu6.1, automatic), libsframe1:amd64 (2.42-4ubuntu2, automatic), g++-13-x86-64-linux-gnu:amd64 (13.2.0-23ubuntu4, automatic), libgprofng0:amd64 (2.42-4ubuntu2, automatic), libisl23:amd64 (0.26-3build1, automatic), libquadmath0:amd64 (14-20240412-0ubuntu1, automatic), libubsan1:amd64 (14-20240412-0ubuntu1, automatic), liblsan0:amd64 (14-20240412-0ubuntu1, automatic), libalgorithm-diff-xs-perl:amd64 (0.04-8build3, automatic), gcc-13-x86-64-linux-gnu:amd64 (13.2.0-23ubuntu4, automatic), gcc-13-base:amd64 (13.2.0-23ubuntu4, automatic), r8168-dkms:amd64 (8.052.01-1ubuntu1), binutils:amd64 (2.42-4ubuntu2, automatic), fakeroot:amd64 (1.33-1, automatic), libatomic1:amd64 (14-20240412-0ubuntu1, automatic), dkms:amd64 (3.0.11-1ubuntu13)
End-Date: 2024-11-12  03:50:31

 

 

 

install r8168 after above commad and then we can check below state. we expect we will see enp2s0 interface

keunuk@keunuk:/var/log/apt$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:e0:4c:6d:ca:83 brd ff:ff:ff:ff:ff:ff
    inet 10.17.52.101/24 brd 10.17.52.255 scope global enp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::2e0:4cff:fe6d:ca83/64 scope link
       valid_lft forever preferred_lft forever
3: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 90:2e:1c:42:0a:c2 brd ff:ff:ff:ff:ff:ff
    inet 172.20.10.8/28 metric 600 brd 172.20.10.15 scope global dynamic wlp1s0
       valid_lft 2743sec preferred_lft 2743sec
    inet6 2001:2d8:2182:32b6:922e:1cff:fe42:ac2/64 scope global mngtmpaddr noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::922e:1cff:fe42:ac2/64 scope link
       valid_lft forever preferred_lft forever

 

 

It's hard to google related to above sysmptm. But i did. 

Now Let's install proxmox 8.2. 

 

Thanks

반응형

'IT > Server' 카테고리의 다른 글

Ubuntu IP setting 및 iperf 설치  (0) 2021.01.12
분할된 OVA파일을 하나로 merge하기  (5) 2020.04.19
Centos7 password recovery  (0) 2020.04.18