Operating System - HP-UX
1834254 Members
2423 Online
110066 Solutions
New Discussion

Re: Adding new route issue - route added to virtual lan card

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

Adding new route issue - route added to virtual lan card

Hi,

Server: HPUX 11.11 MC/SG 11.14 rp5470

When I add a new static route it adds it to the virtual lan card (lan0:1) instead of the
default lan card (lan0). Is there a way to force it to use just the default lan card?
Add route command we are using:
route net 192.168.87.0 netmask 255.255.255.128 192.168.223.1 1

Netstat output:
192.168.86.0 192.168.223.1 UG 0 lan0 0
192.168.87.0 192.168.223.1 UG 0 lan0:1 0


10 points to any good answer.
Thank you
Gino
4 REPLIES 4
RAC_1
Honored Contributor
Solution

Re: Adding new route issue - route added to virtual lan card

As sych you do not need a route for virtual route it uses same route as that of actual NIC.

You also need following.
route net 192.168.86.0 netmask 255.255.255.128 192.168.223.1 1
There is no substitute to HARDWORK
Gino Castoldi_2
Honored Contributor

Re: Adding new route issue - route added to virtual lan card

Hi,

Does my "route add" command look correct?
The problem is that I need the persistent route added to the actual NIC, not the virtual one. Other new routes that we have added have been to the actual NIC. This is the first time that we have had this kind of issue. The cluster package is running on this node so that is why we have the virtual lan card in the routing table.

10 points to any good answer.
Thank you
Gino
Enrico P.
Honored Contributor

Re: Adding new route issue - route added to virtual lan card

Hi,
the problem, how you said, is because you run the command after the package started.
It will disappear if you configure the static route in the /etc/rc.config.d/netconf an reboot the server. I don' t think there is another solution for your problem.

Enrico
James George_1
Trusted Contributor

Re: Adding new route issue - route added to virtual lan card

Here is the correct command sysntax

route add net 192.168.86.0 netmask 255.255.255.128 192.168.223.1 1

Rgds / James
forum is for techies .....heaven is for those who are born again !!