DHCP가 22.04에서 작동하지 않음 게이트웨이 IP를 얻지 못함

DHCP가 22.04에서 작동하지 않음 게이트웨이 IP를 얻지 못함

고정 IP 주소를 사용하고 있었는데 지금은 DHCP를 사용해야 하는데, USE DHCP네트워크 옵션을 선택하면 게이트웨이 IP 주소를 얻지 못하는 문제가 발생하고 있습니다.

//로 시작하는 줄은 주석입니다. 명확히 하기 위한 것입니다.

//  With DHCP active.

me@me-desktop:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 eno1
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 eno1

//  Note here 4 lines given back.  (above)

me@me-desktop:~$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.146  netmask 255.255.255.0  broadcast 192.168.0.255
        ether 94:c6:91:11:55:10  txqueuelen 1000  (Ethernet)
        RX packets 78160  bytes 32127382 (32.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 61451  bytes 9398783 (9.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xdc200000-dc220000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 17637  bytes 1350767 (1.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17637  bytes 1350767 (1.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

me@me-desktop:~$ ping 8.8.8.8
ping: connect: Network is unreachable
me@me-desktop:~$

//  With Static IP set.

me@me-desktop:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    100    0        0 eno1
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 eno1
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 eno1

//  Note here 5 lines given and there is a DEFAULT GATEWAY line.

me@me-desktop:~$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.6  netmask 255.255.255.0  broadcast 192.168.0.255
        ether 94:c6:91:11:55:10  txqueuelen 1000  (Ethernet)
        RX packets 87697  bytes 33731832 (33.7 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 64112  bytes 9669285 (9.6 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xdc200000-dc220000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 17998  bytes 1376581 (1.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17998  bytes 1376581 (1.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

me@me-desktop:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=11.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=10.9 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 10.866/11.175/11.485/0.309 ms

기껏해야 DHCP 사용이 어려워집니다.

DHCP가 올바르게 작동하도록 하려면 어떻게 해야 합니까? 미리 감사드립니다.

관련 정보