I have a local network with 5 computers: computer1) /etc/hostname.re0: 192.168.1.10 0xffffff00 /etc/hostname.re1: 192.168.2.11 0xffff0000 /etc/hostname.re2: 192.168.2.12 0xffff0000 /etc/hostname.re3: 192.168.2.13 0xffff0000 /etc/mygate: 192.168.1.1
computer2) /etc/hostname.re0: 192.168.1.11 0xffff0000 /etc/hostname.re1: 192.168.2.14 0xffff0000 /etc/mygate: 192.168.2.11 computer3) /etc/hostname.re0: 192.168.1.12 0xffff0000 /etc/mygate: 192.168.2.12 computer4) /etc/hostname.re0: 192.168.1.13 0xffff0000 /etc/mygate: 192.168.2.13 computer5) /etc/hostname.re0: 192.168.1.14 0xffff0000 /etc/mygate: 192.168.2.14 Computer1's physical connections are like this: re0->ISP router(192.168.1.1) re1->Computer2 re0 re2->Computer3 re0 re3->Computer4 re0 Computer2's re1 is connected to Computer5's re0. I want to use static ip adresses (no DHCP) to allow computers communicate with each other and each of them with the Internet. Before testing PF rules (pfctl -d on both) I do "ping 192.168.2.11" from Computer2, but all packets are lost. I use tcpdump on Computer1 and icmp.request is received but not replied. Then I execute on Computer1: route add -inet 192.168.1.11/32 192.168.2.11 and tcpdump ON BOTH computers shows icmp.request and icmp.reply, but ping still says 100% packets lost. 1) Why is this little test not working? 2) How should I configure pf.conf (and maybe rc.conf.local with route commands) to allow computers communicate with each other (including Computer1 with Computer5, thru Computer2)? In every information I have found this is automatically done with DHCP, which I won't use, or BGP-4, RIP,OSPF,etc., which I will neither use because these addresses and routes will be static. Thank you. Ernest Stewart.