参考:

https://blog.csdn.net/asdfaa/article/details/137884414

检查系统是否支持 IPv6,查看被禁用了

在启用 IPv6 之前,首先要确保您的系统支持 IPv6。要检查内核是否启用了 IPv6,可以运行以下命令:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6

如果返回的结果为 0,则说明您的系统支持 IPv6。如果结果为 1,您需要启用 IPv6,然后重新检查。

检查下面两个服务。opensmd 没有启动,直接启动,然后用ibstat命令

systemctl status opensmd
systemctl status openibd

ibstat
cat /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 >/proc/sys/net/ipv6/conf/all/disable_ipv6

一开始端口是down, 现在是active,然后就可以用了

root@gpumcw2:/home/mcw# ibstat
CA 'mlx5_0'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae03009cc36c
System image GUID: 0x946dae03009cc36c
Port 1:
State: Initializing
Physical state: LinkUp
Rate: 200
Base lid: 65535
LMC: 0
SM lid: 0
Capability mask: 0xa651e848
Port GUID: 0x946dae03009cc36c
Link layer: InfiniBand
CA 'mlx5_1'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae03009cc364
System image GUID: 0x946dae03009cc364
Port 1:
State: Initializing
Physical state: LinkUp
Rate: 200
Base lid: 65535
LMC: 0
SM lid: 0
Capability mask: 0xa651e848
Port GUID: 0x946dae03009cc364
Link layer: InfiniBand
CA 'mlx5_2'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae0300b00278
System image GUID: 0x946dae0300b00278
Port 1:
State: Down
Physical state: Polling
Rate: 10
Base lid: 65535
LMC: 0
SM lid: 0
Capability mask: 0xa651e848
Port GUID: 0x946dae0300b00278
Link layer: InfiniBand
CA 'mlx5_3'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae0300b00279
System image GUID: 0x946dae0300b00278
Port 1:
State: Down
Physical state: Polling
Rate: 10
Base lid: 65535
LMC: 0
SM lid: 0
Capability mask: 0xa651e848
Port GUID: 0x946dae0300b00279
Link layer: InfiniBand
CA 'mlx5_4'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae03009cc374
System image GUID: 0x946dae03009cc374
Port 1:
State: Initializing
Physical state: LinkUp
Rate: 200
Base lid: 65535
LMC: 0
SM lid: 0
Capability mask: 0xa651e848
Port GUID: 0x946dae03009cc374
Link layer: InfiniBand
CA 'mlx5_5'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae03009cef04
System image GUID: 0x946dae03009cef04
Port 1:
State: Initializing
Physical state: LinkUp
Rate: 200
Base lid: 65535
LMC: 0
SM lid: 0
Capability mask: 0xa651e848
Port GUID: 0x946dae03009cef04
Link layer: InfiniBand
root@gpumcw2:/home/mcw#
root@gpumcw2:/home/mcw# ibstat
CA 'mlx5_0'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae03009cc36c
System image GUID: 0x946dae03009cc36c
Port 1:
State: Active
Physical state: LinkUp
Rate: 200
Base lid: 2
LMC: 0
SM lid: 2
Capability mask: 0xa651e84a
Port GUID: 0x946dae03009cc36c
Link layer: InfiniBand
CA 'mlx5_1'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae03009cc364
System image GUID: 0x946dae03009cc364
Port 1:
State: Active
Physical state: LinkUp
Rate: 200
Base lid: 16
LMC: 0
SM lid: 2
Capability mask: 0xa651e848
Port GUID: 0x946dae03009cc364
Link layer: InfiniBand
CA 'mlx5_2'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae0300b00278
System image GUID: 0x946dae0300b00278
Port 1:
State: Down
Physical state: Polling
Rate: 10
Base lid: 65535
LMC: 0
SM lid: 0
Capability mask: 0xa651e848
Port GUID: 0x946dae0300b00278
Link layer: InfiniBand
CA 'mlx5_3'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae0300b00279
System image GUID: 0x946dae0300b00278
Port 1:
State: Down
Physical state: Polling
Rate: 10
Base lid: 65535
LMC: 0
SM lid: 0
Capability mask: 0xa651e848
Port GUID: 0x946dae0300b00279
Link layer: InfiniBand
CA 'mlx5_4'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae03009cc374
System image GUID: 0x946dae03009cc374
Port 1:
State: Active
Physical state: LinkUp
Rate: 200
Base lid: 20
LMC: 0
SM lid: 2
Capability mask: 0xa651e848
Port GUID: 0x946dae03009cc374
Link layer: InfiniBand
CA 'mlx5_5'
CA type: MT4123
Number of ports: 1
Firmware version: 20.38.1002
Hardware version: 0
Node GUID: 0x946dae03009cef04
System image GUID: 0x946dae03009cef04
Port 1:
State: Active
Physical state: LinkUp
Rate: 200
Base lid: 5
LMC: 0
SM lid: 2
Capability mask: 0xa651e848
Port GUID: 0x946dae03009cef04
Link layer: InfiniBand
root@gpumcw2:/home/mcw#

另外一个机器上指定接口去ping没有用ipv6的这个接口的IP

root@gpumcw2:/home/mcw# ifconfig ibs13
ibs13: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2044
inet 10.xx.xx.8 netmask 255.255.255.0 broadcast 10.110.10.255
inet6 fe80::966d:ae03:9c:c36c prefixlen 64 scopeid 0x20<link>
unspec 00-00-08-0D-FE-80-00-00-00-00-00-00-00-00-00-00 txqueuelen 256 (UNSPEC)
RX packets 2146 bytes 379613 (379.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2151 bytes 278364 (278.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 root@gpumcw2:/home/mcw# root@gpumcw2:/home/mcw# ping -I ibs13 10.xx.xx.8
PING 10.xx.xx.8 (10.xx.xx.8) from 10.110.10.1 ibs13: 56(84) bytes of data.
64 bytes from 10.xx.xx.8: icmp_seq=1 ttl=64 time=0.324 ms
64 bytes from 10.xx.xx.8: icmp_seq=2 ttl=64 time=0.103 ms
^C
--- 10.xx.xx.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1032ms
rtt min/avg/max/mdev = 0.103/0.213/0.324/0.110 ms
root@gpumcw2:/home/mcw#

没好之前lo状态

好了之后状态

gpu机器没有开启ipv6的更多相关文章

  1. Linux下关闭和开启IPv6的方法

    确认IPV6是否开启 在Linux下确认IPv6是否已经被启用,可以从三个方面确定. 1.使用ifconfig查看自己的IP地址是否含有IPv6地址. eth0 Link encap:Ethernet ...

  2. Bind开启IPv6功能

    [root@localhost sbin]# ./named -v bind 9.5.1-p3-v3.0.9 1,服务器开启IPv6服务 网卡配置v6地址 [root@localhost ~]# if ...

  3. Ubuntu 18.04拨号上网及校园网开启IPV6

    Ubuntu 18.04下有两种方法实现拨号上网,第一种是通过图形界面添加,需要开启自动连接,并且要关闭以太网的自动连接.(不推荐这种连接方式)这里介绍第二种,通过pppoeconf命令进行拨号. 关 ...

  4. centos开启IPV6配置方法

    目前国内大部分服务器和PC不支持IPV6地址的,但是服务器上本身是可以正常开启IPV6服务,有部分程序在服务器上运行的时候,需要服务器能监听一个ipv6地址才行,因此本文档指导如何在centos服务器 ...

  5. CentOS 开启 IPV6

    编辑网卡地址:#vi /etc/sysconfig/network-scripts/ifcfg-eth0IPV6INIT=yesIPV6FORWARDING=yesIPV6ADDR=2607:9000 ...

  6. EC2 开启 IPV6 访问 和 禁止重启后自动分配IP地址

    EC2 开启 IPV6 访问 和 禁止重启后自动分配IP地址进入 VPC 控制台,对当前 VPC 添加 IPV6 CIDR 块对该 VPC 的路由表进行修改,添加其它路由,第一个空填::/0,第二个空 ...

  7. 个人宽带如何开启IPv6网络访问

    IPv6是大势所趋,就在前段时间湖南联通发布公告,对家庭宽带提供 IPv6 地址,不再提供 IPv4地址,那本文就介绍 个人宽带如何开启 IPv6网络访问. 湖南联通停止向普通家庭宽带用户提供公网 I ...

  8. 开启ipv6支持

    CentOS6 开启ipv6模块操作在/etc/sysconfig/modules  目录下创建一个脚本,比如叫做 ipv6.modules,脚本中内容如下:#!/bin/shif [ ! -c /p ...

  9. 开启 IPv6 新时代,升级后的 IPv6 厉害在哪?

    IPv6,Internet Protocol Version 6,从字面翻译 “互联网协议第 6 版”,它是IETF设计的用于替代现行版本 IP 协议-IPv4 协议,被称作“下一代互联网协议”.早在 ...

  10. 阿里云centos 开启ipv6

    参考网址 https://blog.chenjia.me/articles/160301-134110.html?spm=5176.bbsr285557.0.0.g1Oemn 阿里云限制了ipv6的功 ...

随机推荐

  1. 带你玩转OpenHarmony AI-基于海思NNIE的AI能力自定义

    简介 相信大家从玩转OpenAtom OpenHarmony(简称"OpenHarmony")AI系列专题的其他文章中,已经拓展了OpenHarmony AI在智慧出行.智慧办公等 ...

  2. R语言学习3:数据框处理(1)

    本系列是一个新的系列,在此系列中,我将和大家共同学习R语言.由于我对R语言的了解也甚少,所以本系列更多以一个学习者的视角来完成. 参考教材:<R语言实战>第二版(Robert I.Kaba ...

  3. css实现带背景颜色的小三角

    <div id="first"> <p>带背景颜色的小三角实现是比较简单的</p> <span id="top"> ...

  4. 在HarmonyOS上实现ArkTS与H5的交互

      介绍 本篇Codelab主要介绍H5如何调用原生侧相关功能,并在回调中获取执行结果.以"获取通讯录"为示例分步讲解JSBridge桥接的实现. 相关概念 Web组件:提供具有网 ...

  5. pySpark-merge多个dataframe

    当需要merge多个spark datafame的时候: from functools import reduce buff = [] for pdfs in [pdf1, pdf1,pdf3...] ...

  6. RestTemplate进行https请求时适配信任证书

    转载请注明出处: 1.http协议请求 使用RestTemplate进行http协议的请求时,不需要考虑证书验证相关问题,以下为使用RestTemplate直接使用的代码示例: import org. ...

  7. docker 应用篇————具名挂载和匿名挂载[十三]

    前言 简单整理一下具名挂载和匿名挂载. 正文 来看一下匿名挂载. 这里-v指定了容器内部的路径,但是没有指定容器外部的路径,那么挂载到了什么地方. 用inspect 查看一下. 挂载到这个位置了. 然 ...

  8. 如何在ubuntu上安装QQ音乐

    最简单易懂的安装QQ音乐教程,亲测可用!教程如下: 点击下方网址,进入QQ音乐下载页网址: https://y.qq.com/download/download.html 页面 点击Linux下方的下 ...

  9. 剑指offer05(Java)-替换空格(简单)

    题目: 请实现一个函数,把字符串 s 中的每个空格替换成"%20". 示例 1: 输入:s = "We are happy."输出:"We%20are ...

  10. 【pytorch学习】之概率

    6 概率 简单地说,机器学习就是做出预测.根据病人的临床病史,我们可能想预测他们在下一年心脏病发作的概率.在飞机喷气发动机的异常检测中,我们想要评估一组发动机读数为正常运行情况的概率有多大.在强化学习 ...