이틀 전에 데비안을 설치했습니다. 네트워크 설치에는 문제가 없지만 모든 것이 정확합니다. 그런데 처음 실행 시 "IP 구성 불가", "유선 연결 1에 연결할 수 없습니다" 등의 오류가 발생했습니다. 저는 이 글을 쓰면서 USB 테더링을 사용하고 있습니다. 무엇이 잘못되었는지는 모르겠지만 그냥 그런 일이 일어났습니다.
다음은 몇 가지 유용한 명령입니다.
sudo dmesg | grep -i 'r8169'
: (r8169는 내 이더넷 드라이버입니다):
[ 3.042315] r8169 0000:04:00.0 eth0: RTL8168g/8111g, b4:2e:99:92:e0:a1, XID 4c0, IRQ 37
[ 3.042322] r8169 0000:04:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[ 3.046476] r8169 0000:04:00.0 enp4s0: renamed from eth0
[ 8.827167] r8169 0000:04:00.0: firmware: direct-loading firmware rtl_nic/rtl8168g-2.fw
[ 8.852380] Generic FE-GE Realtek PHY r8169-0-400:00: attached PHY driver (mii_bus:phy_addr=r8169-0-400:00, irq=MAC)
[ 9.013339] r8169 0000:04:00.0 enp4s0: Link is Down
[ 10.581691] r8169 0000:04:00.0 enp4s0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 10.583868] r8169 0000:04:00.0 enp4s0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 56.049359] r8169 0000:04:00.0 enp4s0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 56.062246] r8169 0000:04:00.0 enp4s0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 101.049573] r8169 0000:04:00.0 enp4s0: Link is Up - 100Mbps/Full - flow control rx/tx
sudo ifconfig enp4s0
:
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether b4:2e:99:92:e0:a1 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 714 bytes 110249 (107.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
(이것은 연결을 시도할 때의 경우이지만 유일한 차이점은 추가 바이트입니다(이전에는 713이었습니다).
nmcli device show enp4s0
:
GENERAL.DEVICE: enp4s0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: B4:2E:99:92:E0:A1
GENERAL.MTU: 1500
GENERAL.STATE: 70 (connecting (getting IP configuration))
GENERAL.CONNECTION: Home
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/41
WIRED-PROPERTIES.CARRIER: on
IP4.GATEWAY: --
IP6.GATEWAY: --
sudo journalctl -xb
:여기
- 이 문제는 Ubuntu에 여전히 존재합니다. 하드웨어용 드라이버와 펌웨어를 모두 설치했습니다.
tcpdump -v -ni enp4s0
:
tcpdump: listening on enp4s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
14:55:13.430559 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from b4:2e:99:92:e0:a1, length 300, xid 0x560a8511, Flags [none]
Client-Ethernet-Address b4:2e:99:92:e0:a1
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message (53), length 1: Discover
Hostname (12), length 6: "Debian"
Parameter-Request (55), length 17:
Subnet-Mask (1), BR (28), Time-Zone (2), Default-Gateway (3)
Domain-Name (15), Domain-Name-Server (6), Unknown (119), Hostname (12)
Netbios-Name-Server (44), Netbios-Scope (47), MTU (26), Classless-Static-Route (121)
NTP (42), Classless-Static-Route-Microsoft (249), Static-Route (33), Unknown (252)
RP (17)
14:55:20.776321 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from b4:2e:99:92:e0:a1, length 300, xid 0x560a8511, secs 7, Flags [none]
Client-Ethernet-Address b4:2e:99:92:e0:a1
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message (53), length 1: Discover
Hostname (12), length 6: "Debian"
Parameter-Request (55), length 17:
Subnet-Mask (1), BR (28), Time-Zone (2), Default-Gateway (3)
Domain-Name (15), Domain-Name-Server (6), Unknown (119), Hostname (12)
Netbios-Name-Server (44), Netbios-Scope (47), MTU (26), Classless-Static-Route (121)
NTP (42), Classless-Static-Route-Microsoft (249), Static-Route (33), Unknown (252)
RP (17)
14:55:27.870175 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from b4:2e:99:92:e0:a1, length 300, xid 0x560a8511, secs 14, Flags [none]
Client-Ethernet-Address b4:2e:99:92:e0:a1
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message (53), length 1: Discover
Hostname (12), length 6: "Debian"
Parameter-Request (55), length 17:
Subnet-Mask (1), BR (28), Time-Zone (2), Default-Gateway (3)
Domain-Name (15), Domain-Name-Server (6), Unknown (119), Hostname (12)
Netbios-Name-Server (44), Netbios-Scope (47), MTU (26), Classless-Static-Route (121)
NTP (42), Classless-Static-Route-Microsoft (249), Static-Route (33), Unknown (252)
RP (17)
14:55:36.534243 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from b4:2e:99:92:e0:a1, length 300, xid 0x560a8511, secs 23, Flags [none]
Client-Ethernet-Address b4:2e:99:92:e0:a1
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message (53), length 1: Discover
Hostname (12), length 6: "Debian"
Parameter-Request (55), length 17:
Subnet-Mask (1), BR (28), Time-Zone (2), Default-Gateway (3)
Domain-Name (15), Domain-Name-Server (6), Unknown (119), Hostname (12)
Netbios-Name-Server (44), Netbios-Scope (47), MTU (26), Classless-Static-Route (121)
NTP (42), Classless-Static-Route-Microsoft (249), Static-Route (33), Unknown (252)
RP (17)
14:55:47.137530 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from b4:2e:99:92:e0:a1, length 300, xid 0x560a8511, secs 34, Flags [none]
Client-Ethernet-Address b4:2e:99:92:e0:a1
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message (53), length 1: Discover
Hostname (12), length 6: "Debian"
Parameter-Request (55), length 17:
Subnet-Mask (1), BR (28), Time-Zone (2), Default-Gateway (3)
Domain-Name (15), Domain-Name-Server (6), Unknown (119), Hostname (12)
Netbios-Name-Server (44), Netbios-Scope (47), MTU (26), Classless-Static-Route (121)
NTP (42), Classless-Static-Route-Microsoft (249), Static-Route (33), Unknown (252)
RP (17)
14:55:58.774372 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from b4:2e:99:92:e0:a1, length 300, xid 0xbe1cac50, Flags [none]
Client-Ethernet-Address b4:2e:99:92:e0:a1
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message (53), length 1: Discover
Hostname (12), length 6: "Debian"
Parameter-Request (55), length 17:
Subnet-Mask (1), BR (28), Time-Zone (2), Default-Gateway (3)
Domain-Name (15), Domain-Name-Server (6), Unknown (119), Hostname (12)
Netbios-Name-Server (44), Netbios-Scope (47), MTU (26), Classless-Static-Route (121)
NTP (42), Classless-Static-Route-Microsoft (249), Static-Route (33), Unknown (252)
RP (17)
답변1
실망스러울 수도 있지만 컴퓨터나 다른 문제는 아닙니다. 놀랍게도 라우터 자체가 제대로 작동하지 않아서 내 컴퓨터가 IP 주소를 얻는 것을 허용하지 않았습니다!
이를 해결하는 방법은 다소 짜증나지만 저에게는 효과적이었습니다.
- 말 그대로 라우터에서 모든 것을 분리하고 컴퓨터에서 이더넷 케이블을 분리합니다. 내가 말하는 모든 것은 라우터에 닿을 수 있는 모든 것을 의미합니다.
- NetworkManager 및 네트워크를 다시 시작합니다.
sudo service networking restart && sudo service NetworkManager restart
- 확실하게 확인하려면 1~2분 정도 기다려 주세요.
- 마지막으로 모든 것을 다시 연결하십시오. 라우터가 완전히 부팅되면 다시 연결해 보세요. 어느 시점에 성공적으로 연결되었다는 메시지가 표시되어야 합니다.