当前位置:网站首页>利用ip addr 操作网卡的ip
利用ip addr 操作网卡的ip
2022-04-22 16:48:00 【亨格瑞】
删除ip:
echo "########## os remove vip"
ip addr del 192.168.56.101/24 dev bond0 label bond0:1
ip addr del 192.168.165.101/24 dev bond1 label bond1:1
echo "########## os remove phy ip"
ip addr del 192.168.56.100/24 dev bond0
ip addr del 192.168.165.100/24 dev bond1
添加ip:
echo "########## os add phy ip"
ip addr add 192.168.56.100/24 brd 192.168.56.255 dev bond0
ip addr add 192.168.165.100/24 brd 192.168.165.255 dev bond1
echo "########## os add vip"
ip addr add 192.168.56.101/24 brd 192.168.56.255 dev bond0 label bond0:1
ip addr add 192.168.165.101/24 brd 192.168.165.255 dev bond1 label bond1:1
记得使用arping:
# arping -q -A -c 1 -I bond0 192.168.56.100
# arping -q -A -c 1 -I bond1 192.168.165.100
# arping -q -A -c 1 -I bond0:1 192.168.56.101
# arping -q -A -c 1 -I bond1:1 192.168.165.101
版权声明
本文为[亨格瑞]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_27413937/article/details/105686639
边栏推荐
- JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
- A serial port data receiving mode of stm32
- 【滤波与卷积(二)】
- Analysis of JWT permission verification of golang
- Domestic mobile phone brands have found that they are nothing without the support of domestic consumers
- 1016 phone bills (25 points) test point 1,2
- Blue Bridge Cup practice 014
- NFT 平台安全指南
- AQS源码阅读
- Update description of the latest process engine flowable 6.7.2
猜你喜欢

Detailed chart of chatevents inspection record (x)

How does WPS excel copy worksheets? (move or copy sheet)

AQS source code reading

TM of NLP: Based on gensim library, call 20newsgr to learn doc topic distribution and save it as train SVM LDA txt、test-svm-lda. txt

Matplotlib drawing

京东一面:子线程如何获取父线程 ThreadLocal 的值?我蒙了。。。

C ODBC loads the files of one folder into the blob column of Oracle database and downloads the blob column to another folder
![[unity] make aim IK 1 with animation rig](/img/52/b8ee9d0982a8671356954fbbad775d.png)
[unity] make aim IK 1 with animation rig

Unittest - unit test 2

Linux Mysql 8 修改密码 Your password does not satisfy the current policy requirements
随机推荐
Transformer architecture: the positional encoding
[Unity] 战斗系统学习 12:Switchable
VSCode插件打包迁移与指定位置
FRP reverse proxy
STM32的一种串口数据接受方式
JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
两个有序链表合并(相同内容删去)
HMS Core Discovery第14期回顾长文|纵享丝滑剪辑,释放视频创作力
Huawei machine test questions -- hj54 expression evaluation
80386汇编_寄存器 & 寻址方式介绍
Merge two ordered linked lists (delete the same content)
循环链表应用-约瑟夫环
[interview ordinary people vs Expert Series] please talk about the network quadruple
Numpy Fundamentals (creation, index, common functions)
[filtering and convolution (II)]
How to automatically summarize employee health code data?
Data security audit OTP configuration
如何登录MySQL
[unity] make aim IK 1 with animation rig
Huawei machine test question - hj60 find the two prime numbers that form an even number closest to each other