Operating System - HP-UX
1748143 Members
3663 Online
108758 Solutions
New Discussion юеВ

Re: I can't add route in Hp Unix11

 
SOLVED
Go to solution
hiepbt
New Member

I can't add route in Hp Unix11

when I setup complete OS Hp Unix 11 for Itanium Rx6600, I can not add route with SAM because when I restart Hp Unix. I view in Sam route no config. Pls help Thanks!
6 REPLIES 6
Suraj K Sankari
Honored Contributor

Re: I can't add route in Hp Unix11

Hi,
I think some problem with your sam
see the below example

default route through gateway 192.168.2.1
# route add default 192.168.2.1 1

creates a route for network 192.168.4.0 and its gateway is router 192.168.2.1.
# route add net 192.168.4.0 netmask 255.255.255.0 192.168.2.1

Suraj
Aneesh Mohan
Honored Contributor

Re: I can't add route in Hp Unix11

Khairy
Esteemed Contributor
Solution

Re: I can't add route in Hp Unix11

just use the command line,

the syntax will be :
# route add IP netmask gateway count

If you are not sure, man route.

Here is an example

# route add 192.168.0.0 255.255.255.0 192.1.1.1 1

If you want this config remains after reboot, add the following in /etc/rc.config.d/netconf

ROUTE_DESTINATION[1]="net 192.168.0.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="192.168.1.1"

Restart network
# /sbin/init.d/net stop
# /sbin/init.d/net start

If you want a default router, modify only the following ROUTE_GATEWAY parameter. Example below.

#remain
ROUTE_DESTINATION[0]=default
# change this
ROUTE_GATEWAY[0]="192.168.1.1"

Rgds

Really appreciate if you could assign some points.;)
hiepbt
New Member

Re: I can't add route in Hp Unix11

Thanks all! I try again.
ManojK_1
Valued Contributor

Re: I can't add route in Hp Unix11

Hi,

Please verify the /etc/rc.config.d/netconf
and make sure that there is no other entry exists for "ROUTE_GATEWAY".

If any entry exists remove it and manually add (don't do it from SAM)the details and restart the net service.
/sbin/init.d/net stop
/sbin/init.d/net start

also verify that there is no error during running this command.

Thanks and Regards,
Manoj K
Thanks and Regards,
Manoj K
hiepbt
New Member

Re: I can't add route in Hp Unix11

Tks all. I try added complete, i am using vi /etc/rc.config.d/netconf change
ROUTE_GATEWAY[0]="192.168.1.1"