1834935 Members
2392 Online
110071 Solutions
New Discussion

Re: Routing

 
Balasiu Dan
Advisor

Routing

Hi!

we have a HPUX 10.20 server with 2 LAN cards (lan0,lan1)
Lan0 is disabled, lan1 active (this is a normal situation).
We had to change the IP Adress and the Netmask for this server, we did it with "set_parms".
After reboot, the default gateway is bound to lan0, the disabled interface, so routing does not work.
(netstat -nr..)
I tried to modify the netconf file, putting the lan1 flag in the ROUTE_GATEWAY parameter.
It did not work!

Can anybody help me?

thanks a lot
dan


13 REPLIES 13
Robin Wakefield
Honored Contributor

Re: Routing

Hi Dan,

The ROUTE_GATEWAY should contain the IP address.

If this does not work, perhaps you could post the output from the netconf file and the netstat commands.

rgds, Robin
Sergejs Svitnevs
Honored Contributor

Re: Routing

In the netconf file put the lan1 flag in the ROUTE_DESTINATION[X]="default" parameter. Then try to execute net stop/start.
Regards,
Sergejs
Balasiu Dan
Advisor

Re: Routing

Hi Robin!

i??ll post you the
netstat output and
the tailed netconf file.

thanks
dan
Balasiu Dan
Advisor

Re: Routing

Hi Robin,

ohh..
there is the second file..

dan
Sergejs Svitnevs
Honored Contributor

Re: Routing

Try to flush the route tables with
/usr/sbin/route -f.
Then try adding default route like :
route add default 172.16.1.101 1

Sergejs

Balasiu Dan
Advisor

Re: Routing

Hi Sergejs!

route add ....
does not work!
error: network unreachable..
though i can ping 172.16.1.101

dan
Adam J Markiewicz
Trusted Contributor

Re: Routing

Hi

You have both interfaces in the same network.
HP sets the routing at the 'first match' basis.

If you do not use one interface set it's IP to match another network (this is rather workaround than a solution).

Generally speaking you shouldn't have two interaces in the same network on HP, I'm affraid.

Good luck

Adam
I do everything perfectly, except from my mistakes
M. Jansink
New Member

Re: Routing

Dan,

Most likely you gave as routing hops "0" during installation.

edit:
/etc/rc.config.d/netconf

ROUTE_DESTINATION[0]="default"
ROUTE_GATEWAY[0]="x.x.x.x"
ROUTE_COUNT[0]="1"
Balasiu Dan
Advisor

Re: Routing

Hi Jansink,

the "hop" number is "1"

thanks
dan
Adam J Markiewicz
Trusted Contributor

Re: Routing

Sergejs Svitnevs
Honored Contributor

Re: Routing

try to disable lan0 in netconf file:

INTERFACE_NAME[0]=lan0
#IP_ADDRESS[0]=172.16.4.100
#SUBNET_MASK[0]=255.255.0.0
#BROADCAST_ADDRESS[0]=172.16.255.255
#LANCONFIG_ARGS[0]="ether"
#DHCP_ENABLE[0]=0
INTERFACE_STATE[0]=down

then reboot.

P.S. recheck your netconf file.

Sergejs
Balasiu Dan
Advisor

Re: Routing

Hi Adam,

thanks for your replies;
i will make all changes and next week i will mail you.

thanks a lot

dan

Balasiu Dan
Advisor

Re: Routing

Hi Adam,

it works!!

you got your 8 points!

thanks
dan