пропадает пинг когда я пингую из локальной сети с компьютера 192.168.1.15 свой айпи 192.168.1.1 (dhcp на сервере не стоит) ,все ли правильно сделал вроде третья сетевая карта работает ?
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 172.16.254.6
netmask 255.255.255.0
network 172.16.254.0
broadcast 172.16.254.255
gateway 172.16.254.2
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 172.16.254.2
#dns-search rcdo.school.test
auto eth1
iface eth1 inet static
address 10.1.14.18
netmask 255.255.255.0
broadcast 10.1.14.0
#gateway 10.1.14.1
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.1.14.1
#dns-nameserver 10.10.1.3
auto eth2
iface eth2 inet static
address 192.168.1.1
netmask 255.255.255.0
#broadcast 192.168.1.255
#gateway 10.1.14.1
up route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 eth2
dns-nameserver 192.168.1.1
все ли правильно у меня ?
вот еще настройки ната по ним раздаю на третию интернет
#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -s 119.119.119.0/24 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -s 10.1.14.14/24 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -j MASQUERADE