Ipv6 |高级网络配置

    xiaoxiao2021-03-25  85

    *IPv6:采用 128 位 2 进制数码表示

    1.表示方式:8*16进制的一串数字 2.任意位数的 0 可以用 ::表示 Internet Protocol Version 6

    3.设置:

    1.nmcli connection add con-name westos ifname eth0 type ethernet ip6 2016::1/64 #设置IP 2.nm-connection-eth0 (delete eth0) #删除原有的IPV4 3.vim /etc/sysconfig/network-scrips/ifcfg-westos dhcp——>none #将 dhcp 状态改为 none 4.systemctl restart network 5..检测: #ping6 IP6

    *高级网络桥接

    *用网络桥接实现共享上网主机和客户主机除了利用软件之外,还可以用系统自带 的网络桥接建立连接网络用双网卡的机器做主机

    *brctl #桥接管理命令 -show #显示 -addbr #添加网桥 -delbr #删除桥接 -addif #添加网桥连接 -delif #删除网桥连接

    1.cd /etc/sysconfig/network-scripts/ 2.ls 3.mv ifcfg-br0 ifcfg-enp0s25 /mnt 4.nm-connection-editor 5.ls /mnt/ 6.mv /mnt/ifcfg-* . 7.ls 8.reboot

    *建立桥接

    1.cd /etc/sysconfig/network-scripts/ 2.vim ifcfg-ebp0s25

    DEVICE=enp0s25 ONBOOT=yes BOOTPROTO=none BRIDGE=br0 TYPE=Ethernet

    3.vim ifcfg-br0

    DEVICE=br0 ONBOOT=yes TYPE=Bridge #必须要首字母大写 IPADDR=172.25.254.30 PREFIX=24 DNS1=172.25.254.250 GATEWAY=172.25.254.250

    4.systemctl stop NetworkManager.service #必须先关闭 5.systemctl restart network 6.systemctl start NetworkManager 7.brctl show

    ***bonding 的三种模式

    #需要两块网卡

    1.nmcli connection add con-name bond0 type bond mode active-backup ip4 172.25.254.30/24 2.ping 172.25.254.30 #此时ping不通 3.nmcil connection add con-name eth0 ifname eth0 type bond-slave master bond0 4.ping 5.nmcli connection add con-name eth1 ifname eth1 type bond-slave master bond0 6.ifconfig eth0 down 7.ifconfig eth0 up

    #监控:whatch -n 1 cat /proc/net/bonding/bond0

    *多块网卡阵列

    1.nmcli connection add con-name team0 ifname team0 type team config ‘{“runner”:{“name”:”activebackup”}}’ ip4 172.25.254.130/24 2.ifconfig 3.ping 172.25.254.130 4.nmcli connection add con-name eth0 type team-slave ifname eth0 master team0 5.nmcli connection add con-name eth1 type team-slave ifname eth1 master team0 6.ifconfig eth0 down 7.ifconfig eth0 up

    #监控:whatch -n 1 teamdctl team0 stat

    *建立:

    1.brctl addbr br0 2.brctl show 3.brctl defif br0 eth0 4.ifconfig br0 172.25.254.130 netmask 255.255.255.0 5.ping

    *删除

    1.brctl delif br0 eth0 2.ifconfig br0 down #先 down ,再删除 3.brctl delbr br0

    转载请注明原文地址: https://ju.6miu.com/read-35988.html

    最新回复(0)