Ipv6 |高级网络配置

*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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值