zoukankan      html  css  js  c++  java
  • ip addr add 192.168.1.5 peer 192.168.1.6 dev enahisic2i1

    节点1

    ip addr add 192.168.1.5 peer 192.168.1.6 dev enahisic2i1

    root@ubuntu:/home/ubuntu# ip addr add 192.168.1.3 peer 192.168.1.4 dev enahisic2i1
    root@ubuntu:/home/ubuntu#  ip a show enahisic2i1
    3: enahisic2i1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 48:57:02:64:e7:ac brd ff:ff:ff:ff:ff:ff
        inet 192.168.1.5 peer 192.168.1.6/32 scope global enahisic2i1
           valid_lft forever preferred_lft forever
        inet 192.168.1.3 peer 192.168.1.4/32 scope global enahisic2i1
           valid_lft forever preferred_lft forever
        inet6 fe80::4a57:2ff:fe64:e7ac/64 scope link 
           valid_lft forever preferred_lft forever
    root@ubuntu:/home/ubuntu# route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         10.10.16.254    0.0.0.0         UG    0      0        0 enahisic2i0
    0.0.0.0         10.10.16.254    0.0.0.0         UG    0      0        0 enahisic2i0
    10.10.16.0      0.0.0.0         255.255.255.0   U     0      0        0 enahisic2i0
    169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 enahisic2i0
    192.168.1.4     0.0.0.0         255.255.255.255 UH    0      0        0 enahisic2i1
    192.168.1.6     0.0.0.0         255.255.255.255 UH    0      0        0 enahisic2i1
    root@ubuntu:/home/ubuntu#

    节点二

    [root@bogon ~]# ip addr add 192.168.1.6 peer 192.168.1.5 dev enahisic2i1
    [root@bogon ~]# ping 192.168.1.5
    PING 192.168.1.5 (192.168.1.5) 56(84) bytes of data.
    64 bytes from 192.168.1.5: icmp_seq=1 ttl=64 time=0.178 ms
    64 bytes from 192.168.1.5: icmp_seq=2 ttl=64 time=0.085 ms
    ^C
    --- 192.168.1.5 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1078ms
    rtt min/avg/max/mdev = 0.085/0.131/0.178/0.047 ms
    [root@bogon ~]# ip addr add 192.168.1.4 peer 192.168.1.3 dev enahisic2i1
    [root@bogon ~]# ping 192.168.1.3
    PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
    64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.198 ms
    ^C
    --- 192.168.1.3 ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 0.198/0.198/0.198/0.000 ms
    [root@bogon ~]#

  • 相关阅读:
    软件需求分析
    行高line-height 和vertical-align
    python中的集合基础知识
    python中字典常用的函数和用法
    python中字符串常用的函数
    day-75CRM
    day-74CRM
    day73CRM
    day-72Django源码解析
    day-71Django补充
  • 原文地址:https://www.cnblogs.com/dream397/p/13340697.html
Copyright © 2011-2022 走看看