- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: static route
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
Forums
Discussions
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
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
04-21-2004 07:51 PM
04-21-2004 07:51 PM
static route
route add net 174.1.0.0 netmask 255.255.0.0 139.16.240.111 1
madcc01:/etc/rc.config.d> netstat -rnv
Routing tables
Dest/Netmask Gateway Flags Refs Interface Pmtu
127.0.0.1/255.255.255.255 127.0.0.1 UH 0 lo0 4136
139.16.240.112/255.255.255.255 139.16.240.112 UH 0 lan0 4136
139.16.240.0/255.255.255.0 139.16.240.112 U 2 lan0 1500
174.1.0.0/255.255.0.0 139.16.240.111 UG 0 lan0 0
default/0.0.0.0 139.16.240.1 UG 0 lan0 0
This is my netconf:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]=139.16.240.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[1]="net 174.1.0.0"
#ROUTE_DESTINATION[1]="174.1.0.0"
ROUTE_MASK[1]="255.255.0.0"
ROUTE_GATEWAY[1]="139.16.240.111"
ROUTE_COUNT[1]="1"
Can anyone help me ???
Tanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 07:55 PM
04-21-2004 07:55 PM
Re: static route
Still if you do not get add the command in /sbin/rc3.d/routes_yours
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 08:01 PM
04-21-2004 08:01 PM
Re: static route
/sbin/init.d/net stop/start but nothing changes and syslod do not say anything about why the static route has not been added.. and for this reason I must always do it manually...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 08:13 PM
04-21-2004 08:13 PM
Re: static route
Give it a try please
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 08:24 PM
04-21-2004 08:24 PM
Re: static route
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 08:28 PM
04-21-2004 08:28 PM
Re: static route
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 08:51 PM
04-21-2004 08:51 PM
Re: static route
it is strange that you cannot add a route.
Are you sure that does command work fine?
Are you sure that can system reach 139.16.240.111?
# route add net 174.1.0.0 netmask 255.255.0.0 139.16.240.111 1
# echo $?
Last command should report 0; values different than 0 mean a problem.
HTH.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 09:15 PM
04-21-2004 09:15 PM
Re: static route
Is your gatway local or remote (1 show it is remote)
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 09:25 PM
04-21-2004 09:25 PM
Re: static route
Can you try by removing the line which is commented in between the set of commands in /etc/rc.config.d/netconf.
#ROUTE_DESTINATION[1]="174.1.0.0"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 09:34 PM
04-21-2004 09:34 PM
Re: static route
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]=139.16.240.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]="174.1.0.0"
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]="139.16.240.111"
ROUTE_COUNT[0]="1"
With this configuration everything has worked . But I do not understand is the purpose of the number [0] in the routes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 09:38 PM
04-21-2004 09:38 PM
Re: static route
[0] just is an index for routes, really don't worry for that. If you will add another route take attention to add it with [2].
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 09:50 PM
04-21-2004 09:50 PM
Re: static route
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]=139.16.240.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[1]="174.1.0.0"
#ROUTE_DESTINATION[0]="174.1.0.0"
ROUTE_MASK[1]="255.255.0.0"
ROUTE_GATEWAY[1]="139.16.240.111"
ROUTE_COUNT[1]="1"
I get the sollution , It is necessary to write in the netconf the default route first . If you do not have the default route you can not find the new gateway for the route [1] . The order is important
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 10:39 PM
04-21-2004 10:39 PM
Re: static route
Anyway in your previous post already put default route first then I don't understand what problem was.
Please assign points to those who helped you. (this my post no points please.)
Best regards,
Ettore