> > ...I can live without the alias address, it would have been > > a convinient way to access the ADSL modem on the WAN side from inside > > the LAN network. > > Perhaps you could add an ifconfig(8) command to rc.local(8) to set > the alias.
As previously said any ifconfig aliasing command removes the DHCP obtained configuration which breaks the expected address reception from the DHCP server. Currently at the moment it's either DHCP or have alias, or not documented / known to me how to solve it. Please consider this real scenario. Sometimes it's not possible to reach the modem if it uses the so called "IP extension" to pass the external IP by DHCP (in the modem) to the OpenBSD box external interface. In this case, not having the option to manually add the alias declaration in the hostname.if leaves you without connection to the modem LAN interface. This is a deal breaker as not being able to control the modem you lose chances of resetting it when it stops passing traffic, monitor stats, logs etc. Not to mention the fact that it was not within reach how to set a default gateway on the OpenBSD box assigned by the ISP as a static route upon DHCP reception of the external IP so that the OpenBSD box would be able to access the Internet. The gateway is a different IP with each lease and is not in the DHCP address space, so requires manual addition of the route to be able to reach it via the modem. This was the second show stopper and had to rest the case. If anyone had the same issue, please advise if it has a solution. This lead to abandon the passing of external IP address ("IP extension") to the OpenBSD system and forced use of the NAT in the modem which is flawed anyway and can't handle that much connections due to its limited resources. So, sometimes the fact you can't use DHCP with aliasing another IP is not that easy to live with. One could imagine more use cases when DHCP and aliasing an IP is required. Please can someone say if this is possible to achieve using base dhclient? > Or, you might be able to do what you desire with isc-dhcp-client. > That's not nice to handle, and creates another set of problems. This does not solve the need to have a alias capability after / with dhclient in base.