dhcpd on a vport in veb works a lot better if you want to try migrating.

On Fri, 24 Jan 2025, 06:40 Aurelien Martin, <01aurel...@gmail.com> wrote:

> Hi all,
>
> My dhcpd serve on interface em3 (that send DHCP querry) instead of vether0
> I have a vether0 in a bridge0 where I have 3 interfaces
> No issue on athn0
>
> Any idea ?
>
> Doc followed: https://www.openbsd.org/faq/faq6.html#Bridge  - A Bridge
> Acting as a DHCP Server
> Old thread:
> https://misc.openbsd.narkive.com/Td6tPsud/dhcp-over-vr-4-on-bridge-4-through-vether-4-no-working
>
> Test:
> -----
> apu4d4# dhcpd -vf
> Listening on vether0 (192.168.1.1).
> Listening on athn0 (192.168.2.1).
> Can't listen on em3 - it has no IP address.
> Can't listen on em2 - it has no IP address.
> Can't listen on em1 - it has no IP address.
> Can't listen on em0 - dhcpd.conf has no subnet declaration for xx.xx.xx.xx.
>
> apu4d4# tcpdump -i em3 port bootps
> tcpdump: listening on em3, link-type EN10MB
> 21:02:54.889631 0.0.0.0.bootpc > 255.255.255.255.bootps:  xid:0xd497c451
> [|bootp]
> 21:02:54.889808 0.0.0.0.bootpc > 255.255.255.255.bootps:  xid:0xd497c451
> [|bootp]
> 21:02:57.946205 0.0.0.0.bootpc > 255.255.255.255.bootps:  xid:0xd497c451
> secs:3 [|bootp]
> 21:02:57.946316 0.0.0.0.bootpc > 255.255.255.255.bootps:  xid:0xd497c451
> secs:3 [|bootp]
>
> apu4d4# tcpdump -i vether0 port bootps
> tcpdump: listening on vether0, link-type EN10MB
>
>
> Config
> -------
> apu4d4# cat /etc/hostname.em0
> inet autoconf
> up
> apu4d4# cat /etc/hostname.em1
> up
> apu4d4# cat /etc/hostname.em2
> up
> apu4d4# cat /etc/hostname.em3
> up
> apu4d4# cat /etc/hostname.athn0
> media autoselect mode 11n mediaopt hostap chan 1
> nwid xxx wpakey xxx
> inet 192.168.2.1 255.255.255.0
> up
>
> apu4d4# cat /etc/hostname.vether0
> inet 192.168.1.1 255.255.255.0 192.168.1.255
> up
>
> apu4d4# cat /etc/hostname.bridge0
> add vether0
> add em1
> add em2
> add em3
> up
>

Reply via email to