网络 - 找不到IPv6

分享于 

2分钟阅读

ubuntu

  繁體

问题:

运行Ubuntu Server 20.04 ip address


root@sturtz001:/etc# ip address


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 


 valid_lft forever preferred_lft forever


2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000


 link/ether 00:23:24:08:58:1f brd ff:ff:ff:ff:ff:ff


 inet 192.168.1.8/24 brd 192.168.1.255 scope global dynamic enp0s25


 valid_lft 86091sec preferred_lft 86091sec


 inet6 fe80::223:24ff:fe08:581f/64 scope link 


 valid_lft forever preferred_lft forever


3: ens2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000


 link/ether 00:1b:21:bf:e7:28 brd ff:ff:ff:ff:ff:ff



cat /etc/netplan/*.yaml


# This is the network config written by 'subiquity'


network:


 version: 2


 renderer: NetworkManager


 ethernets:


 enp0s25:


 dhcp4: yes


 dhcp6: no


 accept-ra: true


 ens2:


 dhcp4: no


 dhcp6: yes


 accept-ra: true




答案1:

你确定ISP为你提供了IPv6?


答案2:

我联系了ISP,他们打开了IPv6 。


答案3

IPv6将显示在此处:


inet6 fe80::223:24ff:fe08:581f/64 scope link 





network  FIND  网络  IPV6  
相关文章