Debian 11 BullseyeはIPV6インターフェースをどのように管理しますか? resolv.confファイルを再ロードできますか?

Debian 11 BullseyeはIPV6インターフェースをどのように管理しますか? resolv.confファイルを再ロードできますか?

こんにちは

まず、私の英語が良くない場合は申し訳ありません!

私の設定: Raspberry - Raspbian - Debian 11 Bullseye - CM4

パッケージ resolvconf

私のもの/etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.100.125/24
gateway 192.168.100.100
dns-search test.local
dns-nameservers 192.168.100.101 192.168.100.102
iface eth0 inet6 static
address 2001:0db8:3c4d:0015:0000:d234::3eee:0000
gateway 2001:0db8:3c4d:0015:0000:d234::3eee:0100
dns-nameservers 2001:0db8:3c4d:0015:0000:d234::3eee:0101 2001:0db8:3c4d:0015:0000:d234::3eee:0102

sedコマンドを/etc/network/interfaces使用してシェルスクリプトを介して変更します。

ネットワークを再起動しました。sudo systemctl restart networking

私の最初の質問:

dhcpを静的に作成すると、私のDNS設定はresolvconfで更新されないため、新しい静的dnsと最後のdhcp dnsが作成されます。新しい ipv6 DNS を追加および削除するときにネットワークを再起動した後、最後の ipv6 DNS 設定を維持します。 dns設定のみを維持するためにresolvconfファイルを更新することが可能かどうかわかりません/etc/network/interfaces

私の2番目の質問:

ipv6を静的に設定すると、すべてがうまく機能して変更できますが、dhcpv6または自動設定に合格しようとするとネットワークを再起動できず、このエラーが発生します。

sudo systemctl status networking.service
● networking.service - Raise network interfaces
     Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2021-11-24 09:14:57 CET; 6min ago
       Docs: man:interfaces(5)
    Process: 856 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
   Main PID: 856 (code=exited, status=1/FAILURE)
        CPU: 151ms

nov. 24 09:14:57 debian dhclient[928]: than a configuration issue please read the section on submitting
nov. 24 09:14:57 debian dhclient[928]: bugs on either our web page at www.isc.org or in the README file
nov. 24 09:14:57 debian dhclient[928]: before submitting a bug.  These pages explain the proper
nov. 24 09:14:57 debian dhclient[928]: process and the information we find helpful for debugging.
nov. 24 09:14:57 debian dhclient[928]:
nov. 24 09:14:57 debian dhclient[928]: exiting.
nov. 24 09:14:57 debian ifup[856]: ifup: failed to bring up eth0
nov. 24 09:14:57 debian systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
nov. 24 09:14:57 debian systemd[1]: networking.service: Failed with result 'exit-code'.
nov. 24 09:14:57 debian systemd[1]: Failed to start Raise network interfaces. 

私はこの問題に関するアドバイスを求めましたが、/etc/network/interfaces.d/setup 私が持っていないアドレスから設定ファイルに関するすべてを見つけました。それで、この問題がどこから来るのかわかりません。

これらの問題が発生しましたか?手がかりがあれば持っていきます。

週末にはラズベリーパイがないため、追加の設定はできません。すみません

ありがとうございます。良い一日を過ごしてください、クレメント。

ベストアンサー1

おすすめ記事