Имеется сеть 192.168.100.0/24. Нужно её вывести в Internet через
шлюз 192.168.1.254. Между хабом с 100-й подсетью (все 192.168.100.* в один
хаб подключены) стоит 192.168.100.254(eth0) 192.168.1.100(eth1).
Вот вывод ip и ping:
[server]# ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 08:00:a0:10:01:65 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.254/24 brd 192.168.100.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:00:e8:ec:b8:01 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.100/24 brd 192.168.1.255 scope global eth1
[server]# ip route
192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.100
192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.254
127.0.0.0/8 dev lo scope link
default via 192.168.1.254 dev eth1
[server]# ping -c2 google.com
PING google.com (216.239.39.99) from 192.168.1.100 : 56(84) bytes of data.
64 bytes from 216.239.39.99: icmp_seq=1 ttl=243 time=150 ms
64 bytes from 216.239.39.99: icmp_seq=2 ttl=243 time=149 ms
[server]# ping -c2 192.168.100.3
PING 192.168.100.3 (192.168.100.3) from 192.168.100.254 : 56(84) bytes of data.
64 bytes from 192.168.100.3: icmp_seq=1 ttl=64 time=0.418 ms
64 bytes from 192.168.100.3: icmp_seq=2 ttl=64 time=0.400 ms
[wstation]$ ping -c2 216.239.39.99
2 packets transmitted, 0 received, 100% loss, time 1010ms
[wstation]# ip route
192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.3
127.0.0.0/8 dev lo scope link
default via 192.168.100.254 dev eth0
[wstation] ping -c2 192.168.100.4
64 bytes from 192.168.100.4: icmp_seq=1 ttl=64 time=0.418 ms
64 bytes from 192.168.100.4: icmp_seq=2 ttl=64 time=0.400 ms
Что я забыл сделать?