ubuntu 删除路由

I have some route in my routing table. But I want to delete one route from routing table. How can accomplish this?

我的路由表中有一些路由。 但是我想从路由表中删除一条路由。 如何做到这一点?

列出现有路线 (List Existing Routes)

To get detailed information about route that will be removed we list the existing routes in our system.

为了获得有关将被删除的路由的详细信息,我们在系统中列出了现有的路由。

$ sudo ip route showdefault via 192.168.122.1 dev ens310.0.3.0/24 dev lxcbr0  proto kernel  scope link  src 10.0.3.1172.16.0.0/24 via 192.168.122.1 dev ens3192.168.122.0/24 dev ens3  proto kernel  scope link  src 192.168.122.211

删除特定路线 (Remove Specific Route)

This command can be run all modern Linux distributions like Kali, Debian, Ubuntu, Fedora, CentOS. We remove the route by giving specific details about route like below. We will use ip route del command and provide related parameters.

该命令可以运行所有现代Linux发行版,例如Kali,Debian,Ubuntu,Fedora,CentOS。 我们通过提供有关路线的具体细节(如下所示)来删除路线。 我们将使用ip route del命令并提供相关参数。

$ sudo ip route del 172.16.0.0/24 via 192.168.122.1 dev ens3
  • ip route del is the command issues for removal

    ip route del是要删除的命令问题

  • 172.16.0.0/24 via 192.168.122.1 dev ens3  is our route to be removed. We give the full detail route so there will no space for error.

    通过192.168.122.1 dev ens3 172.16.0.0/24是我们要删除的路由。 我们提供了详细的路线,因此不会有错误的空间。

检查一下 (Check)

We want to check the last status of our routing table. We issue the same command we issued when starting.

我们要检查路由表的最后状态。 我们发出与启动时相同的命令。

$ sudo ip route show default via 192.168.122.1 dev ens3
10.0.3.0/24 dev lxcbr0  proto kernel  scope link  src 10.0.3.1
192.168.122.0/24 dev ens3  proto kernel  scope link  src 192.168.122.211

As we can see from the output the route to the 172.16.0.0/24 is deleted from routing table.

从输出中可以看到,从路由表中删除了到172.16.0.0/24路由。

如何在Ubuntu Linux中删除路由? 信息移植 (How To Delete Route In Ubuntu Linux? Infografic)

How To Delete Route In Ubuntu Linux? Infografic
如何在Ubuntu Linux中删除路由? 信息移植
.u15acebf8b967155efa0052932fa7646e , .u15acebf8b967155efa0052932fa7646e .postImageUrl , .u15acebf8b967155efa0052932fa7646e .centered-text-area { min-height: 80px; position: relative; } .u15acebf8b967155efa0052932fa7646e , .u15acebf8b967155efa0052932fa7646e:hover , .u15acebf8b967155efa0052932fa7646e:visited , .u15acebf8b967155efa0052932fa7646e:active { border:0!important; } .u15acebf8b967155efa0052932fa7646e .clearfix:after { content: ""; display: table; clear: both; } .u15acebf8b967155efa0052932fa7646e { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u15acebf8b967155efa0052932fa7646e:active , .u15acebf8b967155efa0052932fa7646e:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u15acebf8b967155efa0052932fa7646e .centered-text-area { width: 100%; position: relative; } .u15acebf8b967155efa0052932fa7646e .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u15acebf8b967155efa0052932fa7646e .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u15acebf8b967155efa0052932fa7646e .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u15acebf8b967155efa0052932fa7646e:hover .ctaButton { background-color: #E67E22!important; } .u15acebf8b967155efa0052932fa7646e .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u15acebf8b967155efa0052932fa7646e .u15acebf8b967155efa0052932fa7646e-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u15acebf8b967155efa0052932fa7646e:after { content: ""; display: block; clear: both; }

LEARN MORE  Linux Network Administration with ping and ip Commands

.u15acebf8b967155efa0052932fa7646e , .u15acebf8b967155efa0052932fa7646e .postImageUrl , .u15acebf8b967155efa0052932fa7646e .centered-text-area { min-height: 80px; position: relative; } .u15acebf8b967155efa0052932fa7646e , .u15acebf8b967155efa0052932fa7646e:hover , .u15acebf8b967155efa0052932fa7646e:visited , .u15acebf8b967155efa0052932fa7646e:active { border:0!important; } .u15acebf8b967155efa0052932fa7646e .clearfix:after { content: ""; display: table; clear: both; } .u15acebf8b967155efa0052932fa7646e { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u15acebf8b967155efa0052932fa7646e:active , .u15acebf8b967155efa0052932fa7646e:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u15acebf8b967155efa0052932fa7646e .centered-text-area { width: 100%; position: relative; } .u15acebf8b967155efa0052932fa7646e .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u15acebf8b967155efa0052932fa7646e .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u15acebf8b967155efa0052932fa7646e .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u15acebf8b967155efa0052932fa7646e:hover .ctaButton { background-color: #E67E22!important; } .u15acebf8b967155efa0052932fa7646e .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u15acebf8b967155efa0052932fa7646e .u15acebf8b967155efa0052932fa7646e-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u15acebf8b967155efa0052932fa7646e:after { content: ""; display: block; clear: both; }

通过ping和ip命令了解更多Linux网络管理

翻译自: https://www.poftut.com/delete-route-ubuntu-linux/

ubuntu 删除路由

ubuntu 删除路由_如何在Ubuntu Linux中删除路由?相关推荐

  1. jsp在mysql中删除数据_如何在jsp页面中删除数据库中的数据

    如何在jsp页面中删除数据库中的数据 各位大虾! 我想在jsp页面上写一个按钮功能,从而动态的删除数据库中的一行数据. 不知道怎么实现 这是我写的一段代码 数据库是MySql UserBean p3= ...

  2. 谷歌日历一键删除日程_如何在Google日历中删除新的提醒

    谷歌日历一键删除日程 In December 2015, Google added reminders to the Google Calendar app for Android and iOS u ...

  3. 禁用删除键退回历史记录_如何在Windows 8中删除或禁用搜索超级按钮历史记录

    禁用删除键退回历史记录 When you use the Search Charm in Windows 8 it remembers everything you search for, which ...

  4. ubuntu添加路由_如何在Ubuntu,Linux中添加新路由?

    ubuntu添加路由 I have a box with Ubuntu Linux and I want to add a new route to my box. Because I want to ...

  5. ubuntu 命令卡住_如何在Ubuntu系统中重置root密码

    IT服务圈儿 有温度.有态度的IT自媒体平台 经授权转自公众号:良许Linux(ID:liangxuxiansheng) 很多人有个问题,就是喜欢把密码设置得很长很复杂,结果谁也没防住,却成功防住了自 ...

  6. ubuntu ftp服务器_如何在Ubuntu上安装FTP服务器?

    ubuntu ftp服务器 In this tutorial, let's learn how to install FTP server on Ubuntu. FTP or File Transfe ...

  7. ubuntu合并终端_如何在Ubuntu中安装多个终端以及更改默认终端

    终端是任何Linux系统的关键部分.它允许您通过shell访问Linux系统.虽说现在的Linux发行版,比如Ubuntu,CentOS等已经基本上可以采用GUI来完成绝大部分一般性的任务.但是,终端 ...

  8. ubuntu 麦克风录音_如何在Ubuntu中测试麦克风

    如果您使用的是系统的内置麦克风或外接麦克风,请务必测试您的声音是否通过系统.仅当系统正在读取麦克风声音作为输入时,它才能进一步处理它并在任何应用程序中使用它. 在本文中,我们将介绍如何在Ubuntu上 ...

  9. ubuntu添加面板_如何在Ubuntu的顶部面板中添加天气信息

    ubuntu添加面板 Modern operating systems offer weather information out-of-the-box. There's Windows 10's w ...

最新文章

  1. NC14414 小AA的数列
  2. java -IO流_字符流
  3. 贝叶斯多元Logistics回归理论基础
  4. mysql after 不起作用_我的MySQL触发器不起作用,语法简单,不复杂
  5. Django框架之DRF get post put delete 使用简单示例 (利用序列化反序列化)
  6. html form callback,Promise异步编程模式总结初始化Promise对象统一错误处理PromisifyfromCallbackMongoose Promisify...
  7. Arduino ESP32 最简单直接获取网络时间方法
  8. 三菱plc编程有c语言吗,三菱plc编程用什么语言
  9. 超有用的word宏代码——批量裁剪图片
  10. 一个完整机器学习项目流程总结
  11. 1.(4)数据结构之链表的操作,判空,求长度,排序
  12. 联邦学习(Federated Learning)
  13. 计算机英语口语app,最实用五大英语口语app,强烈推荐
  14. 时间紧、任务重、资源有限,项目经理如何来保证研发效率?
  15. 程派高式八卦掌传人——刘树行
  16. Malformed \uxxxx encoding解决方法
  17. 微信编辑器——构思编辑器教你如何学好图文排版
  18. 【前端】JavaScript-节点操作
  19. 蚂蚁金服副CTO胡喜ATEC上宣布:蚂蚁金服技术全面开放
  20. 稳定性高可用测试——各大厂质量保障实践分享汇总(上)

热门文章

  1. SpringCloud Eureka注册中心日志输出问题:Running the evict task with compensationTime 0ms
  2. 产品更新快培训成本高?华为云会议助力企业降本增效
  3. Linux字符串处理函数strdup、strndup、strndupa、strdupa
  4. 【科研论文】写作技巧及文献管理工具
  5. html网页目录上添加一行,会Word的来答!如何在Word目录中插入一行目录?
  6. 谁说菜鸟不会数据分析(入门篇)----- 学习笔记4(数据分析方法)
  7. 振铃的消除仿真实验(计控实验七simulink)
  8. html 圆球的百分比,HTML5 Canvas 紧张而拥挤的圆球
  9. Anaconda☀利用机器学习sklearn构建模型与实现丨第一课
  10. 织梦标签:列表页排序显示的方式汇总!