LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2010, 05:51 AM   #1
echorequest
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Rep: Reputation: 0
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.
 
Old 04-05-2010, 07:43 AM   #2
Germanchu
LQ Newbie
 
Registered: Nov 2009
Location: Buenos Aires, Argentina
Posts: 23

Rep: Reputation: 0
With iproute2, the command would be "ip route flush cache". Don't know how it can be done with the "route" command..

Best regards,
 
Old 04-05-2010, 09:04 AM   #3
luck.anshu
LQ Newbie
 
Registered: Jan 2009
Location: India
Posts: 11

Rep: Reputation: 0
best option is to restart network service by executing following command:
#service network restart
 
Old 04-06-2010, 12:26 AM   #4
echorequest
LQ Newbie
 
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 04-06-2010, 12:36 AM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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
 
Old 04-06-2010, 08:14 AM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by luck.anshu View Post
best option is to restart network service by executing following command:
#service network restart
Beware if doing this via an SSH session. If things change in certain ways, the session may get disconnected. And the SIGHUP from that may cause the command to be interrupted, leaving you without access. If you must connect by the network to do it, run the command within a screen session to avoid the SIGHUP effect.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this routing table OK? gubak Linux - Networking 2 11-13-2009 09:51 PM
routing table scofiled83 Linux - Networking 1 11-08-2008 07:40 PM
partition table reload polar_bear Linux - Server 1 11-22-2007 05:55 AM
routing table arvind kumar Linux - Networking 2 06-08-2005 11:59 PM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration