- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Route add ??
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
Discussions
Forums
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
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
тАО11-27-2002 03:20 AM
тАО11-27-2002 03:20 AM
Route add ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 03:23 AM
тАО11-27-2002 03:23 AM
Re: Route add ??
Chuck J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 03:32 AM
тАО11-27-2002 03:32 AM
Re: Route add ??
A few ways to add a route:
(A)
# route add net 135.196.66.22 netmask 135.196.66.22
(B)
Add the network 135.196.66.22 to /etc/networks :
lan1net 135.196.66.22
then
# route add lan1net mask 255.255.255.192
ALso, i don't think this will stay after a reboot so you'd have to modify /etc/rc.config.d/netconf i think.
I guess the
Chuck J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 03:34 AM
тАО11-27-2002 03:34 AM
Re: Route add ??
# netstat ???r
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 03:37 AM
тАО11-27-2002 03:37 AM
Re: Route add ??
Make entries in your /etc/rc.config.d/netconf to make it permanent.
ROUTE_DESTINATION[1]=135.196.66.0
ROUTE_MASK[1]=255.255.255.0
ROUTE_GATEWAY[1]=135.196.66.22
ROUTE_COUNT[1]=0
ROUTE_ARGS[1]=""
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 03:53 AM
тАО11-27-2002 03:53 AM
Re: Route add ??
Also the other route add command didnt seem to work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 04:18 AM
тАО11-27-2002 04:18 AM
Re: Route add ??
# route add net 135.196.66.22 192.168.3.22 1
or maybe a 0 at the end instead of the 1.
Tell us what you have done so far.
See this document:
http://www4.itrc.hp.com/service/cki/docDisplay.do?docId=200000049791567&admit=-938907319+1038399331292+28353475
Chuck J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 04:52 AM
тАО11-27-2002 04:52 AM
Re: Route add ??
First, send us what netstat -nrv says.
Second what address are you trying to reach? Note you have very strict netmask on this network (the last netmask byte is not zero).
Third - yep, config in /etc/rc.config.d/netconf are restored at every boottime.
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 05:37 AM
тАО11-27-2002 05:37 AM
Re: Route add ??
I ma trying to get to 135. addresses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 07:14 AM
тАО11-27-2002 07:14 AM
Re: Route add ??
ndd -set /dev/ip ip_check_subnet_addr 0
will do it for now but you need to put it in nddconf in order for it to be remembered at boot.
edit /etc/rc.config.d/nddconf to add:
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0
If there is already an entry then you have to change the numbers in brackets to the next higher number.
Your netstat -rvn output looks very strange. Perhaps because you have tried to add routes and gotten them wrong. You have two routes to the 135.196.64.0 but both of them are wrong since the mask is for a host and not for a network:
135.196.64.0/255.255.255.255 135.196.66.22
135.196.64.0/255.255.255.255 135.196.66.1
Then you have
135.196.66.0/255.255.255.192 135.196.66.1
which is a duplicate path to the 135.196.66.0/255.255.255.192 network so it looks like your box might even think it has two addresses (the .22 and the .1). Isn't the .1 your local router?
Please post your /etc/rc.config.d/netconf
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2002 08:05 AM
тАО11-27-2002 08:05 AM
Re: Route add ??
I'm not fammiliar with this 'ip_check_subnet_addr', but this sounds like could cause the troubles, so check it.
I'll explain your routing for you:
127.xxx -obvious, skip it
135.196.66.22/255.255.255.255 the address of lan1 - OK
192.168.3.22/255.255.255.255 the address of lan0 - OK
135.196.64.0/255.255.255.255 135.196.66.22 UH:
'I have 135.196.64.0 machine that is connected directly to 135.196.66.22' -is that what you want? I doubt.
I guess you wanted:
route add net 135.196.64 netmask 255.255.255.0 135.196.66.22
but you did:
route add host 135.196.64.0135.196.66.22 (hosts always have netmask 255.255.255.255)
135.196.66.0/255.255.255.192 local network for lan1 - OK (if it's OK with that stuff Ron mentioned)
192.168.3.0/255.255.255.0 local network for lan0 - OK
135.196.64.0/255.255.255.255 135.196.66.1
'I have machine 135.196.64.0 that I want to contact with via gateway of address 135.196.66.1 (and that goes through lan1)
like above. You did:
route add host 135.196.64.0 135.196.66.1 1
but you wanted
route add net 135.196.64 netmask 255.255.255.0 135.196.66.1 1
(the netmask is my guess in this case)
Check your subnets and their netmasks more carefully.
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2002 11:32 AM
тАО11-30-2002 11:32 AM
Re: Route add ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2002 08:18 PM
тАО11-30-2002 08:18 PM
Re: Route add ??
You should really try harder to assign points. There's a feature in your profile to view your previous posts, here is the link:
http://forums.itrc.hp.com/cm/TopSolutions/1,,BR710490!1!questions,00.html
live free or die
harry