我有一个Linux TFTP / PXE服务器的工作。
如果我在192.168.245.1这是TFTP服务的地方设置故障转移,则客户端失败, tftp open timeout 。
我正在testing
tftp 192.168.245.1 tftp> binary tftp> get /ltsp/i386/pxelinux.0
我使用的故障转移是ucarp创build一个虚拟的IP地址,它广播。
当192.168.245.1是一个真正的IP时,它是有效的,当192.168.245.1是一个虚拟IP,那么客户端不能访问它。
题
使用ucarp和TFTP时有什么特别的事情要做?
更新
该post已经更新,原来的post有一个DHCP服务器怀疑的问题。
这是来自/etc/network/interfaces ucarp部分。 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
发现问题。
由于某些未知的原因,这个防火墙规则阻止了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 2011