- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: route -f impact
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
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
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
08-15-2013 11:03 PM - last edited on 08-16-2013 12:59 AM by Liuqing
08-15-2013 11:03 PM - last edited on 08-16-2013 12:59 AM by Liuqing
Hi
Is there any impact in executing route -f command ?
P.S. This thread has been moved from HP-UX > System Administration to HP-UX > networking.
-HP Forum Moderator
Solved! Go to Solution.
- Tags:
- route
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013 06:17 AM
08-16-2013 06:17 AM
Re: route -f impact
According to the 'route' man page:
-f Delete all route table entries that specify a remote host for a gateway. If this is used with one of the subcommands, the entries are deleted before the subcommand is processed.
So, yes there will be some impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013 06:58 AM - edited 08-16-2013 06:58 AM
08-16-2013 06:58 AM - edited 08-16-2013 06:58 AM
Re: route -f impact
Here's an exmple of what 'route -f' does on one my test servers.
Current routes: # netstat -rn Routing tables Destination Gateway Flags Refs Interface Pmtu 127.0.0.1 127.0.0.1 UH 0 lo0 4136 1.1.150.134 1.1.150.134 UH 0 lan0 4136 1.1.150.0 1.1.150.134 U 2 lan0 1500 127.0.0.0 127.0.0.1 U 0 lo0 0 default 1.1.150.1 UG 0 lan0 0 Run 'route -f': # route -f Routes after: # netstat -rn Routing tables Destination Gateway Flags Refs Interface Pmtu 127.0.0.1 127.0.0.1 UH 0 lo0 4136 1.1.150.134 1.1.150.134 UH 0 lan0 4136 1.1.150.0 1.1.150.134 U 2 lan0 1500 127.0.0.0 127.0.0.1 U 0 lo0 0
Notice that my 'default' route is now missing. I now have no communication outside my current subnet.
I now have to add my default gateway back manually.
# route add default 1.1.150.1 1 add net default: gateway 1.1.150.1 # netstat -rn Routing tables Destination Gateway Flags Refs Interface Pmtu 127.0.0.1 127.0.0.1 UH 0 lo0 4136 1.1.150.134 1.1.150.134 UH 0 lan0 4136 1.1.150.0 1.1.150.134 U 2 lan0 1500 127.0.0.0 127.0.0.1 U 0 lo0 0 default 1.1.150.1 UG 0 lan0 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013 08:43 AM
08-16-2013 08:43 AM
Re: route -f impact
one of my team member has executed route -f .I can find that from history file.
but now when i run cmviewcl ,I am getting the below error.
Unable to receive reply from local cmclconfd. Connection timed out. Unable to initialize HOSTNAME_ADDRESS_FAMILY.
and also i am able to login only thorugh console.
when i check with netstat -rn,I cant find the default route.
Is it the reason ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013 12:36 PM