linux - 如何从 rhel 上的 routef 命令恢复?

标签 linux linux-kernel command rhel

<分区>

我错误地在 linux 机器上执行了 routef 命令。请在我的经理对我大发雷霆之前帮助我恢复它。

最佳答案

很抱歉让您失望了,但是没有解决办法。操作无法撤消。

The routef script does not take any arguments and will simply flush the routing table down the drain. Beware! This means deleting all routes which will make your network unusable! from here or from here.

你所做的就像运行 /dev/null >/etc/network。无法撤消。您只能通过手动添加所有必需的条目来解决它。

关于linux - 如何从 rhel 上的 routef 命令恢复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46049215/

相关文章:

linux - uboot : Overwrite mmcboot environment variable not working

linux - 如何初始化semaphore.h?

c# - 基本理解: binding methods with arguments to controls

linux - iframe 病毒,需要从 linux 服务器上的所有 phps 和 html 文件中删除

c# - SqlCommand 参数与 String.Format

python - 是否遇到过 python import paramiko 和 Crypto 错误,例如 "Not using mpz_powm_sec."?

linux - 如何在Linux终端中打印文件中最频繁的行?

c - 如何在内核模块中使用 do_mmap()

linux - 在 CentOS 6.6 上更新 Perl 版本

linux - 在 Linux 内核中将 while(1) 循环更改为忙等待