Operating System - HP-UX
1752815 Members
5942 Online
108789 Solutions
New Discussion юеВ

Re: 2 networks how to route?

 
SOLVED
Go to solution
turbs
Valued Contributor

2 networks how to route?

Hi guys

I have a standard 192.x.x.x network which we all use for PC's at home, which also connects to the internet.

There is also a HP server which I use for development and testing, but this has a 10.x.x.x address, I cannot change the address as I have software on there which cannot be changed.

I cant telnet or run any x session at all to this server, i cant even ping it.

do i need a router? what other stuff do i need to access the server?

any links etc which will assist greatly appreciated.

regards
9 REPLIES 9
Steven Schweda
Honored Contributor
Solution

Re: 2 networks how to route?

Which "software on there which cannot be
changed" depends on the system's IP address?

You could probably add an additional
(192.x.x.x) IP address to your existing
network card ("man ipconfig"), but it's not
clear if you'd allow that either. If you
insist on making no changes to the "HP
server" (whatever that is), and if you don't
wish to change your existing "standard
192.x.x.x network" to match the other
system's "10.x.x.x address", then an IP
router would seem to be needed.

On the other hand, If all the other systems
on your home network use DHCP, then they
probably wouldn't care if you changed your
existing router from its 192.x.x.x
network/address.to a 10.x.x.x
network/address, which would seem to be the
(second) easiest way out.
turbs
Valued Contributor

Re: 2 networks how to route?

fantastic, thank you for your response.

basically, the 192 .x.x.x LAN is fine and not for changing and the Hp server cannot be changed, so to allow me to telnet to it from the comfort of my 192.x.x.x LAN (so stops me having to use a seperate monitor / keyboard etc) i need an IP router to route the different networks?

can you please advise on types of routers? cisco 2503 etc?

thanks . poits awarded to date
Michael Duthie
Trusted Contributor

Re: 2 networks how to route?

# netstat -rn (to verify which card has the 10.x.x.x address eg lan0)

# ifconfig lan0 (to view settings)

# ifconfig lan0:1 inet 192.x.x.x netmask 255.x.x.x up (to add logical ip to existing card, obviously replace the x's with a free address)

# ifconfig lan0:1 (to view settings)

# ping 192.x.x.254 (ping PC LAN router)

# route add net default 192.x.x.254 1 (where 192.x.x.254 is the router to the internet on your PC lan.)
Michael Duthie
Trusted Contributor

Re: 2 networks how to route?

PS ... This wont harm your exsisting 10.x.x.x configuration.

turbs
Valued Contributor

Re: 2 networks how to route?

ok, lets get this straight, i can assign another ipaddress to the interface on the HP box, which can then form part of the local 192.x.x.x network?

if so excellent, i will try this larer.

thank you...
Michael Duthie
Trusted Contributor

Re: 2 networks how to route?

Yes .. logical IP addressing.

1 card ... multiple addresses.

Works on windows systems with static addresses too.
Redhat
Trusted Contributor

Re: 2 networks how to route?

Use :-
ifconfig lan0:1 inet 192.x.x.x netmask 255.x.x.x up

ifconfig lan0:1 plumb

It will keep the additional IP config permanent even you reboot the HP server
Wei Jung
Trusted Contributor

Re: 2 networks how to route?

Hum, you should use iptables :)
You should NEVER EVER buy a router for a Linux box :D, by default they Linux OS is a router!! :).
Read some documentation regarding iptables, it's the best thing ever :).

http://en.wikipedia.org/wiki/Netfilter/iptables
Steven E. Protter
Exalted Contributor

Re: 2 networks how to route?

Shalom,

I recently saw some ugliness on a Windows box with two "default" gateways.

The system can only really have 1 default gateway and in the middle of production Thursday afternoon the system blew out all the Remote desktop users forwarded from one firewall and started accepting them from the backup firewall.

A big big windows gotcha. So be forwarned. One default gateway per box.

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