Добрый день!
Дано следущее - тачка под FreeBSD 5.2.1, много интерфейсов (>10), в основном vlan'ы.
Суть проблемы - такое ощущение что поставленный из портов сабж видит только первый восемь интерфейсов, при попытке повесить его на интерфейс "дальний" выдает:
root@hydra root $ dhcpd vlan9
Internet Software Consortium DHCP Server V3.0.1rc12
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
vlan9: not found
Соответственно:
root@hydra root $ ifconfig vlan9
vlan9: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::20d:61ff:fe45:ce00%vlan9 prefixlen 64 scopeid 0x11
inet xxx.xxx.30.193 netmask 0xfffffff0 broadcast xxx.xxx.30.207
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 1 parent interface: bge0
dhcpd.conf:
subnet xxx.xxx.30.192 netmask 255.255.255.240{
option routers xxx.xxx.30.193;
range xxx.xxx.30.194 xxx.xxx.30.205;
}
Если пускать dhcpd без указания интерфейсов, то вешается на первый восемь:
root@hydra root $ dhcpd
Internet Software Consortium DHCP Server V3.0.1rc12
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on BPF/vlan7/00:02:a5:e7:37:1b/xxx.xxx.17.0/25
Sending on BPF/vlan7/00:02:a5:e7:37:1b/xxx.xxx.17.0/25
Listening on BPF/vlan6/00:02:a5:e7:37:1b/xxx.xxx.17.128/25
Sending on BPF/vlan6/00:02:a5:e7:37:1b/xxx.xxx.17.128/25
Listening on BPF/vlan5/00:02:a5:e7:37:1b/xxx.xxx.27.128/25
Sending on BPF/vlan5/00:02:a5:e7:37:1b/xxx.xxx.27.128/25
Listening on BPF/vlan4/00:02:a5:e7:37:1b/xxx.xxx.24.0/25
Sending on BPF/vlan4/00:02:a5:e7:37:1b/xxx.xxx.24.0/25
Listening on BPF/vlan3/00:04:23:a5:fb:4e/xxx.xxx.18.0/25
Sending on BPF/vlan3/00:04:23:a5:fb:4e/xxx.xxx.18.0/25
Listening on BPF/vlan2/00:02:a5:e7:37:1b/xxx.xxx.20.224/27
Sending on BPF/vlan2/00:02:a5:e7:37:1b/xxx.xxx.20.224/27
Listening on BPF/vlan1/00:0d:61:45:ce:01/xxx.xxx.26.128/25
Sending on BPF/vlan1/00:0d:61:45:ce:01/xxx.xxx.26.128/25
Listening on BPF/vlan0/00:0d:61:45:ce:01/xxx.xxx.19.128/25
Sending on BPF/vlan0/00:0d:61:45:ce:01/xxx.xxx.19.128/25
No subnet declaration for em0 (xxx.xxx.16.15).
** Ignoring requests on em0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface em0 is attached. **
Sending on Socket/fallback/fallback-net
root@hydra root $ ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=3<RXCSUM,TXCSUM>
inet xxx.xxx.16.15 netmask 0xffffffe0 broadcast xxx.xxx.16.31
inet6 fe80::20d:61ff:fe45:ce00%em0 prefixlen 64 scopeid 0x1
ether 00:0d:61:45:ce:00
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_MTU>
inet6 fe80::20d:61ff:fe45:ce01%em1 prefixlen 64 scopeid 0x2
ether 00:0d:61:45:ce:01
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
inet6 fe80::202:a5ff:fee7:371b%bge0 prefixlen 64 scopeid 0x3
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
fxp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:06:29:4f:0e:5e
media: Ethernet autoselect (none)
status: no carrier
em2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_MTU>
inet6 fe80::204:23ff:fea5:fb4e%em2 prefixlen 64 scopeid 0x5
ether 00:04:23:a5:fb:4e
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=3<RXCSUM,TXCSUM>
ether 00:04:23:a5:fb:4f
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.19.129 netmask 0xffffff80 broadcast xxx.xxx.19.255
inet6 fe80::20d:61ff:fe45:ce00%vlan0 prefixlen 64 scopeid 0x8
ether 00:0d:61:45:ce:01
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vlan: 1 parent interface: em1
vlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.26.129 netmask 0xffffff80 broadcast xxx.xxx.26.255
inet6 fe80::20d:61ff:fe45:ce00%vlan1 prefixlen 64 scopeid 0x9
ether 00:0d:61:45:ce:01
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vlan: 2 parent interface: em1
vlan2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.20.225 netmask 0xffffffe0 broadcast xxx.xxx.20.255
inet6 fe80::20d:61ff:fe45:ce00%vlan2 prefixlen 64 scopeid 0xa
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 6 parent interface: bge0
vlan3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.18.1 netmask 0xffffff80 broadcast xxx.xxx.18.127
inet6 fe80::20d:61ff:fe45:ce00%vlan3 prefixlen 64 scopeid 0xb
ether 00:04:23:a5:fb:4e
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 2 parent interface: em2
vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.24.1 netmask 0xffffff80 broadcast xxx.xxx.24.127
inet6 fe80::20d:61ff:fe45:ce00%vlan4 prefixlen 64 scopeid 0xc
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 2 parent interface: bge0
vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.27.129 netmask 0xffffff80 broadcast xxx.xxx.27.255
inet6 fe80::20d:61ff:fe45:ce00%vlan5 prefixlen 64 scopeid 0xd
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 3 parent interface: bge0
vlan6: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.17.129 netmask 0xffffff80 broadcast xxx.xxx.17.255
inet6 fe80::20d:61ff:fe45:ce00%vlan6 prefixlen 64 scopeid 0xe
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 4 parent interface: bge0
vlan7: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet xxx.xxx.17.1 netmask 0xffffff80 broadcast xxx.xxx.17.127
inet6 fe80::20d:61ff:fe45:ce00%vlan7 prefixlen 64 scopeid 0xf
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 5 parent interface: bge0
vlan8: flags=0<> mtu 1500
ether 00:00:00:00:00:00
vlan: 0 parent interface: <none>
vlan9: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::20d:61ff:fe45:ce00%vlan9 prefixlen 64 scopeid 0x11
inet xxx.xxx.30.193 netmask 0xfffffff0 broadcast xxx.xxx.30.207
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 1 parent interface: bge0
ether 00:02:a5:e7:37:1b
media: Ethernet autoselect (1000baseTX <full-duplex>)