Operating System - HP-UX
1833883 Members
1759 Online
110063 Solutions
New Discussion

netstat vs netconf file ??

 
SOLVED
Go to solution
MikeL_4
Super Advisor

netstat vs netconf file ??

Being somewhat confused to say the lease on network issues, how can I ensure that all static routes from a netstat -rn command are in the netconf file to ensure we don't loose anything after a reboot???

netstat -rn example:
Routing tablesDestination Gateway Flags Refs Interface Pmtu127.0.0.1 127.0.0.1 UH 0 lo0 4136155.90.119.139 155.90.119.139 UH 0 lan1 4136192.168.229.139 192.168.229.139 UH 0 lan3 4136192.168.229.138 192.168.229.138 UH 0 lan3:1 4136155.90.35.139 155.90.35.139 UH 0 lan2:1 4136155.90.35.138 155.90.35.138 UH 0 lan2 4136192.168.223.139 192.168.223.139 UH 0 lan0 4136198.147.143.37 155.90.35.130 UGH 0 lan2:1 0165.79.232.18 155.90.35.139 UH 0 lan2:1 0172.17.101.142 155.90.35.130 UGH 0 lan2:1 0172.17.101.143 155.90.35.130 UGH 0 lan2:1 0192.168.223.128 192.168.223.139 U 2 lan0 1500192.168.229.128 192.168.229.139 U 3 lan3 1500192.168.229.128 192.168.229.138 U 3 lan3:1 1500155.90.119.128 155.90.119.139 U 2 lan1 1500155.90.35.128 155.90.35.138 U 3 lan2 1500155.90.35.128 155.90.35.139 U 3 lan2:1 1500155.90.0.0 155.90.119.130 UG 0 lan1 010.0.0.0 155.90.119.130 UG 0 lan1 0127.0.0.0 127.0.0.1 U 0 lo0 0default 155.90.119.130 UG 0 lan1 0
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: netstat vs netconf file ??

Manually compare the output of this command to the /etc/rc.config.d/netconf file.


It should all tie back in directly.

You need to understand the concept that if the ip address is 192.168.0.10 and the netmaks is 255.255.255.0 the network 192.168.0

Knowing this you can tie back all the entries in this output back to the netconf file.

I know no way of automating this, its a sysadmin eyeball to screen task.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mark Greene_1
Honored Contributor

Re: netstat vs netconf file ??

I believe the static routes are stored in /etc/rc.config.d/netconf. This is very, very much a "look but don't touch" sort of file. The set_parms utility is the main update mechanism for this file. You can cat or pg or more the file and see if the routes are there, and then confirm by adding another static route via the "route" command, verify the netstat -rn output and then look in the file to see if the new route is there. We don't have static routes on our system, and I'm reluctant to play with something network oriented on a live box.

Hope this helps,
mark
the future will be a lot like now, only later
MikeL_4
Super Advisor

Re: netstat vs netconf file ??

thanks