RJ45 wrote:
it would be a good idea but the problem is that you cannot assign an IP
address to a bridge interface....
I think this problem has no solution...
See below, you still can have IP address to interface, use bridge and
vlan as well. I do.
thanks
On Thu, 16 Apr 2009, Matthew Dempsky wrote:
On Thu, Apr 16, 2009 at 1:10 PM, RJ45 <[email protected]> wrote:
I cannot use the same vlan name and I need an unique name because
I must runa a dhcp server on vlan.
If I have t ocreate a new vlanName for each vr1 vr2 and vr3
how do I run a dhcpd on interface vlan100 ?
I think what Henning is suggesting is to do something like:
ifconfig vlan1100 vlan 100 vlandev vr1
ifconfig vlan2100 vlan 100 vlandev vr2
ifconfig vlan3100 vlan 100 vlandev vr3
ifconfig bridge100 create
brconfig bridge100 add vlan1100
brconfig bridge100 add vlan2100
brconfig bridge100 add vlan3100
ifconfig bridge100 inet 10.0.0.1 netmask 255.255.255.0 up
dhcpd bridge100
(Untested, probably missing some steps.)
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33160
priority: 0
groups: lo
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
dc0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:03:ba:13:3e:93
description: Uplink
priority: 0
groups: egress
media: Ethernet 100baseTX full-duplex
status: active
inet 66.63.12.66 netmask 0xffffffc0 broadcast 66.63.12.127
inet6 fe80::203:baff:fe13:3e93%dc0 prefixlen 64 scopeid 0x1
dc1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:03:ba:13:3e:94
description: LAN
priority: 0
media: Ethernet 100baseTX full-duplex
status: active
inet6 fe80::203:baff:fe13:3e94%dc1 prefixlen 64 scopeid 0x2
enc0: flags=0<> mtu 1536
priority: 0
vlan1002: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu
1500
lladdr 00:03:ba:13:3e:94
priority: 0
vlan: 2 priority: 0 parent interface: dc1
groups: vlan
inet6 fe80::203:baff:fe13:3e94%vlan1002 prefixlen 64 scopeid 0x5
vlan2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:03:ba:13:3e:93
priority: 0
vlan: 2 priority: 0 parent interface: dc0
groups: vlan
inet6 fe80::203:baff:fe13:3e93%vlan2 prefixlen 64 scopeid 0x6
bridge1: flags=41<UP,RUNNING> mtu 1500
priority: 0
groups: bridge
bridge2: flags=41<UP,RUNNING> mtu 1500
priority: 0
groups: bridge
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33160
priority: 0
groups: pflog
#