Linux 增加永久路由的方法和步骤,有详细的文档吗?
(0)
举例:
On Ubuntu, there are three ways of adding a permanent route to your Linux machine :
To add a permanent route to the Network Manager, you have to navigate to the connection file located at “/etc/NetworkManager/system-connections”.
Edit your “Wired connection” file and add a “route1” property in the IPv4 part of the network configuration.
The route has to be defined as : the network IP address followed by the CIDR, next the default gateway and finally the next-hop.
In order for the changes to be applied, you can restart your network connection, and execute the “route -n” command in order to see your route.
$ sudo nmcli connection reload
Awesome, you have added a permanent route to your Linux server!
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论