- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- permanent entries in netstat
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-16-2006 12:41 PM
05-16-2006 12:41 PM
permanent entries in netstat
i have a question on routing in ux...
if i add an entry using the netstat command, on the next reboot of the server, this entry will be gone, is that right?
how do i add it as a permanent entry so that even after reboot, it will not be lost?
thanks in advance !!
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 12:52 PM
05-16-2006 12:52 PM
Re: permanent entries in netstat
Yes when you reboot the server the entry will be lost and to make the entry permanent you need to either edit the /etc/rc.config.d/netconf file and add entries there
ROUTE_DESTINATION
ROUTE_MASK
ROUTE_COUNT
ROUTE_ARGS
or write a simple script which runs the route command and put that script in your system startup scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 12:58 PM
05-16-2006 12:58 PM
Re: permanent entries in netstat
You can consider using set_parms for network configuration.
and here is how you can add routing value to a file.
To add a default route:
# route add default 130.100.10.1
Verify
# netstat -nr
Test
# ping myhost.com
To flush all routing entries
# route -f
example of adding routing value to netconf file
# vi /etc/rc.config.d/netconf
Add or modify following entries
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="130.100.10.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
must reboot take effect
# shutdown -ry 0
you need to change the value of "130.100.10.1" to your routing IP address.
Regards,
Sung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 01:03 PM
05-16-2006 01:03 PM
Re: permanent entries in netstat
thanks for the reply...
and yes... it's "route add" for adding of entries... sorry for the confusion...
thanks for the tip...
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 01:05 PM
05-16-2006 01:05 PM
Re: permanent entries in netstat
thanks for the very detailed reply...
i will give it a try...
cheers !!
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 01:10 PM
05-16-2006 01:10 PM
Re: permanent entries in netstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 01:41 PM
05-16-2006 01:41 PM
Re: permanent entries in netstat
I am surrprised about all your threads!!
You close the thread with your remark as problem solved and a bunny appears on the thread
BUT NO POINTS FOR THE PEOPLE WHO PUT THEIR EFFORT IN REPLYING..
Regards
Rajeev