1832857 Members
3080 Online
110048 Solutions
New Discussion

Route

 
atef_3
Contributor

Route

HP-UX 10.20
------------
I need to know how I connect host that has ip address(130.230.10.100) to another host that has different range of ip address(129.9.0.200)
or network(129.9.0.0) generally ?
(connect via hub or switch without router)

Thank you ,,
11 REPLIES 11
Sandman!
Honored Contributor

Re: Route

You can add a route to the destination host (129.9.0.200) or network (12.9.0.0) through an intermediate router or let the default gateway handle the routing i.e. if you have added a default route to your routing table. Post output of command:

# netstat -rnv
Steven Schweda
Honored Contributor

Re: Route

> [...] without router [...]

How do you expect to get from one network to
another without a router? That's what a
router does.

> (connect via hub or switch [...]

If the two systems are on the same physical
network, then you should be able to create an
interface on one of them which shares a
network with the other. This could be a
separate physical interface or a logical
interface. "man ifconfig"

On my 11.11 system, "sam" offers things like:
Networking and Communications
Network Interface Cards
Actions
Add IP Logical Interface...

A system with multiple IP addresses (on
different networks) normally acts as an IP
router.

Of course, if the systems share a physical
network, what's the point to giving them IP
addresses on different networks?
Kapil Jha
Honored Contributor

Re: Route

I think apart from Stevan's long list of questions(very general and important)
"route add" may help you.
BR,
Kapil
I am in this small bowl, I wane see the real world......
Steven Schweda
Honored Contributor

Re: Route

> "route add" may help you.

"route add" works better if there's a router
somewhere to be the destination of the added
route. Adding a route to an unreachable
network probably won't help much.
Kapil Jha
Honored Contributor

Re: Route

I am just guessing....if atef wants to connect one host from 130.230.10.100 to 129.9.0.200.
There must be some router or as you said may in same netowrk (That is why I said question from Stevan are very imp).

BR,
Kapil
I am in this small bowl, I wane see the real world......
atef_3
Contributor

Re: Route

How can I create multiple IP addresses ?
in system HP-UX 10.20
and How can I use command route add ?details

Thank you ,,
Jeeshan
Honored Contributor

Re: Route

If you want to use multiple ip address in single NIC you can use ip alaising by editing the /etc/rc.config.d/netconf file

INTERFACE_NAME[3]="lan0:0"
IP_ADDRESS[0]="129.9.1.1"
SUBNET_MASK[0]="0xffffff00"
BROADCAST_ADDRESS[0]="129.9.1.255"
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0


and like this

a warrior never quits
Steven Schweda
Honored Contributor

Re: Route

> [...] by editing the
> /etc/rc.config.d/netconf file

I assume that that's what "sam" does. (I
know which is easier.)
atef_3
Contributor

Re: Route

Can I create multiple IP addresses(in system HP-UX 10.20) ? How ?

Thank you ,,
Steven Schweda
Honored Contributor

Re: Route

> Can I create multiple IP addresses(in
> system HP-UX 10.20) ? How ?

Dec 4, 2007 03:47:37 GMT

Dec 5, 2007 07:31:31 GMT

"man ifconfig" Which (at 11.11) says:

[...]
IP Index Number
Multiple IP addresses assigned to the same interface may be in
different subnets. An example of an interface name without an IP
index number is lan0. An example of an interface name with a IP index
number is lan0:1. Note: specifying lan0:0 is equivalent to lan0.

A primary interface is an interface whose IP index number is zero. A
secondary interface is an interface whose IP index number is non-zero.
[...]

(Note that the Dec 5, 2007 07:31:31 GMT
posting shows "lan0:0", but for a secondary
interface you'd want, say, "lan0:1".)
Torsten.
Acclaimed Contributor

Re: Route

IIRC "ifconfig" works on 11.00 and later, but not on 10.20.
Have a look at "ifalias".

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!