- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stop dynamic routes from being added in routing ta...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 08:56 AM
05-01-2001 08:56 AM
stop dynamic routes from being added in routing table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 10:11 AM
05-01-2001 10:11 AM
Re: stop dynamic routes from being added in routing table
network. My solution was to create a cronjob which call a script to to clean up the routing tables. I did a netstat -r and searched for
bad patterns. If I found them I did a route -f
and then route add to add back the default and other desired routes.
Not a perfect answer but it did work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2001 10:14 AM
05-01-2001 10:14 AM
Re: stop dynamic routes from being added in routing table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 02:35 AM
05-02-2001 02:35 AM
Re: stop dynamic routes from being added in routing table
# netstat -rn | grep UGHD > /tmp/icmpfile
# while read DEST GATEWAY OTHER
> do
> /usr/sbin/route delete $DEST $GATEWAY
> done < /tmp/icmpfile
# rm /tmp/icmpfile
You will find that, after the second line is typed and the return key is hit, the > signs will come up automatically. After you've typed the "done" line, the shell knows to run the previous commands. After the commands have executed, you will get back to a standard prompt and enter the remove command.
Thanks to Bert for the script.
Regards,
Berlene
This is how it works::
The first line just saves a list of all the UGHD entries into a file The second line reads from the file The third line takes the information read from the file and uses that
information in a command that will actually do the removal.
The fourth line tells the previous commands which file to use.
The last line is just to clean up the file which is no longer of any value.
If an entry still needs to be redirected, the routing device that sent the original ICMP redirect will send another one. After the cause for the redirect has been corrected, you can issue the commands again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2001 09:33 AM
05-02-2001 09:33 AM
Re: stop dynamic routes from being added in routing table
Best thing to do is disable ICMP redirect messages on your dynamic routers.
Or you can run this script in cron to delete all those routes.
netstat -rn | awk '$3=/UGHD/ {system ("route delete "$1" "$2" ")}' > /dev/null
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 11:18 AM
05-11-2001 11:18 AM
Re: stop dynamic routes from being added in routing table
Much Appreciated.