How to reload the routing table?
Hi all,
I've simple question here on routing. After making an changes (add/modify/delete) to /etc/static.routes, what command should we use to reload the routing table? Any help would be appreciated. Thanks in advance. |
With iproute2, the command would be "ip route flush cache". Don't know how it can be done with the "route" command..
Best regards, |
best option is to restart network service by executing following command:
#service network restart |
Thanks Germanchu & luck.anshu for your reply..
Which of these command below can be used to reload the routing table? route add –F /etc/static.routes /etc/rc3.d/S94addroutes start netstat –nvr /etc/static.routes /etc/netmasks –reload |
Looks like the OP needs to do a little more Googling, as this sure sounds like homework, and all the answers to questions like this are very easily answerable without having to ask others to answer them for you.
You also haven't even told us what operating system you're even referring to either (though usually teaching courses are centered around RHEL or CentOS, are they not?) -- and at least one of the commands shown above, does not even apply to a good number of OS's. If this is not homework, then please provide more detail about what you're trying to accomplish, what Linux you're using, what you've tried so far, and show the output of the commands you have tried, including any error messages. If this *is* homework, you'll do yourself a big favor by doing it yourself, and referencing the course material provided for you. Kind regards, Sasha |
Quote:
|
All times are GMT -5. The time now is 07:02 PM. |