美文网首页
Centos7 添加静态路由

Centos7 添加静态路由

作者: 坏怂文文 | 来源:发表于2020-03-01 01:09 被阅读0次

环境:

CentOS Linux release 7.2.1511 (Core)

Linux server 3.10.0-1062.4.1.el7.x86_64 

安装net-tools

yum install net-tools

添加静态路由

route add -net 目的网段 netmask 子网掩码 gw 网关地址

route add -host 主机地址 netmask 子网掩码 gw 网关地址

注:以上资料来自互联网,已实际测试。

相关文章

网友评论

      本文标题:Centos7 添加静态路由

      本文链接:https://www.haomeiwen.com/subject/mrfohhtx.html