en0 fail to up.


 
Thread Tools Search this Thread
Operating Systems AIX en0 fail to up.
# 1  
Old 02-17-2011
en0 fail to up.

This is a LPAR that i created earlier.
I want to set an IP address to en0 but it failed.

Code:
Command: failed        stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

[TOP]
en0
devdbm01
inet0 changed
Method error (/usr/lib/methods/chgif):
        0514-068 Cause not known.
0821-510 ifconfig: error calling entry point for /usr/lib/drivers/if_en: There i
s not enough memory available now.
0821-103 : The command /usr/sbin/ifconfig en0 inet  10.23.177.82 arp netmask 255
.255.255.0 mtu 1500 up failed.
0821-007 cfgif: ifconfig command failed.
        The status of"en0" Interface in the current running system is uncertain.
0821-103 : The command /usr/lib/methods/cfgif -len0 failed
0821-510 ifconfig: error calling entry point for /usr/lib/drivers/if_en: There i
s not enough memory available now.
0821-103 : The command /usr/sbin/ifconfig en0 inet 10.23.177.82 arp netmask 255.
255.255.0 mtu 1500 up failed.
0821-229 chgif: ifconfig command failed.
The status of"en0" Interface in the current running system is uncertain.

mktcpip: Problem with command: chdev
, return code = 1


devdbm01-root /etc> lsdev | grep en0
en0        Stopped         Standard Ethernet Network Interface
devdbm01-root /etc>

I have tried to remove the device en0 and launch cfgmgr. The result is the device appeared as defined but when i try to give it a IP, it will give the results as shown above.

When I tried to launch ifconfig en0 up, it gives error related to memory (see the following).
Code:
devdbm01-root /etc> ifconfig en0 up
0821-510 ifconfig: error calling entry point for /usr/lib/drivers/if_en: There is not enough memory available now.

I launch the following
Code:
devdbm01-root /etc> lsattr -El mem0
ent_mem_cap         I/O memory entitlement in Kbytes           False
goodsize       6144 Amount of usable physical memory in Mbytes False
mem_exp_factor      Memory expansion factor                    False
size           6144 Total amount of physical memory in Mbytes  False
var_mem_weight      Variable memory capacity weight            False

devdbm01-root /etc> lsps -a
Page Space      Physical Volume   Volume Group Size %Used Active  Auto  Type Chksum
hd6             hdisk0            rootvg       10240MB     1   yes   yes    lv     0

Any idea whats is wrong ? this is way too much ahead of my experience Smilie


Moderator's Comments:
Mod Comment edit by bakunin: Please use CODE-tags when posting code or terminal output. It enhances readability and is equally easy as using FONT- and SIZE-tags. Thank you.

Last edited by bakunin; 05-28-2011 at 03:14 PM..
# 2  
Old 02-17-2011
OK, its could be an adapter error or a connection error,

Try the following commands:
lsdev -F name|grep ent | xargs -i -t rmdev -dl {} -R
this will remove all your network adapter
rmdev -dl inet0 -R
this will remove all your network settings
cfgmgr

Now try to give your en the IP address you want,
if this is not succeed try again the above commands and then try the ifconfig command just to take up the en
ifconfig en0 up

after the up command run tcpdump on the interface(en0)
tcpdump -i en0
and look for connectivity (the output of the command will dump the traffic on the interface),
if you got nothing you a network connectivity problem,

please send us the errpt output for any hardware\software error.

Goodluck,

Last edited by Scott; 02-17-2011 at 05:41 PM..
This User Gave Thanks to AixCraft For This Post:
# 3  
Old 02-17-2011
... there isn't enough memory available now ?? Do you have /dev/hd6 ?

Regards
zxmaus
# 4  
Old 02-17-2011
zxmaus,
/dev/hd6 doesnt exists. but how its related ?

aixcraft,
one of the command doesnt work so I proceed to remove the adapters settings and launch cfgmgr. Then set the IP. it work :P, but my other machines cannot ping this IP.
or I still have to launch the lsdev xxxx command ?

devdbm01-root /> lsdev -F name|grep ent | xargs -i -t -dl {} -R
xargs: The -d flag is not valid.
Usage: xargs [-ptx] [-e[EndOfFileString]] [-E EndOfFileString]
[-i[ReplacementString]] [-I ReplacementString | -L Number |-n Number ]
[-l[Number]] [-s Size] [Command [Argument ...]]
devdbm01-root /> rmdev -dl inet0 -R
en0 deleted
en1 deleted
et0 deleted
et1 deleted
en2 deleted
et2 deleted
lo0 deleted
inet0 deleted
devdbm01-root />



devdbm01-root /> tcpdump -i en0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on en0, link-type 1, capture size 96 bytes
^C
0 packets received by filter
0 packets dropped by kernel


Grateful for your help, guys.

---------- Post updated at 04:22 AM ---------- Previous update was at 04:21 AM ----------

you still need the errpt ? There are plenty of them there Smilie

---------- Post updated at 04:51 AM ---------- Previous update was at 04:22 AM ----------

Hello AixCraft,

I manage to remove both ent0 and ent1.
devdbm01-root /> rmdev -dl ent0 -R
ent0 deleted
devdbm01-root /> rmdev -dl ent1 -R
ent1 deleted
devdbm01-root /> lsdev -Cc adapter
lhea0 Defined Logical Host Ethernet Adapter (l-hea)
vsa0 Available LPAR Virtual Serial Adapter
vscsi0 Available Virtual SCSI Client Adapter
vscsi1 Available Virtual SCSI Client Adapter
devdbm01-root />

Then remove the adapter settings.
Launch cfgmgr again and then keyin the IP address. and I can finaly ping from other machine.

dbm01-root /usr/lpp/X11/bin> lsdev | grep ent
ent0 Available Logical Host Ethernet Port (lp-hea)
ent1 Available Logical Host Ethernet Port (lp-hea)
ent2 Available 02-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent3 Available 02-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent4 Available 03-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent5 Available 03-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent6 Available EtherChannel / IEEE 802.3ad Link Aggregation
ent7 Available EtherChannel / IEEE 802.3ad Link Aggregation
dbm01-root /usr/lpp/X11/bin>

Many thanks !!!
# 5  
Old 02-17-2011
Great, you welcome.

the reason for the first command doesn't working for is because I forget the main command there Smilie,

so FYI this is the command:
lsdev -F name|grep ent | xargs -i -t rmdev -dl {} -R

by the way the following command will do the same:
rmdev -dl lhea0 -R

I'm very happy its help you.

no need for the errpt Smilie

Last edited by Scott; 02-17-2011 at 05:41 PM..
# 6  
Old 02-17-2011
Hi,

you get the memory errors because you do not seem to have any paging spaces.

If you run lsps -a - do you get anything? If not I would highly recommend to create at least one in rootvg as many commands won't work properly without.

Regards
zxmaus
# 7  
Old 02-18-2011
hello zxmaus,

i did lsps -a to see the paging space but nothing look full.
I guess the problem is coming from the virtual ethernet connection settings.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Fail to register

After inputted all required fields in registration page, the below message is shown and cannot go on. A required field called Custom Date & Time Formats is missing or has an invalid value. (2 Replies)
Discussion started by: Unregistered
2 Replies

2. Shell Programming and Scripting

Untar fail

Hi Team, I have a file named as follows: aaa.tar.gz Now I need to verify if the untar fails, then the script has to send a mail. In order to check this condition, I need a tar.gz file which is unable to untar it. Can anyone help me to create a file which I will be able to unzip successfully... (2 Replies)
Discussion started by: kmanivan82
2 Replies

3. Red Hat

Cluster form fail

why does my cluster form but fail after a few minutes, or why do my multicast communications stop working after a short amount of time? (1 Reply)
Discussion started by: gema.utama
1 Replies

4. Linux

Telnet fail

Hi, I try to telnet to server: # telnet xx.xxx.1.72 1521 Trying xx.xxx.1.72... telnet: connect to address xx.xxx.1.72: Connection refused telnet: Unable to connect to remote host: Connection refused iptables is off: # service iptables status Firewall is stopped. # And I have edit... (4 Replies)
Discussion started by: mehrdad68
4 Replies

5. Shell Programming and Scripting

Why does my test fail ??

Hello, I am stuck... i dunno why does my test fail... any idea ? #!/bin/bash dos2unix info.txt Distor=Distributeur LINE=$(cat info.txt | sed -n 1p) echo $LINE echo $Distor echo "" echo "123-$LINE-123" echo "123-$Distor-123" if ; then LINE2=$(cat info.txt | sed -n 2p) echo $Distor... (14 Replies)
Discussion started by: patx
14 Replies

6. HP-UX

hpux 11.31 vgimport fail

i'm trying to vgimport the map file from vgexport -p -v -s -m to fail over node (adoptive node in service guard). root@noe04:/etc/cmcluster/icasprd$ vgimport -s -m gicasprd.110810.map /dev/vgicasprd vgimport: Volume group "/dev/vgicasprd" already exists in the "/etc/lvmtab" file. the... (2 Replies)
Discussion started by: lamoul
2 Replies

7. Shell Programming and Scripting

fail on comparison

Hi Am having 2 files. I have one data file. before inserting in to the table am taking cout of the data file and store as data 1. After insert in to the table and am taking the count from the table and store as data2. If i try to compare those values If then echo "data match"... (5 Replies)
Discussion started by: bobprabhu
5 Replies

8. Shell Programming and Scripting

Rename fail

I've a lot of file with an hyphen on filename, so I use rename for remove him ad substitute with an underscore but it fails $ rename 's/\-/\_/' * Unknown option: _ Unknown option: i Unknown option: r Unknown option: e Unknown option: e Unknown option: _ Unknown option: g Unknown... (12 Replies)
Discussion started by: cv313x
12 Replies

9. AIX

Network problem en0 - en1 !!!

HI , I am actually having a network problem with my p610 - AIX 5.2 ML7 . I have two integrated network card en0 and en1 ..en0 with ip 10.10.0.191 and en1 10.10.0.192. When i removed the network cable from en0 , i can't continue to ping en1(10.10.0.192) correctly. It is behaving as if en0 is... (8 Replies)
Discussion started by: johhny_bravo
8 Replies

10. UNIX for Dummies Questions & Answers

Mail fail

I am using the shell script file to send mail by "mailx". I do this by cron job, there is no error found. But it is fail, any suggest to me? How can I resend it automatically? Is there any resend logic by using the mailx? (3 Replies)
Discussion started by: adela
3 Replies
Login or Register to Ask a Question