1837936 Members
2325 Online
110124 Solutions
New Discussion

Re: routing

 
Fabio_22
New Member

routing

Hi,

I want create a route in a HP-UX, but, i don??t get.

I used the command route with the parameters:

route add 192.168.5 192.168.4.243

it was created in a table routing, but the packet don??t arrive in the
host 192.168.4.243...

The HP-UX ping in that host, but don??t routing the packets....

Thanks.
6 REPLIES 6
Michael Steele_2
Honored Contributor

Re: routing

Use:

route add PC GATEWAY NETMASK HOP_COUNT

Obtain the information from lanscan and ifconfig.

i.e.,
ifconfig lan0

-and-

route add 192.168.4.243 192.168.5.250 255.255.252.0 2

For bootup cofiguration use /etc/rc.config.d/netconf

ROUTE_DESTINATION[1]=192.168.4.243
ROUTE_MASK[1]=255.255.252.0
ROUTE_GATEWAY[1]=192.168.5.250
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""

NOTE: Increase the indices to the next number [0], [1], etc.
Support Fatherhood - Stop Family Law
Fabio_22
New Member

Re: routing

Thanks Frederick,

I just put the paremeters net and metric and do it.

Thanks a lot.

Fabio
John Dvorchak
Honored Contributor

Re: routing

Fabio, first you route command is wrong. I am not sure but it looks like you are trying to define a static route to 192.168.5.0 network but you left off the final zero. Then you forgot the final parameter of HOP COUNT and if that is a router or device not local to the HPUX then that has to be a one (1). Here is what the route command should look like:

route add 192.168.5.0 192.168.4.243 1

That would route all packets to the 192.168.5.0 network via the 192.168.4.243 router.

To keep this route after a reboot, then look at the previous responce of how to do this in the /etc/rc.config.d/netconf file.
If it has wheels or a skirt, you can't afford it.
Michael Steele_2
Honored Contributor

Re: routing

Points?
Support Fatherhood - Stop Family Law
Anil C. Sedha
Trusted Contributor

Re: routing

If you need a temporary route you add the route through the route add command

route add net 192.168.5.* netmask 255.*.*.* 192.168.4.243


It has to work. If you need it permanently, edit your /etc/rc.config.d/netconf file for the same.

Copy a previous routing entry and edit after pasting it below.

-Anil
If you need to learn, now is the best opportunity
Fabio_22
New Member

Re: routing

Thanks...

What points? i don't know nothing about this...