我有一个能工作的Linux /PXE服务器。
如果我在服务TFTP的192.168.245.1上设置故障转移,客户端就会在tftp open timeout上失败。
我在测试
tftp 192.168.245.1
tftp> binary
tftp> get /ltsp/i386/pxelinux.0我使用的故障转移是ucarp,它创建了一个它广播的虚拟IP地址。
当192.168.245.1是一个真正的IP时,它可以工作,当192.168.245.1是一个虚拟IP时,客户端就无法访问它。
在使用ucarp和TFTP时,有什么特别的事情要做吗?
该帖子已经更新,因为原来的帖子有一个DHCP服务器作为问题的嫌疑人。
这是我从/etc/network/interfaces得到的部分。Ubuntu服务器
auto eth1
iface eth1 inet static
address 192.168.245.1
netmask 255.255.255.0
gateway 192.168.245.1
broadcast 192.168.245.255
ucarp-vid 3
ucarp-vip 192.168.245.5
ucarp-password secret
ucarp-advskew 10
ucarp-advbase 1
ucarp-master yes
iface eth1:ucarp inet static
address 192.168.245.5
netmask 255.255.255.255发布于 2011-10-20 10:42:13
发现问题了。
由于一些未知的原因,此防火墙规则阻止ucarp工作。
# Generated by iptables-save v1.4.10 on Thu Oct 6 17:16:01 2011
*filter
:INPUT ACCEPT [22517:2222881]
:FORWARD ACCEPT [2:176]
:OUTPUT ACCEPT [16961:69145734]
COMMIT
# Completed on Thu Oct 6 17:16:01 2011
# Generated by iptables-save v1.4.10 on Thu Oct 6 17:16:01 2011
*nat
:PREROUTING ACCEPT [29:3325]
:INPUT ACCEPT [18:2668]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.245.0/24 -j MASQUERADE
COMMIT
# Completed on Thu Oct 6 17:16:01 2011https://serverfault.com/questions/322863
复制相似问题