resize2fs 运行后 DHClient 停止工作

resize2fs 运行后 DHClient 停止工作

我的硬盘出现了一个奇怪的问题,文件系统没有占据整个分区。重启几次并运行 resize2fs 后,我解决了这个问题,但是自从这样做之后,我就无法再建立连接了。

我正在使用 DHClient 来管理我的 DNS,但在初始化时,它现在会DHCPDISCOVER重复运行,直到失败并返回No DHCPOFFERS。然后它会打印No working leases in persistent database - sleeping.DHCPCD 服务给出响应eno1: no IPv6 Routers available。我在这里不知所措。

编辑:我不太了解网络配置。我在数据中心使用大学网络。操作系统是 Archlinux,我假设我们使用的是 Cisco 路由器。我对网络知之甚少,所以请让我知道可能需要的任何具体信息。

dhcpcd配置文件

# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu

# Most distributions have NTP support.
#option ntp_servers

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private
noipv4ll

答案1

经过与服务团队多次沟通,结果发现重启后我的 IP 被重新分配了。现在已修复

相关内容