On Wed, Nov 12, 2014 at 03:10:01PM +0000, Stuart Henderson wrote:
> On 2014/11/12 09:49, rjc wrote:
> > On Wed, Nov 12, 2014 at 09:13:37AM EST, Stefan Sperling wrote:
> > 
> > > On Wed, Nov 12, 2014 at 03:26:02PM +0200, Lars Engblom wrote:
> > >
> > > > I guess you mean the case of having several network interfaces. Let
> > > > all of the unconfigured interfaces get the IP settings from
> > > > hostname.default and write this in the documentation. It is easier
> > > > to plug in just one cable than having to guess all the names of the
> > > > interfaces (em0, bge0, re0, rl0 etc).
> > >
> > > One problem with this idea is that you can't have the same IP on
> > > multiple interfaces and expect things to work.
> > >
> > > A recent discussed on misc@ made this quite clear:
> > > http://marc.info/?l=openbsd-misc&m=141564884907430&w=2
> > 
> > The scope there was even broader:
> > 
> > PH> That is not supported.  You MUST NOT have IPs in the same range on
> > PH> different interfaces.
> > 
> > I think I know what the OP has in mind - having a "default" IP address
> > configuration which gets assigned to an interface where "media" is
> > present.
> > 
> > The only way I see this working is with only a single Ethernet adaptor
> > has the cable plugged in - otherwise it gets messy.
> 
> It's messy anyway.

I agree but...

> You have to know which are normal network adapters
> and which are not - some obvious examples are enc0, pflog0, lo0
> 

...any interface that is not listed by 'ifconfig -C'.

> > One way or another, this shouldn't be too difficult to script and run
> > from /etc/rc.firsttime.
> 
> Yep. Much better idea.
> 

Reyk

Reply via email to