当前位置:网站首页>bond0脚本
bond0脚本
2022-07-25 14:05:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
#!/usr/bin/bash
this is bond0
##2021-3-28
cat > /etc/sysconfig/network-scripts/ifcfg-bond0 <<-EOF DEVICE=bond0 TYPE=Ethernet ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none IPADDR=192.168.146.128 PREFIX=24 IPV6INIT=no USERCTL=no GATEWAY=192.168.146.2 EOF cat > /etc/sysconfig/network-scripts/ifcfg-eth0 <<-EOF DEVICE=eth0 TYPE=Ethernet ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none IPV6INIT=no USERCTL=no MASTER=bond0 SLAVE=yes EOF cat > /etc/sysconfig/network-scripts/ifcfg-eth1 <<-EOF DEVICE=eth1 TYPE=Ethernet ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=none IPV6INIT=no USERCTL=no MASTER=bond0 SLAVE=yes EOF cat > /etc/modprobe.d/bond0.conf <<-EOF alias bond0 bonding options bonding mode=0 miimon=100 EOF systemctl restart network 查看网卡协商速率 ethtool 网卡名
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127558.html原文链接:https://javaforall.cn
边栏推荐
- I2C can also be powered on by bus!
- 数字孪生 - 认知篇
- leetcode--四数相加II
- Brush questions - Luogu -p1152 happy jump
- 应急科普|收好这份暑期安全指南,让孩子安全过暑假!
- Acquisition data transmission mode and online monitoring system of wireless acquisition instrument for vibrating wire sensor of engineering instrument
- 百度搜索打击盗版网文站点,SEOer应该关注哪些问题?
- IDEA设置提交SVN时忽略文件配置
- [directory blasting tool] information collection stage: robots.txt, Yujian, dirsearch, dirb, gobuster
- Basic theory of monocular depth estimation and paper learning summary
猜你喜欢

leetcode1 --两数之和

Business data analysis of CDA level1 knowledge point summary
![[force deduction] 1030. Arrange matrix cells in distance order](/img/6d/5301be3439cdb35500cbb4ae4a2534.png)
[force deduction] 1030. Arrange matrix cells in distance order

2271. Maximum number of white bricks covered by blanket ●●

Brush questions - Luogu -p1146 coin flip

Experiment the Arduino code of NTP network timing alarm clock with esp32+tm1638

Tm1637 four digit LED display module Arduino driver with second dot

Interpretation of featdepth self-monitoring model for monocular depth estimation (Part 2) -- use of openmmlab framework

Mxnet implementation of densenet (dense connection network)

实现一个家庭安防与环境监测系统(一)
随机推荐
Sunfeng, general manager of Yixun: the company has completed the share reform and is preparing for IPO
百度搜索打击盗版网文站点,SEOer应该关注哪些问题?
Use of Bluetooth function of vs wireless vibrating wire acquisition instrument
【Platform IO编译Hifive1-revB】*** [.pio\build\hifive1-revb\src\setupGPIO.o] Error 1的解决办法
redis集群的三种方式
Four methods of importing CSV text files into Excel
Mongodb源码部署以及配置
飞盘局有多快乐?2022年轻人新潮运动报告
ADB connects to Xiaomi mobile phone via Wi Fi
Mysql表的操作
CDA level1 double disk summary
[original] nine point calibration tool for robot head camera calibration
Esp32 connects to Alibaba cloud mqtt IOT platform
OKA通证权益解析,参与Okaleido生态建设的不二之选
leetcode--四数相加II
From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part I)
@Wrap decorator
CDA level1 multi topic selection
IM system - some common problems of message streaming
Working principle of Lora to 4G and gateway repeater