Здравствуйте!
Возникла следующая проблема:
внутренняя сеть: eth1
внешняя сеть: eth0
cat /etc/network/interfaces
# 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 eth0 eth1
iface lo inet loopback
allow-hotplug eth0
# The primary network interface
iface eth0 inet static
address 10.53.89.254
netmask 255.255.0.0
broadcast 10.53.255.255
network 10.53.0.0
gateway 10.53.254.254
# post-up iptables-restore < /etc/iptables.up.rules
iface eth1 inet static
address 10.53.89.200
netmask 255.255.255.128
broadcast 10.53.89.255
network 10.53.89.128
включен forward ipv4 в sysctl.conf:
cat /proc/sys/net/ipv4/ip_forward
1
netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.53.89.128 * 255.255.255.128 U 0 0 0 eth1
localnet * 255.255.0.0 U 0 0 0 eth0
default 10.53.254.254 0.0.0.0 UG 0 0 0 eth0
ping -c 4 10.53.254.254
PING 10.53.254.254 (10.53.254.254) 56(84) bytes of data.
64 bytes from 10.53.254.254: icmp_req=1 ttl=64 time=1.24 ms
64 bytes from 10.53.254.254: icmp_req=2 ttl=64 time=0.834 ms
64 bytes from 10.53.254.254: icmp_req=3 ttl=64 time=0.791 ms
64 bytes from 10.53.254.254: icmp_req=4 ttl=64 time=0.990 ms
--- 10.53.254.254 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.791/0.964/1.244/0.181 ms
ping 10.53.254.254
Обмен пакетами с 10.53.254.254 по с 32 байт данных:
Превышен интервал ожидания для запроса.
Превышен интервал ожидания для запроса.
Статистика Ping для 10.53.254.254:
Пакетов: отправлено = 2, получено = 0, потеряно = 2
(100% потерь)