On Sunday 03 August 2008 22:36:00 you wrote:
> On Sun, Aug 03, 2008 at 09:43:15PM +0200, Chris Cohen wrote:
> > Paul de Weerd wrote:
> >> On Sun, Aug 03, 2008 at 11:07:42AM +0200, Chris Cohen wrote:
> >> | Hi,
> >> |
> >> | | I have a small openbsd router running in my network.
> >> |
> >> | I have vlan10 (my lan), vlan11 (w-lan) and tun0/1 (openvpn tap
> >> | devices). I bridged them all toghether on bridge0. Only vlan10 has an
> >> | ip address. (10.1.16.1)
> >> | Now I want dhcpd to assign 10.1.16.0/24 on all four interfaces, but it
> >>
> >> just | does on vlan10. All i get is Can't listen on vlan11/tap0/tap1. It
> >> has no IP | Address.
> >>
> >> | Also.. since all interfaces are bridged, shouldn requests on vlan11 or
> >>
> >> tun0 | reach vlan10 where dhcpd does listen? They do not...
> >>
> >> You probably want to configure the IP address on the bridge interface
> >> and have dhcpd listen there.
> >
> > $ sudo ifconfig bridge0 10.1.16.100
> > ifconfig: SIOCAIFADDR: Inappropriate ioctl for device
> >
> > If I remember right I asked that a few years ago... the answer was:
> > assign the IP address to one of the bridged interfaces, a bridge is a
> > layer2 device. Isn't this true any longer?
>
> Ugh, I'm an idiot .. bridge != trunk .. I apologize.
:)

> Yes, you should configure the IP address on one of the bridge
> interfaces, and then dhcpd *should* listen only on that interface.
>
> Can you tcpdump on some of your interfaces when trying to get a lease
> to see what is going on ?

$ sudo tcpdump -i vlan11
tcpdump: listening on vlan11, link-type EN10MB
07:12:19.643623 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x1a656058 
flags:0x8000 [|bootp]
07:12:22.643563 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x1a656058 
secs:768 flags:0x8000 [|bootp]
07:12:30.645298 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x1a656058 
secs:2816 flags:0x8000 [|bootp]
07:12:44.884417 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x1a656058 
secs:6656 flags:0x8000 [|bootp]

$ sudo tcpdump -i bridge0
tcpdump: listening on bridge0, link-type EN10MB
07:13:50.405377 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xbe1ac21c 
flags:0x8000 [|bootp]
07:13:53.413579 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xbe1ac21c 
secs:768 flags:0x8000 [|bootp]
07:14:01.404793 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xbe1ac21c 
secs:2816 flags:0x8000 [|bootp]
07:14:16.407810 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xbe1ac21c 
secs:6656 flags:0x8000 [|bootp]

$ sudo tcpdump -i vlan10
[all my lan traffic but not bootpc]

If I run dhclient on a pc in vlan10 I get:
$ sudo tcpdump -i vlan10 port bootpc
tcpdump: listening on vlan10, link-type EN10MB
07:20:24.867674 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xe29ba5c [|
bootp] [tos 0x10]
07:20:24.868464 10.1.16.1.bootps > 10.1.16.10.bootpc: xid:0xe29ba5c 
Y:10.1.16.10 S: 10.1.16.1 [|bootp] [tos 0x10]


-- 
Thank you
Chris

Reply via email to