top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Kernel route table is empty on Linux/Centos?

+1 vote
422 views

I can add using ifconfig and route. Then I can see kernel route entry table. I reboot system. Then route table is empty.

How to make kernel route entry table permanent.

posted Nov 24, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Create a file in /etc/sysconfig/network-scripts named route-(ifname)

See section 2.4.4 of the RHEL 7 networking guide (RHEL is same as Centos) here for complete details:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/sec-Using_the_Command_Line_Interface.html#sec-Static-Routes_and_the_Default_Gateway

answer Nov 24, 2015 by Deepankar Dubey
Similar Questions
+2 votes

I am used to traditional update-rc.d et all.

Now I wonder how to add a a script that used to called by init.d (with start/sop ..) to the new "service start xx" regime.

All the tutorials I found talk about how to use update-rc.d..

+1 vote

I've been asked to give someone sudo rights across an entire environment without the benefit of something like puppet or chef or cfengine et al.

What I've come up with so far is this:

ssh -t miaprbicsra04v sudo -S /bin/echo "rsherman ALL=(ALL) NOPASSWD: /sbin/service /bin/rm /usr/bin/du /bin/df" >> sudo tee /etc/sudoers

Right now that's just to one host, but I plan on substituting a list of hosts once I get farther along. Problem is, the output hangs on the tee command. Not sure why. Any suggestions?

+1 vote

I have a problem with older version of anaconda linux installer. I have upgraded kernel in my distro, but, when this anaconda boot with new 3.4.52 kernel, can NOT find cdrom. As far as I understand, this is because the new kernel recognize cd drive as srX, scdX instead of older hdX with 2.6.18. At the moment I can not upgrade anaconda and forced this kernel to recognize it as before.

Are there any kernel command line argument, kernel config or something else for kernel 3.4.52 to recognize this cdrom as hdX?

...