Operating System - HP-UX
1833694 Members
3154 Online
110062 Solutions
New Discussion

Re: Lan card configuration problem !!!

 
Venky_1
Frequent Advisor

Lan card configuration problem !!!

Hello,

After configuring the second lan interface (lan1)and making required changes in the netconf and driver files, I stopped and then started the network services. But I get the following error message.
=======================================
ERROR: Failed to add route entry because its interface is not yet initialized. May need to add this route entry with a route command after the interface is up : add net 10.17.254: gateway 10.17.255.254: Network is unreachable
==========================================

Any suggestions ...........

Thanks
Venkata
Winners never quit and quitters never win
18 REPLIES 18
harry d brown jr
Honored Contributor

Re: Lan card configuration problem !!!

Can you show us your net.conf changes - make sure to show both lan's.

live free or die
harry
Live Free or Die
Helen French
Honored Contributor

Re: Lan card configuration problem !!!

Hi,

How did you restart the network services ? Is the lan1 configured and up now ?

Did you try using the ifconfig command ?

# ifconfig lan1
# ifconfig lan1 up

HTH,
Shiju
Life is a promise, fulfill it!
Sandip Ghosh
Honored Contributor

Re: Lan card configuration problem !!!

First do a lanscan and see whether the interface is up or not.
If not try to reset it through lanadmin. Through lanadmin you can reset any specific NIC.
What your ioscan is showing against that hardware address? Is it showing claimed?

Sandip
Good Luck!!!
Venky_1
Frequent Advisor

Re: Lan card configuration problem !!!

Hi,

Please see the attachment with the changes I made for both the cards.

Thanks
Venkata
Winners never quit and quitters never win
Venky_1
Frequent Advisor

Re: Lan card configuration problem !!!

Hi,

Yes, it shows as claimed when using ioscan and also the interface is up.

FYI
Card is PCI 10/100Base-TX

Thanks
Venkata
Winners never quit and quitters never win
Helen French
Honored Contributor

Re: Lan card configuration problem !!!

pap
Respected Contributor

Re: Lan card configuration problem !!!

Hi Venkata,

It seems that the problem is with your broadcast address and subnet mask.

Just check it again.
"Winners don't do different things , they do things differently"
rick jones
Honored Contributor

Re: Lan card configuration problem !!!

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="10.184.5.37"
SUBNET_MASK[0]="255.248.0.0"
BROADCAST_ADDRESS[0]="10.191.255.255"
INTERFACE_STATE[0]="up"
DHCP_ENABLE[0]=0

INTERFACE_NAME[1]="lan1"
IP_ADDRESS[1]="10.17.254.8"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]="10.17.254.255"
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]=0

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]="255.248.0.0"
ROUTE_GATEWAY[0]="10.191.255.254"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

ROUTE_DESTINATION[1]="net 10.17.254"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="10.17.255.254"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

IIRC, when an interface is ifconfig'd, it will automagically add the local net route, which means that your ROUTE_*[1] is redundant - the config info for th elan1 interface should already create that route to the 10.17.254 net.

Ignoring that, your ROUTE_COUNT[1] is bogus - that route is through a machine-local IP address, which means the count should be 0. A count of one or more is only used when the gateway is another system on the same LAN segment. However, you specify 10.17.255.254 as the ROUTE_GATEWAY[1] IP which is _not_ a local IP address. Perhaps you have the destination and gateway IPs reversed? Is the destination suppsed to be 10.17.255 and the gateway the local 10.17.254.254?

I also tend to let ifconfig figure-out the broadcast address based on the ip and subnetmask so I don't put that in...
there is no rest for the wicked yet the virtuous have no pillows
Darrell Allen
Honored Contributor

Re: Lan card configuration problem !!!

Hi Venkata,

Rick is right on (as usual). Delete the route [1] stanza for "net 10.17.254". ifconfig will add a route to the directly connected net.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Venky_1
Frequent Advisor

Re: Lan card configuration problem !!!

Hi all,

Thanks for your valuable suggestions. But I am still far from resolving my problem. I have again done all the required changes as per the inputs but still the problem persists. This time there is no error but I am not able to ping the server from any PC in other subnet.And I am able to ping the gateway of the second lan card. There is no communication problem.

FYI
lan1 details :-
IP address - 10.17.254.8
Gateway - 10.17.254.254
Subnet - 255.255.255.0

Any suggestions ..........

Thanks
Venkata
Winners never quit and quitters never win
John Carr_2
Honored Contributor

Re: Lan card configuration problem !!!

Hi

this is the line taken from your netconf file

ROUTE_GATEWAY[1]="10.17.255.254"

surely it should be

ROUTE_GATEWAY[1]="10.17.254.254"

cheers
John.
Venky_1
Frequent Advisor

Re: Lan card configuration problem !!!

Hi John,

This change was already done and tested . But still there is no luck.

Thanks
Venkata
Winners never quit and quitters never win
K.Vijayaragavan.
Respected Contributor

Re: Lan card configuration problem !!!

Hi Venkat,

Have you restarted the system atleast once after doing all these change?

-Vijay
"Let us fine tune our knowledge together"
Venky_1
Frequent Advisor

Re: Lan card configuration problem !!!

Hi Vijay,

No, but I have restarted the network services using "./net start" under /sbin/init.d.

Do you think reboot will solve the problem.


Thanks
Venkata
Winners never quit and quitters never win
K.Vijayaragavan.
Respected Contributor

Re: Lan card configuration problem !!!

Hi,

If you have got the error

"ERROR: Failed to add route entry because its interface is not yet initialized." still when doing "net start" then better to restart.

-Vijay
"Let us fine tune our knowledge together"
John Carr_2
Honored Contributor

Re: Lan card configuration problem !!!

Hi

I agree with the reboot after all the changes at least we know exactly were we are coming from if there is still a problem.

we will get there eventually.

John.
Venky_1
Frequent Advisor

Re: Lan card configuration problem !!!

Hi Vijay,

After making the latest changes, when I executed "net start" there was no error which I got initially.

Anyway, now I will reboot the server and see what happens.

Thanks
Venkata
Winners never quit and quitters never win
Moon Sang Guk
Occasional Advisor

Re: Lan card configuration problem !!!

#lanadmin


enter ppa lan#
reset

ip route add default XXX.XXX.XXX.XXX 1

then slove that problem