centos双IP 配置

4个月前 ( 01-06 ) 145阅读 0评论

image.png


临时  route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.40.2


永久

#1、添加route文件,文件名route + 网卡名
[root@localhost ~]# vim /etc/sysconfig/network-scripts/route-eno2
#2、添加路由
192.168.4.0/24 via 192.168.40.2 dev eno2
#3、重启网络
systemctl restart network


文章版权声明:除非注明,否则均为IT技术交流分享 IDC管理计费系统 私有云管理系统 PVE管理系统 私有云系统原创文章,转载或复制请以超链接形式并注明出处。
取消
支付宝二维码
支付宝二维码
微信二维码