centos7 2 下配置IPv6 測試配置結果

2021-10-02 22:49:39 字數 2307 閱讀 9531

[root@localhost ~]# uname -a #檢視系統核心版本

linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 smp thu nov 19 22:10:57 utc 2015 x86_64 x86_64 x86_64 gnu/linux

[root@localhost ~]# cd /etc/sysconfig/network-scripts/ #切換到網絡卡所在目錄

[root@localhost network-scripts]# pwd #檢視當前所在路徑

/etc/sysconfig/network-scripts

[root@localhost network-scripts]# ls #檢視當前目錄下資源

ifcfg-eno16777736  ifdown-eth   ifdown-isdn    ……

[root@localhost network-scripts]# vi ifcfg-eno16777736  #進入編輯模式新增如下配置

[root@localhost network-scripts]# cat ifcfg-eno16777736  

type=ethernet

bootproto=none

defroute=yes

ipv4_failure_fatal=no

ipv6init=yes

ipv6_autoconf=no

ipv6_defroute=yes

ipv6_failure_fatal=no

name=eno16777736

uuid=b4ed7b55-c3bc-4a68-a137-137fef95c470

device=eno16777736

onboot=yes

dns1=114.114.114.114

ipaddr=192.168.114.129

prefix=24

gateway=192.168.114.2

ipv6addr=240e:51:edff:eeee:1:2:0:6/96

ipv6_defaultgw=240e:51:edff:eeee:1:2:0:1

[root@localhost network-scripts]# ifconfig

eno16777736: flags=4163mtu 1500

inet 192.168.114.129  netmask 255.255.255.0  broadcast 192.168.114.255

inet6 fe80::20c:29ff:fef7:8d21  prefixlen 64  scopeid 0x20

inet6 240e:51:dbff:ffff:1:2:0:f6  prefixlen 96  scopeid 0x0

ether 00:0c:29:f7:8d:21  txqueuelen 1000  (ethernet)

rx packets 3470  bytes 309643 (302.3 kib)

rx errors 0  dropped 0  overruns 0  frame 0

tx packets 1716  bytes 259259 (253.1 kib)

tx errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@localhost network-scripts]#ping6  240e:51:dbff:ffff:1:2:0:f6 #用ping6 進行對本機ipv6進行測試

ping 240e:51:dbff:ffff:1:2:0:f6(240e:51:dbff:ffff:1:2:0:f6) 56 data bytes

64 bytes from 240e:51:dbff:ffff:1:2:0:f6: icmp_seq=1 ttl=64 time=0.834 ms

64 bytes from 240e:51:dbff:ffff:1:2:0:f6: icmp_seq=2 ttl=64 time=0.095 ms

64 bytes from 240e:51:dbff:ffff:1:2:0:f6: icmp_seq=3 ttl=64 time=0.073 ms

[root@localhost network-scripts]# ping6 ::1 #::1相當於127.0.0.1

ping ::1(::1) 56 data bytes

64 bytes from ::1: icmp_seq=1 ttl=64 time=0.052 ms

64 bytes from ::1: icmp_seq=2 ttl=64 time=0.148 ms

Centos7 2下Solr的配置

提取碼 siqh 1 solr需要和tomcat一塊使用,所以大家需要現在伺服器中先使tomcat執行起來,解壓 tar zxvf solr 4.10.3.tgz3 複製第一步解壓檔案中的 jar包到 第二步中tomcat中的solr中 jar包內容如下圖所示 4 複製 solr 4.10.3 ex...

WindowsXP下的IPv6配置

1.ipv6 install uninstall windowsxp的ipv6協議棧是需要手動安裝的,安裝的方法就是執行 ipv6install 當然什麼時候如果你不想玩ipv6了,你可以執行 ipv6uninstall 把ipv6協議棧卸掉。注意有的時候卸除ipv6協議棧是有必要的,因為windo...

centos配置ipv6位址

1.lsmod grep ipv6 確認載入了ipv6模組 2.配置支援ipv6 我只列出了需要修改的部分 vi etc sysconfig network networking ipv6 yes vi etc modprobe.conf alias net pf 10 off alias ipv6...