Hi Yury,

On Sun, Jan 17, 2016 at 12:21:51PM -0800, Yury Shefer wrote:
> [...]
> I was not able to find the information about ifconfig support for the IPv4
> address configuration where I have primary address assigned by DHCP
> (Comcast) and alias with static IP. My cable modem mgmt IP belongs to
> 192.168.100.0/24 subnet and to access it - I have to add an alias - but it
> always overwrite DHCP-assigned address (OpenBSD 5.8-stable (GENERIC.MP)).
> [...]

You might get somewhere by creating a bridge(4) interface, adding em0 to
that and adding a vether(4) to the bridge. dhclient would then run on
em0, adding and removing dynamically assigned IPv4-addresses, while
the vether has a static address:

# ifconfig bridge0 create
# ifconfig vether0 create inet 192.168.100.200/24 up
# ifconfig bridge0 add vether0
# ifconfig bridge0 add em0
# dhclient em0

The proper incantations in /etc/hostname.{bridge,vether,em}0 are left as
an exercise for the reader.

-- 
        Gregor

Reply via email to