Журнал лабораторных работ

Содержание

Журнал

Вторник (12/13/11)

/dev/pts/1
09:14:37
#ping 4.8
PING 4.8 (4.0.0.8) 56(84) bytes of data.
^C
--- 4.8 ping statistics ---
85 packets transmitted, 0 received, 100% packet loss, time 84163ms
/dev/pts/2
09:16:11
#ping 4.8
PING 4.8 (4.0.0.8) 56(84) bytes of data.
^C
--- 4.8 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/1
09:16:11
#ping 4.8
PING 4.8 (4.0.0.8) 56(84) bytes of data.
^C
--- 4.8 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/2
09:16:13
#ping ya.ru
PING ya.ru (87.250.251.3) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2010ms
/dev/pts/1
09:16:13
#ping ya.ru
PING ya.ru (87.250.251.3) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2010ms
/dev/pts/2
09:16:21
#ping ya.ru
PING ya.ru (87.250.250.203) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4025ms
/dev/pts/1
09:16:21
#ping ya.ru
PING ya.ru (87.250.250.203) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4025ms
/dev/pts/2
09:16:30
#ping ya.ru
PING ya.ru (77.88.21.3) 56(84) bytes of data.
64 bytes from www.yandex.ru (77.88.21.3): icmp_req=1 ttl=56 time=25.0 ms
64 bytes from www.yandex.ru (77.88.21.3): icmp_req=2 ttl=56 time=64.5 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 25.061/44.829/64.597/19.768 ms
/dev/pts/1
09:16:30
#ping ya.ru
PING ya.ru (77.88.21.3) 56(84) bytes of data.
64 bytes from www.yandex.ru (77.88.21.3): icmp_req=1 ttl=56 time=25.0 ms
64 bytes from www.yandex.ru (77.88.21.3): icmp_req=2 ttl=56 time=64.5 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 25.061/44.829/64.597/19.768 ms
/dev/pts/4
09:16:45
#ping ya.ru
PING ya.ru (87.250.250.3) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1007ms
09:16:48
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.30.64   *               255.255.255.192 U     0      0        0 eth2
192.168.30.0    *               255.255.255.192 U     0      0        0 eth1
localnet        *               255.255.255.0   U     0      0        0 eth0
default         192.168.30.1    0.0.0.0         UG    0      0        0 eth1
/dev/pts/2
09:17:28
#ping 4.8
PING 4.8 (4.0.0.8) 56(84) bytes of data.
64 bytes from 4.0.0.8: icmp_req=1 ttl=51 time=124 ms
64 bytes from 4.0.0.8: icmp_req=2 ttl=51 time=113 ms
^C
--- 4.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 113.871/119.146/124.421/5.275 ms
/dev/pts/1
09:17:28
#ping 4.8
PING 4.8 (4.0.0.8) 56(84) bytes of data.
64 bytes from 4.0.0.8: icmp_req=1 ttl=51 time=124 ms
64 bytes from 4.0.0.8: icmp_req=2 ttl=51 time=113 ms
^C
--- 4.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 113.871/119.146/124.421/5.275 ms
/dev/pts/2
09:17:32
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:03
          inet addr:192.168.16.3  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5143 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3376 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:447426 (436.9 KiB)  TX bytes:532040 (519.5 KiB)
          Interrupt:5 Base address:0xc000
eth1      Link encap:Ethernet  HWaddr 00:16:3e:00:01:03
...
          RX bytes:250047 (244.1 KiB)  TX bytes:11486 (11.2 KiB)
          Interrupt:11 Base address:0x200
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
/dev/pts/1
09:17:32
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:03
          inet addr:192.168.16.3  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5143 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3376 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:447426 (436.9 KiB)  TX bytes:532040 (519.5 KiB)
          Interrupt:5 Base address:0xc000
eth1      Link encap:Ethernet  HWaddr 00:16:3e:00:01:03
...
          RX bytes:250047 (244.1 KiB)  TX bytes:11486 (11.2 KiB)
          Interrupt:11 Base address:0x200
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
/dev/pts/2
09:19:30
#route add -net 192.168.30.128/26 gw 192.168.30.126

/dev/pts/1
09:19:30
#route add -net 192.168.30.128/26 gw 192.168.30.126

/dev/pts/2
09:20:46
#ping 192.168.30.129
PING 192.168.30.129 (192.168.30.129) 56(84) bytes of data.
64 bytes from 192.168.30.129: icmp_req=1 ttl=64 time=1.43 ms
64 bytes from 192.168.30.129: icmp_req=2 ttl=64 time=1.93 ms
^C
--- 192.168.30.129 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 1.431/1.681/1.932/0.253 ms
/dev/pts/1
09:20:46
#ping 192.168.30.129
PING 192.168.30.129 (192.168.30.129) 56(84) bytes of data.
64 bytes from 192.168.30.129: icmp_req=1 ttl=64 time=1.43 ms
64 bytes from 192.168.30.129: icmp_req=2 ttl=64 time=1.93 ms
^C
--- 192.168.30.129 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 1.431/1.681/1.932/0.253 ms
прошло 11 минут
/dev/pts/0
09:32:44
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:03
          inet addr:192.168.16.3  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:129 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11764 (11.4 KiB)  TX bytes:8302 (8.1 KiB)
          Interrupt:5 Base address:0x6000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
09:32:47
#vim /etc/network/interfaces
--- /tmp/l3-saved-1384.25060.29822	2011-12-13 10:32:56.000000000 +0200
+++ /etc/network/interfaces	2011-12-13 10:34:36.000000000 +0200
@@ -6,3 +6,15 @@
       address 192.168.16.3
       netmask 255.255.255.0
       gateway 192.168.16.254
+
+
+auto eth1
+iface eth1 inet static
+	address 192.168.30.62
+	netmask 255.255.255.192
+	gateway 192.168.30.1
+
+auto eth2
+iface eth2 inet static
+	address 192.168.30.65
+	netmask 255.255.255.192
09:34:36
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...done.
09:34:47
#vim /etc/sysctl.conf
--- /tmp/l3-saved-1384.5256.28257	2011-12-13 10:34:53.000000000 +0200
+++ /etc/sysctl.conf	2011-12-13 10:35:01.000000000 +0200
@@ -25,7 +25,7 @@
 #net.ipv4.tcp_syncookies=1
 
 # Uncomment the next line to enable packet forwarding for IPv4
-#net.ipv4.ip_forward=1
+net.ipv4.ip_forward=1
 
 # Uncomment the next line to enable packet forwarding for IPv6
 #  Enabling this option disables Stateless Address Autoconfiguration
09:35:02
#echo 1 > /proc/sys
sys/           sysrq-trigger  sysvipc/
09:35:02
#echo 1 > /proc/sys/
crypto/ debug/  dev/    fs/     kernel/ net/    vm/
09:35:02
#echo 1 > /proc/sys/net/
core/       ipv4/       ipv6/       netfilter/  token-ring/ unix/
09:35:02
#echo 1 > /proc/sys/net/ipv
ipv4/ ipv6/
09:35:02
#echo 1 > /proc/sys/net/ipv
ipv4/ ipv6/
09:35:02
#echo 1 > /proc/sys/net/ipv
ipv4/ ipv6/
09:35:02
#echo 1 > /proc/sys/net/ipv4/
conf/                              tcp_fin_timeout
icmp_echo_ignore_all               tcp_frto
icmp_echo_ignore_broadcasts        tcp_frto_response
icmp_errors_use_inbound_ifaddr     tcp_keepalive_intvl
icmp_ignore_bogus_error_responses  tcp_keepalive_probes
icmp_ratelimit                     tcp_keepalive_time
icmp_ratemask                      tcp_low_latency
igmp_max_memberships               tcp_max_orphans
igmp_max_msf                       tcp_max_ssthresh
inet_peer_gc_maxtime               tcp_max_syn_backlog
...
tcp_adv_win_scale                  tcp_tw_recycle
tcp_allowed_congestion_control     tcp_tw_reuse
tcp_app_win                        tcp_window_scaling
tcp_available_congestion_control   tcp_wmem
tcp_base_mss                       tcp_workaround_signed_windows
tcp_congestion_control             udp_mem
tcp_dma_copybreak                  udp_rmem_min
tcp_dsack                          udp_wmem_min
tcp_ecn                            xfrm4_gc_thresh
tcp_fack
09:35:02
#echo 1 > /proc/sys/net/ipv4/ip_
ip_default_ttl       ip_forward           ip_nonlocal_bind
ip_dynaddr           ip_local_port_range  ip_no_pmtu_disc
09:35:02
#echo 1 > /proc/sys/net/ipv4/ip_
ip_default_ttl       ip_forward           ip_nonlocal_bind
ip_dynaddr           ip_local_port_range  ip_no_pmtu_disc
09:35:02
#echo 1 > /proc/sys/net/ipv4/ip_forward

09:35:44
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.30.64   0.0.0.0         255.255.255.192 U     0      0        0 eth2
192.168.30.0    0.0.0.0         255.255.255.192 U     0      0        0 eth1
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.30.1    0.0.0.0         UG    0      0        0 eth1
0.0.0.0         192.168.16.254  0.0.0.0         UG    0      0        0 eth0
09:36:17
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=64 time=6.57 ms
64 bytes from 192.168.30.1: icmp_req=2 ttl=64 time=1.42 ms
^C
--- 192.168.30.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 1.425/3.998/6.572/2.574 ms
09:36:23
#ping ya.ru
PING ya.ru (93.158.134.203) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3023ms
09:36:32
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.30.64   0.0.0.0         255.255.255.192 U     0      0        0 eth2
192.168.30.0    0.0.0.0         255.255.255.192 U     0      0        0 eth1
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.30.1    0.0.0.0         UG    0      0        0 eth1
09:37:23
#route add default gw 192.168.30.1

09:37:43
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.30.64   0.0.0.0         255.255.255.192 U     0      0        0 eth2
192.168.30.0    0.0.0.0         255.255.255.192 U     0      0        0 eth1
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.30.1    0.0.0.0         UG    0      0        0 eth1
09:38:09
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...done.
/dev/pts/0
09:46:50
#ipt
iptables          iptables-multi    iptables-save     iptunnel
iptables-apply    iptables-restore  iptables-xml
09:46:50
#iptables -t nat -A POSTROUTING -s 192.168.30.128/26 -j MASQUERADE

09:49:14
#ping 192.168.30.126
PING 192.168.30.126 (192.168.30.126) 56(84) bytes of data.
64 bytes from 192.168.30.126: icmp_req=1 ttl=64 time=6.43 ms
^C
--- 192.168.30.126 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 6.436/6.436/6.436/0.000 ms
09:49:23
#ping 192.168.30.129
PING 192.168.30.129 (192.168.30.129) 56(84) bytes of data.
64 bytes from 192.168.30.129: icmp_req=1 ttl=64 time=1.42 ms
^C
--- 192.168.30.129 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.424/1.424/1.424/0.000 ms
09:49:25
#ping 192.168.30.190
PING 192.168.30.190 (192.168.30.190) 56(84) bytes of data.
64 bytes from 192.168.30.190: icmp_req=1 ttl=63 time=2.72 ms
64 bytes from 192.168.30.190: icmp_req=2 ttl=63 time=3.22 ms
^C
--- 192.168.30.190 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.729/2.974/3.220/0.251 ms
09:49:30
#arp a
a: Неизвестный хост
09:49:55
#arp -a
? (192.168.30.1) at 00:16:3e:00:02:01 [ether] on eth1
? (192.168.30.126) at 00:16:4e:00:01:01 [ether] on eth2
fobos.net.nt (192.168.16.254) at 00:07:e9:0c:45:0c [ether] on eth0
09:52:33
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=64 time=1.40 ms
64 bytes from 192.168.30.1: icmp_req=2 ttl=64 time=2.24 ms
64 bytes from 192.168.30.1: icmp_req=3 ttl=64 time=1.68 ms
^C
--- 192.168.30.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.400/1.776/2.249/0.356 ms
09:53:55
#ping 4.8
PING 4.8 (4.0.0.8) 56(84) bytes of data.
64 bytes from 4.0.0.8: icmp_req=1 ttl=51 time=114 ms
64 bytes from 4.0.0.8: icmp_req=2 ttl=51 time=114 ms
^C
--- 4.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 114.225/114.249/114.274/0.338 ms
09:54:50
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.30.128  192.168.30.126  255.255.255.192 UG    0      0        0 eth2
192.168.30.64   0.0.0.0         255.255.255.192 U     0      0        0 eth2
192.168.30.0    0.0.0.0         255.255.255.192 U     0      0        0 eth1
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.30.1    0.0.0.0         UG    0      0        0 eth1
09:55:38
#route add -net 192.168.30.64/26 netmask gw 192.168.30.126
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
       inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
                              [netmask N] [mss Mss] [window W] [irtt I]
                              [mod] [dyn] [reinstate] [[dev] If]
       inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
       inet_route [-FC] flush      NOT supported
09:56:31
#route add -net 192.168.30.64 netmask gw 192.168.30.126
gw: Неизвестный хост
09:56:48
#route add -net 192.168.30.64 netmask 255.255.255.192 gw 192.168.30.126

09:56:58
#ping 192.168.30.126
PING 192.168.30.126 (192.168.30.126) 56(84) bytes of data.
64 bytes from 192.168.30.126: icmp_req=1 ttl=64 time=1.36 ms
^C
--- 192.168.30.126 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.365/1.365/1.365/0.000 ms
09:57:06
#ping 192.168.30.129
PING 192.168.30.129 (192.168.30.129) 56(84) bytes of data.
64 bytes from 192.168.30.129: icmp_req=1 ttl=64 time=1.29 ms
^C
--- 192.168.30.129 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.294/1.294/1.294/0.000 ms
09:57:08
#ping 192.168.30.190
PING 192.168.30.190 (192.168.30.190) 56(84) bytes of data.
64 bytes from 192.168.30.190: icmp_req=1 ttl=63 time=2.85 ms
^C
--- 192.168.30.190 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.856/2.856/2.856/0.000 ms
09:57:15
#ping 192.168.30.193
PING 192.168.30.193 (192.168.30.193) 56(84) bytes of data.
^C
--- 192.168.30.193 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3025ms
09:57:20
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.30.128  192.168.30.126  255.255.255.192 UG    0      0        0 eth2
192.168.30.64   192.168.30.126  255.255.255.192 UG    0      0        0 eth2
192.168.30.64   0.0.0.0         255.255.255.192 U     0      0        0 eth2
192.168.30.0    0.0.0.0         255.255.255.192 U     0      0        0 eth1
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.30.1    0.0.0.0         UG    0      0        0 eth1
09:57:27
#route add -net 192.168.30.192 netmask 255.255.255.192 gw 192.168.30.190
SIOCADDRT: Нет такого процесса
09:57:56
#route add -net 192.168.30.192 netmask 255.255.255.192 gw 192.168.30.126

09:58:17
#ping 192.168.30.
ping: unknown host 192.168.30.
09:58:29
#ping 192.168.30.193
PING 192.168.30.193 (192.168.30.193) 56(84) bytes of data.
64 bytes from 192.168.30.193: icmp_req=1 ttl=63 time=2.70 ms
64 bytes from 192.168.30.193: icmp_req=2 ttl=63 time=3.09 ms
^C
--- 192.168.30.193 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.708/2.899/3.090/0.191 ms
09:58:34
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.30.192  192.168.30.126  255.255.255.192 UG    0      0        0 eth2
192.168.30.128  192.168.30.126  255.255.255.192 UG    0      0        0 eth2
192.168.30.64   192.168.30.126  255.255.255.192 UG    0      0        0 eth2
192.168.30.64   0.0.0.0         255.255.255.192 U     0      0        0 eth2
192.168.30.0    0.0.0.0         255.255.255.192 U     0      0        0 eth1
192.168.16.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.30.1    0.0.0.0         UG    0      0        0 eth1
09:59:55
#iptables -t nat -A POSTROUTING -s 192.168.30.0/26 -j MASQUERADE

10:05:57
#auto lo

10:06:28
#auto lo

10:07:30
#auto lo

10:09:08
#auto lo

10:09:25
#auto lo

10:09:53
#ping 192.168.30.193
PING 192.168.30.193 (192.168.30.193) 56(84) bytes of data.
64 bytes from 192.168.30.193: icmp_req=1 ttl=63 time=2.90 ms
64 bytes from 192.168.30.193: icmp_req=2 ttl=63 time=3.19 ms
^C
--- 192.168.30.193 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1004ms
rtt min/avg/max/mdev = 2.909/3.050/3.191/0.141 ms
10:11:36
#auto lo
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  192.168.30.128/26    anywhere
MASQUERADE  all  --  192.168.30.64/26     anywhere
MASQUERADE  all  --  192.168.30.0/26      anywhere
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
10:14:55
#auto lo
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:03
          inet addr:192.168.16.3  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5635 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3390 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:469728 (458.7 KiB)  TX bytes:481209 (469.9 KiB)
          Interrupt:5 Base address:0x6000
eth1      Link encap:Ethernet  HWaddr 00:16:3e:00:01:03
...
          RX bytes:90411 (88.2 KiB)  TX bytes:16254 (15.8 KiB)
          Interrupt:11 Base address:0xe200
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
10:14:57
#nano /etc/network/interfaces
--- /tmp/l3-saved-2291.23264.17351	2011-12-13 11:15:12.000000000 +0200
+++ /etc/network/interfaces	2011-12-13 11:15:21.000000000 +0200
@@ -1,10 +1,10 @@
 auto lo
 iface lo inet loopback
 
-auto eth0
-iface eth0 inet static
-      address 192.168.16.3
-      netmask 255.255.255.0
+#auto eth0
+#iface eth0 inet static
+#      address 192.168.16.3
+#      netmask 255.255.255.0
 
 
 auto eth1
/dev/pts/0
10:24:40
#ping