- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Static Routing Issue on HP-UX Server
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
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
тАО05-20-2009 02:02 AM
тАО05-20-2009 02:02 AM
Static Routing Issue on HP-UX Server
Hi, I'm hoping someone out there has a good understanding of routing as I have a issue which I just cannot resolve.
There are 2 servers which I want to have connectivity. The firewall rules are all in place, its just now setting up static routes to get the connectivity set up. The details are as follows:
server1: IP is 10.93.58.144 (residing in sub network 10.93.58.128/26) g/w is 10.93.58.129
server2: Ip is 10.254.11.130 g/w is 10.254.11.129 (residing in sub network 10.254.11.128/25)
SO i want to be able to telnet from server1 to server2, so what static route do i need to set up this connectivity. The routing table on server2 is this.
Server2: netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.254.11.130 10.254.11.130 UH 0 lan0 4136
10.254.11.2 10.254.11.2 UH 0 lan1 4136
10.254.11.128 10.254.11.129 UGH 0 lan0 0
10.93.58.128 10.254.11.129 UGH 0 lan0 0
10.254.11.128 10.254.11.130 U 2 lan0 1500
10.254.11.0 10.254.11.2 U 2 lan1 1500
10.254.11.0 10.254.11.172 UGH 0 lan0 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.254.11.1 UG 0 lan1 0
lfhg-j-core01:/etc#
lfhg-j-core01:/etc# ifconfig lan0
lan0: flags=1843
inet 10.254.11.130 netmask ffffff80 broadcast 10.254.11.255
lfhg-j-core01:/etc#
lfhg-j-core01:/etc# ifconfig lan1
lan1: flags=1843
inet 10.254.11.2 netmask ffffff80 broadcast 10.254.11.127
Server1:
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.93.58.128 0.0.0.0 255.255.255.192 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 10.93.58.129 0.0.0.0 UG 0 0 0 eth1
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:8F:36:A5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0x1400
eth1 Link encap:Ethernet HWaddr 00:50:56:8F:75:50
inet addr:10.93.58.144 Bcast:10.93.58.191 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16041051 errors:466 dropped:1992 overruns:0 frame:0
TX packets:11439964 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1175939937 (1121.4 Mb) TX bytes:1792556783 (1709.5 Mb)
Interrupt:19 Base address:0x1480
Can any one know what thestaid route is to put in to allow server1 to be able to connect (i.e telent ) to server2 ?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 02:58 AM
тАО05-20-2009 02:58 AM
Re: Static Routing Issue on HP-UX Server
On server 1 try this command
#route add net 10.254.11.129 netmask X.X.X.X 10.93.58.129
X.X.X.X -- What is your netmask
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 04:43 AM
тАО05-20-2009 04:43 AM
Re: Static Routing Issue on HP-UX Server
route add net 10.254.11.128 netmask 255.255.255.128 10.93.58.129 1
If you want to route to a single host, i.e., server2, then run this command:
route add 10.93.58.144 10.93.58.129 1
whichever method you decide to use, make sure you put the static routing information to the ROUTE section of the server1's /etc/rc.config.d/netconf file, so that your static route is resilient against reboots.
Hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 04:49 AM
тАО05-20-2009 04:49 AM
Re: Static Routing Issue on HP-UX Server
After the routing is done, if you are still having problems connecting, post the netstat -rn output from both servers and the error message you are getting for your ssh attempt for further help.
What you are going thru, was once my life purpose, after we decided to re-wire and re-network all our servers into different VLANs. Thank you Sarbanes-Ox(ymoron)ley rules.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 05:31 AM
тАО05-20-2009 05:31 AM
Re: Static Routing Issue on HP-UX Server
Thanks Mel for your detailed reply, I'm going to run the commands you suggestin, just to confimr should the route command be excuted on server1 or server2?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 07:24 AM
тАО05-20-2009 07:24 AM
Re: Static Routing Issue on HP-UX Server
This error is what I'm getting
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.254.11.130 10.254.11.130 UH 0 lan0 4136
10.254.11.2 10.254.11.2 UH 0 lan1 4136
10.254.11.128 10.254.11.129 UGH 0 lan0 0
10.93.58.128 10.254.11.129 UGH 0 lan0 0
10.254.11.128 10.254.11.130 U 2 lan0 1500
10.254.11.0 10.254.11.2 U 2 lan1 1500
10.254.11.0 10.254.11.172 UGH 0 lan0 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.254.11.1 UG 0 lan1 0
lfhg-j-core01:/var#
lfhg-j-core01:/var# route add 10.93.58.144 10.93.58.129 1
add host 10.93.58.144: gateway 10.93.58.129: Network is unreachable
The command was run on server2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2009 08:18 AM
тАО05-20-2009 08:18 AM
Re: Static Routing Issue on HP-UX Server
Thanks, I have put in the route as suggested to the specific server and now is working. Thanks alot for your help.