• IpV6 linux RedHat5 规格严格


    1 检测IPV6是否启用

    1.1 使用ifconfig查看自己的IP地址是否含有IPv6地址

              inet addr:192.168.198.128  Bcast:192.168.198.255  Mask:255.255.255.0
              inet6 addr: fe80::20c:29ff:fee4:1d8/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1080 errors:0 dropped:0 overruns:0 frame:0
              TX packets:890 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:89517 (87.4 KiB)  TX bytes:122147 (119.2 KiB)
              Interrupt:185 Base address:0x1400
        红色标识部分即为IPV6地址。

    1.2 查看服务监听的IP中是否有IPv6格式的地址

    [root@centos ~]# netstat -tuln
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State
    tcp        0      0 0.0.0.0:613                 0.0.0.0:*                   LISTEN
    tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN
    tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN
    tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN
    tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN
    tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN
    tcp        0      0 :::80                       :::*                        LISTEN
    tcp        0      0 :::22                       :::*                        LISTEN
    udp        0      0 0.0.0.0:68                  0.0.0.0:*
    udp        0      0 0.0.0.0:607                 0.0.0.0:*
    udp        0      0 0.0.0.0:610                 0.0.0.0:*
    udp        0      0 0.0.0.0:111                 0.0.0.0:*
    udp        0      0 0.0.0.0:631                 0.0.0.0:*

    1.3 使用lsmod|grep ipv6查看ipv6的模块是否被加载

    [root@centos ~]# lsmod|grep ipv6
    ipv6                  243425  19

    2 关闭/开启IPV6

    2.1 关闭IPV6

    #vi /etc/modprobe.conf
    添加下面两行内容
    alias net-pf-10 off
    alias ipv6 off
    保存退出,并且重新启动系统。
    重启之后可以使用上面的三种方法去验证IPv6支持是否已经被关闭。

    2.2 开启IPV6

    IPv6是默认支持的,所以当你要重新开起IPv6支持时,将/etc/modprobe.conf中的两条指令注释掉就可以了。

    http://www.redhat.com/mirrors/LDP/HOWTO/html_single/Linux+IPv6-HOWTO/#AEN1032

  • 相关阅读:
    linux启动流程
    监控命令
    ansible组
    公钥和秘钥
    SSH协议介绍
    Java并发编程笔记之ThreadLocal内存泄漏探究
    【死磕 Java 集合】— ConcurrentSkipListMap源码分析
    GraphX介绍
    Storm内部的消息传递机制
    JanusGraph Server配置
  • 原文地址:https://www.cnblogs.com/diyunpeng/p/2302990.html
Copyright © 2020-2023  润新知