【发布时间】:2016-10-20 09:06:54
【问题描述】:
这是一台物理 SBC 机器,客户创建了许多虚拟 IP(它与远程通信中的 relem 和 vnet 概念有关)
这里我们创建了eth2 和eth3 作为信号接口。 eth2 和 eth3 被视为 vlan 并将 relem eth2:6 和 eth3.1238:0 绑定到这些 vlan。
在我们的例子中,我们从ntp.conf 中丢弃eth2 和eth3,因为有多个relem 绑定到eth2 和eth3,所以ntp 尝试为每个会话创建一个套接字,问题是所有用尽的文件描述符。这就是为什么我们只添加eth0 接口并且我们不希望npt 监听除eth0 之外的任何接口,所以我使用了接口忽略通配符选项。
但是我们可以看到,在对ntp.conf 进行更改后,它正在尝试侦听广播地址,但由于意外错误而无法绑定。
ntpd[89217]: ./../lib/isc/unix/ifiter_ioctl.c:617: unexpected error:
ntpd[89217]: eth2:6: getting broadcast address: Cannot assign requested address
ntpd[89217]: i/o error on routing socket No buffer space available – disabling
ntpd[5410]: ./../lib/isc/unix/ifiter_ioctl.c:617: unexpected error:
ntpd[5410]: eth3.1238:0: getting broadcast address: Cannot assign requested address
ntpd[5410]: ntpd exiting on signal 15
ntpd[1508]: ntpd exiting on signal 15
ntp.conf
fudge 127.127.1.0 stratum 10
Authentication stuff
keys /etc/ntp.keys
path for keys file
trustedkey 1
define trusted keys
requestkey 1
server 172.23.5.8 iburst
server 172.23.5.9 iburst
restrict 172.23.5.8
restrict 172.23.5.9
key (7) for accessing server variables
controlkey 15 # key (6) for accessing server variables
extra lines to fix issue about NTP Daemon
interface listen eth0
interface ignore wildcard
ip a sh
256: eth3.897@eth3: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 00:1e:67:53:e0:b2 brd ff:ff:ff:ff:ff:ff
inet 169.254.66.8/18 brd 169.254.127.255 scope global eth3.897:0
inet6 fe80::21e:67ff:fe53:e0b2/64 scope link nodad
valid_lft forever preferred_lft forever
257: eth3.951@eth3: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 00:1e:67:53:e0:b2 brd ff:ff:ff:ff:ff:ff
inet 169.254.66.118/18 brd 169.254.127.255 scope global eth3.951:0
inet6 fe80::21e:67ff:fe53:e0b2/64 scope link nodad
valid_lft forever preferred_lft forever
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet6 ::1/128 scope host nodad
谁能告诉我如何解决这个错误?
【问题讨论】: