Operating System - HP-UX
1837112 Members
2383 Online
110112 Solutions
New Discussion

configure hp9000 box as a router

 
SOLVED
Go to solution
tom quach_1
Super Advisor

configure hp9000 box as a router

Hello,
i have 3 servers (SV1,SV2,SV3)locate out side the firewall,ipaddresses start with 192.168.20.0
inside my LAN there are 8 more hpuxboxes. One box( HP1)this HP1 box has 2 network cards
1 goes to LAN 10.10.2.0 and 1 goes to outside the firewall:
ip 192.168.20.0 ....
subnet 255.255.255.0
gateway 192.168.20.254

iam using this box (HP1) to connect to SV1,SV2,SV3.
LAN:
ip 10.10.2.0...
subnet: 255.255.255.0
gateway:10.10.2.254

is there a way to configure HP1 as a router
so all my HP Boxes can see SV1,SV2,SV3 and vise vesa thru this box HP1.

Thanks for your help,

Tom
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: configure hp9000 box as a router

If you have two network cards, you are in good shape.

You may find these docs helpful:
http://www6.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FB2355-90777%2Findex.html&aid=SEARCH_MANUAL&pil=7&serStr=hp9000+configure+router

http://www6.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FT1298-90004%2Findex.html&aid=SEARCH_MANUAL&pil=1&serStr=hp9000+configure+router

Important note: You can't have two NIC cards on the same network. That will stop allnetwork traffic. Though both your addreses are class C, you need to take that into account.

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
tom quach_1
Super Advisor

Re: configure hp9000 box as a router

Thanks Steven for the info.
I will try to read this but if you have any shortcut instruction, I would really appreciated.

Regards,

Tom
Artyom Voronchihin
Respected Contributor
Solution

Re: configure hp9000 box as a router

Hello!

Not clearly undestand what addresses interfaces have in HP1 box. Let it be 192.168.0.1 and 10.10.2.1 (zero host address like 192.168.20.0 is invalid with such subnet mask, because it's the address of entire subnet)

1. Check if ip_forwarding is enabled on HP1.
#ndd -get /dev/ip ip_forwarding
(should return 2)

2. On every client machine in 192.168.20.0 subnet add route to subnet 10.10.2.0 through 192.168.0.1 interface in HP1 box (man route(1M)).
#route add 10.10.20.0 MASK 255.255.255.0 192.168.20.1

3. Similary on all clients in subnet 10.10.20.0
#route add 192.168.20.0 MASK 255.255.255.0 10.10.20.1

4. Try to ping addresses from one subnet to another.
"Intel inside" is not a label, it's a warning.
Artyom Voronchihin
Respected Contributor

Re: configure hp9000 box as a router

Ops. 10.10.20.* should be read as 10.10.2.* of course.
"Intel inside" is not a label, it's a warning.
tom quach_1
Super Advisor

Re: configure hp9000 box as a router

HiArtyom,

Thanks for your help,
this command route add, i use in windows ENV
but somehow could not think of it in UNIX.
it works well, I could ping from another server in my LAN (HP2) to SV1 and SV2 but not SV3
SV1 ip:192.168.20.1
SV2 ip:192.168.20.2
SV3 ip:192.168.20.4

sub:255.255.255.0
gateway:192.168.20.254

double checked ip, submask,gateway in SV3
and they are correct.

--another small problem:
when telnet 192.168.20.1

#telnet 192.168.20.1
Trying...
Connected to 192.168.20.1.
Escape character is '^]'.

Please type [Return] two times, to initialize telnet configuration
For HELP type "?"
>
type /
===JetDirect Telnet Configuration===
how can i make the telnet works.

Thanks a lot,

Tom
Artyom Voronchihin
Respected Contributor

Re: configure hp9000 box as a router

Tom, please post routing table for SV3. "netstat -rn" command for HP-UX or "route print" for Windows.
What about telnet, everything seems alright. 192.168.20.1 is a JetDirect network printer, and when you try to connect this address, you get into its configuration menu.
"Intel inside" is not a label, it's a warning.
tom quach_1
Super Advisor

Re: configure hp9000 box as a router

Hi Artyom,

here're the result of 2 boxes
the 1st one is ok the 2nd is not.
#netstat -rn
Routing tables (able to ping)
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.21.1 192.168.21.1 UH 0 lan1 4136
192.168.20.1 192.168.20.1 UH 0 lan0 4136
192.168.20.0 192.168.20.1 U 2 lan0 1500
192.168.21.0 192.168.21.1 U 2 lan1 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 192.168.21.254 UG 0 lan1 0


#netstat -rn
Routing tables (not able to print)
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.20.4 192.168.20.4 UH 0 lan0 4136
192.168.20.0 192.168.20.4 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 192.168.20.254 UG 0 lan0 0

regarding telnet.
192.168.20.1 is not a jetdirect, it is a unix box. I cannot get in
the previous screen was the one i've received when telnet to the unix box.

Regards,

Tom