Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2005 01:12:31 +0300
From:      noname <neon777@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   why ng_bridge does not like DHCP?
Message-ID:  <46a3a47205081415122806a653@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
 freebsd 5.4 stable. xl0 is connected via ng_bridge to ngeth0 in this way:

[root@asd:~]# ifconfig xl0 up
[root@asd:~]# ngctl mkpeer . eiface hook ether
[root@asd:~]# ifconfig ngeth0 up
[root@asd:~]# ngctl mkpeer xl0: bridge lower link0
[root@asd:~]# ngctl name xl0:lower mybridge
[root@asd:~]# ngctl connect ngeth0: mybridge: lower link1
[root@asd:~]# ngctl connect ngeth0: mybridge: upper link2
[root@asd:~]# ngctl msg xl0: setautosrc 0
[root@asd:~]# ngctl msg xl0: setpromisc 1
[root@asd:~]# ifconfig ngeth0 ether 00:12:12:12:12:12
[root@asd:~]# dhclient ngeth0

using tcpdump I can see dhcp request leaving from ngeth0, passing
through xl0, dhcp reply comes back through xl0 but it doesn't reach
ngeth0. Why?

If I give ip-address with ifconfig, everything works fine. Also
getting ip with dhcp to xl0, without touching netgraph works fine. Any
clues?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46a3a47205081415122806a653>