Operating System - HP-UX
1833430 Members
3558 Online
110052 Solutions
New Discussion

Re: IFCONFIG - does not work

 
Raymond_12
Occasional Advisor

IFCONFIG - does not work

I trying to configure the lan card for a new HP A500 - HPUX11i.
I used the 'set_parms initial' and second time manually configured the /etc/rc.config.d/netconf also tried to manually start the S340net services - I still cant ping the machine from the network - any ideas why ? nor can i ping other PCs from that server .
raymond
13 REPLIES 13
T G Manikandan
Honored Contributor

Re: IFCONFIG - does not work

Some of the Q.

What is the ip of the PC?
What is the ip of the unix box?
Is there a gateway in-between?


Revert
Raymond_12
Occasional Advisor

Re: IFCONFIG - does not work

What is the ip of the PC? 183.139.79.25
What is the ip of the unix box? 183.139.79.67
Is there a gateway in-between? yes
ifconfig lan0 =>
lan0: flags=843
inet 183.139.79.25 netmask ffffff00 broadcast 193.129.79.255

its very much in same lines of the other AClass settings I have on the same network.
raymond
Raymond_12
Occasional Advisor

Re: IFCONFIG - does not work

sorry the boradcast is =>wrongly typed lan0: flags=843
inet 183.139.79.18 netmask ffffff00 broadcast 183.139.79.255
raymond
T G Manikandan
Honored Contributor

Re: IFCONFIG - does not work

Looks like both the machines are on the same network for which gateway is not reqd.

How about the routing table.

Do you have a routing entry for 183.139.79.0 network on the unix machine.

If it is not there then you can do a
#route add 183.139.79.0 unix-server-ip 0
#route add 183.139.79.0 183.139.79.18 0
-------------
I assume 183.139.79.18 as unix server ip.
Raymond_12
Occasional Advisor

Re: IFCONFIG - does not work

still not joy...
# netstat -r
Routing tables
Destination Gateway Flags Refs Interface Pmtu
localhost localhost UH 0 lo0 4136
newhp newhp UH 0 lan0 4136
183.139.79.0 newhp U 2 lan0 1500
127.0.0.0 localhost U 0 lo0 0
default 183.139.79.1 UG 0 lan0 0

--------------
/etc/hosts
127.0.0.1 localhost loopback
#
183.139.79.18 newhp loghost


raymond
T G Manikandan
Honored Contributor

Re: IFCONFIG - does not work

Now you need to check

1.Whether it can ping itself.

2.If you cannot ping anywhere

check the communication between the switch and the server.

i)If no,Try replacing the cable.
ii)Check the duplex and speed settings between the switch and the server.

Raymond_12
Occasional Advisor

Re: IFCONFIG - does not work

The server can ping itself.
but it cant ping anyone else
nor can anyone ping it.

The cable is fine - I tried on a different laptop to test. The router is fine as the current IP is takeen off a server which I shutdown yesterday.

I've tried creating this file ..
/etc/defaultrouter
183.139.79.1

to match up with the other existing HP server.

still not joy...
raymond
T G Manikandan
Honored Contributor

Re: IFCONFIG - does not work

Then you need to also check for the duplex and speed settings between the switch and the server.

Make sure that you keep auto_negotiation--off.

Just do a
#lanadmin

then 'lan'
then 'dis'

check for the errors there.

Also check your /var/adm/syslog/syslog.log file for any errors.

Also make sure that there is no ip-duplication
Raymond_12
Occasional Advisor

Re: IFCONFIG - does not work

ok - this is new to me.
escription = lan0 HP PCI 10/100Base-TX Core [NO LINK,,AUTO,TT=1500]
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 10000000
Station Address = 0x306e48d57f
Administration Status (value) = up(1)
Operation Status (value) = down(2)
Last Change = 100
Inbound Octets = 0
Inbound Unicast Packets = 0
Inbound Non-Unicast Packets = 0
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 0
Outbound Octets = 29640
Outbound Unicast Packets = 760
Outbound Non-Unicast Packets = 0
Outbound Discards = 8
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
---
I could not spot any errors in the log file.

reg,


raymond
Sergejs Svitnevs
Honored Contributor

Re: IFCONFIG - does not work

give the command lanadmin, then select the ppa Nr and give a reset.

Regards,
Sergejs
T G Manikandan
Honored Contributor

Re: IFCONFIG - does not work

the card is running at
Speed = 10000000

10Mbps and with auto_neg

below are the files for each card that is to be edited

btlan0 /etc/rc.config.d/hpeisabtconf
btlan hpbtlanconf
btlan1 hpbasetconf
btlan3 hpbase100conf
btlan4 hpgsc100conf
btlan5 hppci100conf
btlan6 hpsppci100conf

Just EDIT the appropriate file to make the speed to 100FD

FD--full duplex

When you set the speed in the config file the auto_neg is turned off.

Do check the speed and duplex settings on the switch side.

They should match for better performance(both speed and duplex)

Revert


Ron Kinner
Honored Contributor

Re: IFCONFIG - does not work

From your lanadmin:

Administration Status (value) = up(1)
Operation Status (value) = down(2)


This means you have it correctly programmed but it's not working which usually means a bad cable (should be a straight cable to your switch), a speed mismatch (verify that your switch is set to auto or set both ends to the same speed and duplex. Do not have one end on auto and the other fixed.), a defective port on the switch (could also be turned off - administratively down) or a bad NIC on the hpux. If you have a builtin NIC on your box it may have a different idea of how they are numbered than you might think so try plugging your cable in there or change your ppa to 2 in lanadmin and see what comes up.

Ron
Raymond_12
Occasional Advisor

Re: IFCONFIG - does not work

thanks TG & Ron -
the speed issue was correct.

on my server I used the 10Base-T instead or 10/100BASE-T port.
Casually I went benind the server to see whats the port speed and found the cable in the wrong port.

now it works fine

Thanks a ton
raymond