Linux——高级网络控制
来源:互联网 发布:scanner java 编辑:程序博客网 时间:2024/05/16 12:54
网络桥接bridge
mv ifcfg-br0 ifcfg-enp0s25 /mnt/ ##保存文件
vim ifcfg-enp0s25
reboot
ifconfig
systemctl stop NetworkManager.service
vim ifcfg-enp0s25
vim ifcfg-br0
systemctl restart network
ifconfig ##重启后br0启用成功
rm -rf ifcfg-enp0s25 ifcfg-br0 ##还原
mv /mnt/ifcfg-* .
reboot
网络接口
nm-connection-editor ##删除eth0
brctl show ##查看接口
brctl addbr br0 ##添加br0
ifconfig br0 172.25.254.108 netmask 255.255.255.0 ##配置br0
ping 172.25.254.250 ##网络不通
brctl addif br0 eth0 ##添加物理接口
ping 172.25.254.250 ##网络通畅
ifconfig br0 down ##去掉br0
brctl delbr br0 ##去掉br0
brctl show ##再次查看
bond主备
添加网卡
nm-connection-editor ##清除环境
systemctl start NetworkManager
nmcli connection add con-name bond0 ifname bond0 type bond mode active-backup ip4 172.25.254.108/24 ##添加bond组
nmcli connection add con-name eth0 ifname eth0 type bond-slave master bond0
nmcli connection add con-name eth1 ifname eth1 type bond-slave master bond0
ping 172.25.254.250 ##网络通畅
ifconfig
ifconfig eth0 down ##将eth0关掉
ping 172.25.254.250 ##网络依然通畅
team主备
nm-connection-editor
nmcli connection delete bond0
nmcli connection delete eth0
nmcli connection delete eth1 ##清除环境
nmcli connection add con-name team0 type team ifname team0 config ‘{“runner”:{“name”:”activebackup”}}’ ip4 172.25.254.108/24
ifconfig
teamdctl team0 state ##查看team状态
nmcli connection add con-name eth0 ifname eth0 type team-slave master team0
ping 172.25.254.250 ##添加eth0后网络通畅
nmcli connection add con-name eth1 ifname eth1 type team-slave master team0
ping 172.25.254.250 ##再次添加eth1后网络依然通畅
ifconfig eth0 down ##将eth0关掉
ping 172.25.254.250 ##网络通畅
teamdctl team0 state ##查看team状态
- Linux——高级网络控制
- linux——高级网络控制
- Linux——高级网络控制
- linux系统之高级网络控制
- 高级网络控制
- 高级网络控制
- 高级网络控制
- 高级网络控制
- 高级网络控制
- linux网络编程(10)——高级套接字
- linux高级网络配置
- Linux高级网络设置
- Linux高级网络配置
- linux 高级网络配置
- LInux高级网络配置
- Linux网络编程 - TCP高级应用:socket文件描述符属性控制
- Linux 网络访问控制
- JavaScript高级——事件监听控制
- yii 2.0 增删改查 分页 ajax 批删
- ubuntu下安装freeswitch1.6
- (二十五)基础系列 JSP/JSTL/EL
- msm8953之串口dts配置
- Python webservice
- Linux——高级网络控制
- python中日期转换
- springmvc 实现数据验证
- 蒙特卡罗方法入门
- 不能被扫雷程序搞崩的心态
- MAVEN配置详解
- Android全文获取context(上下文)的方法
- 三星8核S5P6818 核心板(ARM Cortex-A53架构)
- 第十一周 项目4(2)