Operating System - HP-UX
1752448 Members
6013 Online
108788 Solutions
New Discussion юеВ

Re: Interface is not configured

 
E. Vodegel
Occasional Advisor

Interface is not configured

Hello,

I've got the following problem.

I have setup my D200 server (HP-ux 11.0) as a DHCP client. When I did this my server has setup automatically an IP address, gateway,etc... by DHCP. This works fine, but when I want to ping another server I get no response. When I want to ifconfig lan0 I get the message "ifconfig: no such interface".

When I want to configure it by SAM I get the same error messages.

From the DHCP server I get my info, thus my network card is not defect.

lanscan says that my network card is up. with an ioscan I get:
lan 0 16/6 lan2 claimed interface built-in-lan /dev/diag/lan0 /dev/ether0. When I ping 127.0.0.1 I get response.

How can I configure my lan?

Thanks in advance,
Erwin
8 REPLIES 8
Ian Dennison_1
Honored Contributor

Re: Interface is not configured

Did you give us the right 'ioscan' output? Because this ouptut only shows lan2, and you are attempting to configure lan0.

What is your default gateway? command 'netstat -r', note the entry with 'default' present in it.

Cheers, ian Dennison
Building a dumber user
harry d brown jr
Honored Contributor

Re: Interface is not configured

What does netstat -rn show?

what does lanscan show?


live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: Interface is not configured

Erwin,

another thing, is your dhcp host providing the default gateway?

live free or die
harry
Live Free or Die
Wilfred Chau_1
Respected Contributor

Re: Interface is not configured

logon from the console.

1) vi /etc/rc.config.d/netconf
enter your hostname, IP, netmask, gateway.
2) route -f
3) /sbin/init.d/net start
4) ifconfig lan?
5) netstat -rn

4&5 make sure you have the lan and route table configured.


Have fun!
Steven Sim Kok Leong
Honored Contributor

Re: Interface is not configured

Hi,

Just to add on, the reason why you were able to ping 127.0.0.1 is because 127.0.0.1 uses the loopback interface (lo0) and not lan0.

You can verify this with

# netstat -rn
# ifconfig lo0

With regards to your problem, you should provide us with the output of lanscan.

Hope this helps. Regards.

Steven Sim Kok Leong
E. Vodegel
Occasional Advisor

Re: Interface is not configured

Hello all,

Ian,
The ioscan output is right. The default gateway is 193.67.42.2 but this is only set in /etc/rc.config.d/netconf. With netstat -rn I don't see my default gateway.

Harry,
A lanscan gives the following output:
16/6 0x080009D289F4 0 up lan0 snap0 1 ether yes 119.

From my DHCP server I get my:
IP addresss
Subnet mask
gateway address
The DHCP server makes the files /etc/dhcpclient.data and /etc/hosts.

Bye,
Erwin
E. Vodegel
Occasional Advisor

Re: Interface is not configured

Hello all,

Ian,
The ioscan output is right. The default gateway is 193.67.42.2 but this is only set in /etc/rc.config.d/netconf. With netstat -rn I don't see my default gateway.

Harry,
A lanscan gives the following output:
16/6 0x080009D289F4 0 up lan0 snap0 1 ether yes 119.

From my DHCP server I get my:
IP addresss
Subnet mask
gateway address
The DHCP server makes the files /etc/dhcpclient.data and /etc/hosts.

Wilfred,
When I do /sbin/init.d/net start I get the following error:
"ERROR: lan0 interface: ifconfig: ioctl (SIOCSIFNETMASK): bad value
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 default: gateway 193.67.42.2: Network is unreachable

Bye,
Erwin
E. Vodegel
Occasional Advisor

Re: Interface is not configured

All,

I have found the answer on the HP site:

"This maybe a problem with the subnet mask being all 1's or 0's, which according to RFC1878/1122, is not allowed. There is an ndd tunable that you can apply to disable this subnet checking:

#ndd -set /dev/ip ip_check_subnet_addr 0

This must be added to /etc/rc.config.d/nddconf in order to survive a reboot.

Thanks,
Erwin