- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to route an entry
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
10-16-2002 11:28 PM
10-16-2002 11:28 PM
how to route an entry
I have a situation here like i am having 3 hpux machines {different model and os}
Let's assume test35,test23,test45.
In test45 i am having 2 lan cards
lan0 ==> test45 15.70.175.45
lan1 ==> token45 10.70.175.45 [different network address i want to access].
Now how can i access token45 from test35 via test23.
workaround which i have gone through as below:
i have changed default gateway as 15.70.175.23 in test35 [previously it was 15.70.168.1 i don't want to disturb in the orginal gateway]
then i made an entry in test23:/etc/hosts
as 10.70.175.45 token45
but it's not working. anything i missed out here.
Can anybody help me out.
Thanks in Advance
Prasath C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 11:50 PM
10-16-2002 11:50 PM
Re: how to route an entry
Have you tried to do a 'traceroute to the network.
# traceroute 10.70.175.45 (IP that you wish to access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 12:02 AM
10-17-2002 12:02 AM
Re: how to route an entry
test35:>traceroute 10.70.175.45
traceroute to 10.70.175.45 (10.70.175.45), 30 hops max, 20 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
how can i find it's token ring and same type of NIC card
test35:/etc/hosts as follows
15.70.175.35 test35
127.0.0.1 localhost loopback
10.70.175.45 token45
# 15.70.175.45 test45
test23:/etc/hosts as follows
15.70.175.23 test23
127.0.0.1 localhost loopback
15.70.175.45 token45
15.70.175.35 test35
what should i do now
Thanks
Prasath C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 12:09 AM
10-17-2002 12:09 AM
Re: how to route an entry
try the route-command:
route add [destination] [gateway]. Destination and gateway are the host names or the Internet addresses.
You get more information with man route.
This route information works till the next reboot. For a permanent entry I'm have not yet searched.
Regards
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 12:52 AM
10-17-2002 12:52 AM
Re: how to route an entry
1. you can use this command to get information of the lancard
lanadmin > lan > display
2. you can use
route add
command for a temporary solution the configuration will gone after the server is rebooted (man route add)
3. for a permanent solution you have to edit Network config
file : /etc/rc.config.d/netconf
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=
ROUTE_MASK[0]=
and restart your network Daemon (no need to reboot server)
#/sbin/init.d/./net stop
#/sbin/init.d/./net start
Thanks & Regards
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:28 AM
10-17-2002 06:28 AM
Re: how to route an entry
But I will give it a try.
First thing you need for this to work is to verify that you have ip forwarding turned on on both test35 and test45.
On >= 10.3
ndd -get /dev/tcp ip_forwarding
should come back with 1 or 2.
ip_forwarding:
Controls how IP hosts forward packets: Set to 0 to inhibit forwarding; set to 1 to always forward; set to 2 to forward only if the number of logical interfaces on the system is 2 or more. [0,2] Default: 2
(Note that you need two NICs if you have 11.0 in order to get ip_forwarding to work with the default of 2)
For 10.2 and lower:
nettune -l ip_forwarding
ip_forwarding = 1 default = 1 min = 0 max = 1
ip_forwarding:
When enabled, an attempt will be made to forward received packets not destined for the local machine along an appropriate route. When disabled(0), no attempt will be made to forward any packet.
As you can see this is on by default in both machines (tho only if you have two NICs in 10.3+) but it never hurts to check.
Next you want to look at the routing table for test35. Does it know how to get to the 10.70.175 network? There should either be a statement about that network or the default route should point to test23.
netstat -rn
will show you the table.
There should be a line like:
10.70.175.0 A.B.C.D UG 0 0 lan0 1500
where A.B.C.D is the IP address of the test23 box on the LAN which connects the two. Verify that you can ping the gateway address (A.B.C.D)
netstat -r
will show you the same table but it will use the names from DNS or /etc/hosts instead of the ip addresses.
Now go to the test23 box and repeat the netstat -rn command. Does it know how to get to the 10.70.175 network by going to the test45 box's IP address on the LAN connecting the two? Can you ping it?
Now go to the test45 box and repeat the netstat -rn but this time look to see if it knows how to get back to the network where test23 lives. Also verify that 10.70.175 is in the table too. If the LAN is not active it should not be in the table - my routers are smart enough to drop inactive LANs from a routing table - I assume hpux is too but verify by lanadmin
lan
display
(make sure this is the correct LAN. Usually the next LAN is one more than the current ppa or nmid).
To add a route to a network you need something like this in /etc/rc.config.d/netconf:
ROUTE_DESTINATION[1]="10.70.175.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="A.B.C.D"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
Where A.B.C.D is the ip address of the next box it needs to go to. This should be an address on a directly connected LAN and it should respond to pings if you are using 10.3+. The number in the brackets should be one more than the last ROUTE_DESTINATION
As previously pointed out:
/sbin/init.d/./net stop
/sbin/init.d/./net start
after any changes. Verify with netstat -rn.
If you decide to use route add remember to put a 1 at the end of the command. This is supposed to be the number of hops to get to the destination network or host but unless you are using RIP or OSPF you can get by with a 1. This is the same number seen above as:
ROUTE_COUNT[1]="1". If you leave off the 1 a lot of boxes will think that means that the destination is local and it may not work.
Finally if you have something on the 10.70.175 network that wants to talk to test35 it will have to have a route added to allow that. You won't get a reply from a ping unless the destination knows how to get back to the source of the ping.
If you have any trouble post your netstat -rn and maybe the uname -a for each box.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2002 02:04 AM
10-18-2002 02:04 AM
Re: how to route an entry
You need to use lanadmin to see the status of your laninterface,the you can configure your lan manually through route add or for permenant you need to add them in /etc/rc.config.d/netconf
Regards,
Hamdy