BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2010, 05:53 AM
orrie orrie is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2010
Posts: 1 orrie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 53 sec
Reputation Power: 0
[OpenBSD] Error with static IP

I've just installed OpenBSD for the second time in the last 24 hours and I'm still wondering:
Why do I get the message "nfe0: No link.." when I've set static ip?

/etc/hostname.nfe0:
Code:
dhcp NONE NONE NONE NONE
inet 10.1.1.5 255.255.255.0 NONE


When I'm running sh /etc/netstart I get the message:
Code:
nfe0: no link ........... sleeping


But, when I'm running dhclient nfe0 (and putting the cable into the modem) I get internet and everything is OK.
The clue is that I'm not going to have internet on this, just a local machine.

And, when I'm running ifconfig nfe0 inet 10.1.1.5 netmask 255.255.255.0 and trying to ping other machines on the local network, I get the message Host is down, but it's not..


Output of ifconfig nfe0:
Code:
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:11:09:c0:e5:97
priority:0
media: Ethernet autoselect (none)
status: no carrier
inet6 xxxx:211:9ff:fec0:e597%nfe0 prefixlen 64 scopeid 0x1
inet 10.1.1.5 netmask 0xffffff00 broadcast 10.1.1.255



Why do I get the annoying message nfe0: no link ........... sleeping?


edit: Added some more info.
edit2: added ifconfig

Reply With Quote
  #2  
Old February 12th, 2010, 12:40 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,406 Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 10 h 15 m 18 sec
Reputation Power: 4080
Odd. Status shows "no carrier". This means it doesn't think that the jack is plugged into the card.

Wait a minute, did you say you had two lines in /etc/hostname.nfe0. The first line is incorrect. There should be only one line there if you want a static IP:
Code:
inet 10.1.1.5 255.255.255.0 10.1.1.255

What's happening is that when you have the dhcp line there, it is sending packets trying to connect to a DHCP server. Since you don't have the network card connected, that fails.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > [OpenBSD] Error with static IP

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap