ifconfig problem


 
Thread Tools Search this Thread
Special Forums IP Networking ifconfig problem
# 1  
Old 07-15-2005
ifconfig problem

Hi all,

I am getting some error messages during bootup

ifconfig :<hostname> bad address

and some more messages related to it.

I some how checked the /etc/hostanem.hme0 /etc/hosts file.

Entries in these files were proper.

If I am running the following command from root:

#ifconfig hme0 <IP Address >

#ifconfig hme0 plumb

#ifconfig hme0 up

I am able to telnet to other machine. Smilie

So I feel that thier is no problem with hardware.

Can any one suggest, what could be the problem... Smilie

Thanks in advance...

Last edited by amit_sapre; 07-17-2005 at 04:16 AM..
# 2  
Old 07-15-2005
Insure that the information in /etc/hostname.hme0 is correct - if you put a hostname in that file, insure it is spelled the same as the entry in /etc/hosts.
(this means that if you put mysystem in /etc/hostsname.hme0 but have mysystem.mydomain.com - that isn't the same)
/etc/hostname.hme0 can have either IP or hostname. Check the IP to insure accuracy. Check entry in /etc/hosts - insure there is no tab or space at the end of the entry (it vi you can :l to see the line and insure the $ endofline is there where it should be)

Check to insure that your network is available - maybe something else is hanging so the ifconfig can't plumb the interface but then it works later when you do it manually.
# 3  
Old 07-18-2005
Hi,

As mentioned in your reply, I double checked the /etc/hostname.hme0 and /etc/hosts entries. Also I checked these files for any tab space.

I could find any problem with these files. Smilie

BTW , I more thing..

This problem started after I ran fsck on the Sun machine for file system consistency. I did that, as the machine went off suddenly due to power cut.

I don't know, whether this information will help for not.

Any suggestion...??
# 4  
Old 07-18-2005
Check your startup files in /etc/rc2.d and rc3.d - check for permissions (files should be executable (rwx or r-x) for owner - check owner is root. List them long (ls -l) and then check that all links are actually there (usually linked to /etc/init.d directory).
# 5  
Old 02-19-2009
Java FSCK malfunctioning

I don't think that the power-cut will affect the FSCK, as the FSCK is to check the file system not to modify it, so I think it will remain untroubled.

Last edited by kaushik209; 02-19-2009 at 06:54 AM.. Reason: Wrong post
# 6  
Old 02-19-2009
You do realize this thread is almost 4 years old?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ifconfig Flags

Hi there, I need your help in understanding the below Solaris 10 ifconfig output; athnetspns02>ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0:... (2 Replies)
Discussion started by: wthomas
2 Replies

2. Shell Programming and Scripting

not able to run ifconfig

Unable to run the ifconfig in my home dir.. I did add adding /sbin and /usr/sbin in th PATH But still unable to get that .. Am using red hat linux cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.3 (Tikanga) (3 Replies)
Discussion started by: mail2sant
3 Replies

3. Linux

ifconfig - information

Hi All, I need some info on ifconfig. ifconfig is available in Linux and Solaris. However the options available in Solaris is not there in Linux. 1. ifconfig -a == output is different in both OS. I am somewhat able to compare the output. But one thing I am not getting is after the flags... (2 Replies)
Discussion started by: ahamed101
2 Replies

4. IP Networking

/etc/hosts changes when ifconfig......

Hello everyone. Im using last redhat enterprise edition and in my working environment, i'm always reconfiguring both interfaces , eth0 and eth1, everytime i change any interface, (i use ifconfig to change ip, and after i execute "/etc/init.d/network restart") my "/etc/hosts" file... (9 Replies)
Discussion started by: trutoman
9 Replies

5. Solaris

ifconfig -a not working

Hi All, I logged into a sun microsystems server box, using both a vnc session and a ssh session. I am able to use "ifconfig -a" in a ssh session, but the same on a vnc session says that its a invalid command. how is this possible, when i am logging into the same box through two different... (4 Replies)
Discussion started by: pardhuhere
4 Replies

6. UNIX for Dummies Questions & Answers

ifconfig and ipconfig

hey, I know that ifconfig on linux systems is identical to win ipconfig. I wanted to know if there is a linux distribution (new or old) that uses the ipconfig command. thanks alot :) (2 Replies)
Discussion started by: tsmotix
2 Replies

7. Shell Programming and Scripting

ifconfig!!!!

why the ifconfig command is not working in my machine? it says "-bash: ifconfig: command not found" why its says that? actually i m looking for "how can I know the Network Interface Card physical address?" Requesting u all for help. thanks (3 Replies)
Discussion started by: moco
3 Replies

8. OS X (Apple)

ifconfig

Hi, I type (as root) "ifconfig en1 ether aa:aa: " but it doesnt change the mac of my airport. Can anyone help me? Thx. (0 Replies)
Discussion started by: Jariya
0 Replies

9. UNIX for Dummies Questions & Answers

ifconfig

I am trying to change an IP address on a machine running HPUX10 After I change it I can ping it from the outside but it completely locks the console. After a reboot it returns back to its previous IP. Any ideas?? Thanks Brian (7 Replies)
Discussion started by: breigner
7 Replies

10. UNIX for Dummies Questions & Answers

Why do I have to cd into /sbin to get to ifconfig?

I have to cd into /sbin in order to use ifconfig to check out my network cards. This has only started to happen since I downloaded the last update from RedHat(The machine runs RedHat 8.0). Does anyone know what happened? More importantly, are there any sources that can help me with this... (3 Replies)
Discussion started by: Jody
3 Replies
Login or Register to Ask a Question