DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd December 2008
zomo zomo is offline
Port Guard
 
Join Date: Sep 2008
Posts: 25
Thanked 0 Times in 0 Posts
Default ifconfig: SIOCAIFADDR: File exists

Hello friends

I get this when i execute "sh /etc/netstart":

ifconfig: SIOCAIFADDR: File exists

In my nic definition file hostname.re0 I have:

inet xx.yy.zz.xxx 255.255.255.252 NONE
inet alias xx.yy.zz.xxx 255.255.255.255


I cant figure out why this happening?
regards
Reply With Quote
  #2   (View Single Post)  
Old 23rd December 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,711
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by zomo View Post
inet xx.yy.zz.xxx 255.255.255.252 [broadcast address missing] NONE
inet alias xx.yy.zz.xxx 255.255.255.25
If you have options, you must have a broadcast address. See hostname.if(5) for specific syntax requirements.
Reply With Quote
  #3   (View Single Post)  
Old 23rd December 2008
zomo zomo is offline
Port Guard
 
Join Date: Sep 2008
Posts: 25
Thanked 0 Times in 0 Posts
Default

Code:
inet [alias] addr netmask broadcast_addr options
Code:
broadcast_addr
                   The optional broadcast address for the interface, e.g.,
                   190.191.192.255.  The word ``NONE'' can also be specified
                   in order to configure the broadcast address based on the
                   netmask.  The netmask option must be present in order to
                   use this option.
I dont understand you jggimi? Word "NONE" compute broadcast for me. I can leave None and replace with my broadcast number, but this doesnt solve my problem, thanks
Reply With Quote
  #4   (View Single Post)  
Old 23rd December 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,711
Thanked 214 Times in 189 Posts
Default

Sorry, my error for reading your problem report too quickly; I've always manually added the broadcast address in my hostname.* files.

I've seen the SIOCAIFADDR: File exists error message discussed in misc@ -- from what I can gather there, it usually means the alias is already configured.

$ ifconfig

does not show alias addresses.

$ ifconfig -A

should show them.
Reply With Quote
  #5   (View Single Post)  
Old 23rd December 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

The /etc/netstart script should only be executed by the rc script, you should never need to execute it manually.

If you have a specific issue, perhaps then we can help.
Reply With Quote
  #6   (View Single Post)  
Old 23rd December 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
The /etc/netstart script should only be executed by the rc script, you should never need to execute it manually.
Huh? See Section 6.2.5 of the FAQ, my friend:

http://openbsd.org/faq/faq6.html#Setup.activate
Reply With Quote
  #7   (View Single Post)  
Old 23rd December 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Never have I had to run that script manually, perhaps it would be easier to help fix the specific problem the OP is experiencing?

Quote:
Originally Posted by FAQ 6.2.5
Even though you can completely reconfigure networking on an OpenBSD system without rebooting, a reboot is HIGHLY recommended after any significant reconfiguration.
If he's simply adding an inet alias for example, running that script isn't necessary..
Reply With Quote
  #8   (View Single Post)  
Old 23rd December 2008
zomo zomo is offline
Port Guard
 
Join Date: Sep 2008
Posts: 25
Thanked 0 Times in 0 Posts
Default

thanks, everyone!
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sh, checknig if file exists graudeejs Programming 7 21st August 2008 03:57 PM
need some basic help on ifconfig daemon-dd FreeBSD General 4 29th July 2008 03:21 PM
FreeBSD's Ifconfig for WEP tz24 FreeBSD General 15 13th June 2008 02:17 AM
hard lock on ifconfig wi0 up reuteler OpenBSD General 11 25th May 2008 06:22 PM
ifconfig problem ichigo OpenBSD General 3 20th May 2008 10:59 PM


All times are GMT. The time now is 11:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick