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

Содержание

Журнал

Среда (02/22/12)

/dev/pts/3
09:08:20
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0f:fe:7e:a7:7b
          inet addr:10.0.35.44  Bcast:10.0.35.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:feff:fe7e:a77b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:29708 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4791434 (4.5 MiB)  TX bytes:858069 (837.9 KiB)
          Interrupt:19 Memory:f0180000-f01a0000
eth0.10   Link encap:Ethernet  HWaddr 00:0f:fe:7e:a7:7b
...
          collisions:0 txqueuelen:0
          RX bytes:30874 (30.1 KiB)  TX bytes:8360 (8.1 KiB)
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:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4300 (4.1 KiB)  TX bytes:4300 (4.1 KiB)
/dev/pts/4
09:08:20
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0f:fe:7e:a7:7b
          inet addr:10.0.35.44  Bcast:10.0.35.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:feff:fe7e:a77b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:29708 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4791434 (4.5 MiB)  TX bytes:858069 (837.9 KiB)
          Interrupt:19 Memory:f0180000-f01a0000
eth0.10   Link encap:Ethernet  HWaddr 00:0f:fe:7e:a7:7b
...
          collisions:0 txqueuelen:0
          RX bytes:30874 (30.1 KiB)  TX bytes:8360 (8.1 KiB)
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:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4300 (4.1 KiB)  TX bytes:4300 (4.1 KiB)
/dev/pts/3
09:08:26
#vim /etc/network/interfaces
/dev/pts/4
09:08:26
#vim /etc/network/interfaces
--- /tmp/l3-saved-2784.32316.13223	2012-02-22 10:08:57.000000000 +0200
+++ /etc/network/interfaces	2012-02-22 10:09:15.000000000 +0200
@@ -23,7 +23,7 @@
 	netmask 255.255.255.0
 	broadcast 10.0.35.255
 
-iface eth0.40 inet static
-	address 192.168.40.4
+iface eth0.20 inet static
+	address 192.168.20.4
 	netmask 255.255.255.0
 	broadcast 10.0.35.255
/dev/pts/3
09:09:19
#ifdown eth0.20
ifdown: interface eth0.20 not configured
/dev/pts/4
09:09:19
#ifdown eth0.20
ifdown: interface eth0.20 not configured
/dev/pts/3
09:09:25
#ifdown eth0.20
ifdown: interface eth0.20 not configured
/dev/pts/4
09:09:25
#ifdown eth0.20
ifdown: interface eth0.20 not configured
/dev/pts/3
09:09:39
#ifdown eth0.10
Removed VLAN -:eth0.10:-
/dev/pts/4
09:09:39
#ifdown eth0.10
Removed VLAN -:eth0.10:-
/dev/pts/3
09:09:45
#ifup eth.20
Ignoring unknown interface eth.20=eth.20.
/dev/pts/4
09:09:45
#ifup eth.20
Ignoring unknown interface eth.20=eth.20.
/dev/pts/3
09:10:10
#ifup eth.10
Ignoring unknown interface eth.10=eth.10.
/dev/pts/4
09:10:10
#ifup eth.10
Ignoring unknown interface eth.10=eth.10.
/dev/pts/3
09:10:25
#vim /etc/network/interfaces
/dev/pts/4
09:10:25
#vim /etc/network/interfaces
--- /tmp/l3-saved-2784.7841.27793	2012-02-22 10:10:35.000000000 +0200
+++ /etc/network/interfaces	2012-02-22 10:12:03.000000000 +0200
@@ -2,7 +2,7 @@
 # and how to activate them. For more information, see interfaces(5).
 
 # The loopback network interface
-auto lo eth0.10 eth0.20
+auto lo eth0.10 eth0.40
 iface lo inet loopback
 
 # The primary network interface
@@ -21,9 +21,7 @@
 iface eth0.10 inet static
 	address 192.168.10.4
 	netmask 255.255.255.0
-	broadcast 10.0.35.255
 
-iface eth0.20 inet static
-	address 192.168.20.4
+iface eth0.40 inet static
+	address 192.168.40.4
 	netmask 255.255.255.0
-	broadcast 10.0.35.255
/dev/pts/3
09:12:03
#shutdown -r now

/dev/pts/4
09:12:03
#shutdown -r now

/dev/pts/3
09:14:40
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=3.31 ms
64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.533 ms
64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.534 ms
64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.533 ms
64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.513 ms
64 bytes from 192.168.10.1: icmp_req=6 ttl=64 time=0.531 ms
64 bytes from 192.168.10.1: icmp_req=7 ttl=64 time=0.483 ms
^C
--- 192.168.10.1 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6000ms
rtt min/avg/max/mdev = 0.483/0.920/3.319/0.979 ms
/dev/pts/4
09:14:40
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=3.31 ms
64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.533 ms
64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.534 ms
64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.533 ms
64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.513 ms
64 bytes from 192.168.10.1: icmp_req=6 ttl=64 time=0.531 ms
64 bytes from 192.168.10.1: icmp_req=7 ttl=64 time=0.483 ms
^C
--- 192.168.10.1 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6000ms
rtt min/avg/max/mdev = 0.483/0.920/3.319/0.979 ms
/dev/pts/3
09:15:00
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data.
From 192.168.40.4 icmp_seq=1 Destination Host Unreachable
From 192.168.40.4 icmp_seq=2 Destination Host Unreachable
From 192.168.40.4 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.40.3 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms
pipe 3
/dev/pts/4
09:15:00
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data.
From 192.168.40.4 icmp_seq=1 Destination Host Unreachable
From 192.168.40.4 icmp_seq=2 Destination Host Unreachable
From 192.168.40.4 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.40.3 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms
pipe 3
/dev/pts/3
09:15:12
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data.
64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=3.40 ms
64 bytes from 192.168.40.3: icmp_req=2 ttl=64 time=0.536 ms
64 bytes from 192.168.40.3: icmp_req=3 ttl=64 time=0.235 ms
^C
--- 192.168.40.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.235/1.391/3.402/1.427 ms
/dev/pts/4
09:15:12
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data.
64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=3.40 ms
64 bytes from 192.168.40.3: icmp_req=2 ttl=64 time=0.536 ms
64 bytes from 192.168.40.3: icmp_req=3 ttl=64 time=0.235 ms
^C
--- 192.168.40.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.235/1.391/3.402/1.427 ms
/dev/pts/3
09:15:33
#cat /proc/sys/net/ipv4/ip_forward
0
/dev/pts/4
09:15:33
#cat /proc/sys/net/ipv4/ip_forward
0
/dev/pts/3
09:17:28
#echo 1 > /proc/sys/net/ipv4/ip_forwar
bash: /proc/sys/net/ipv4/ip_forwar: Нет такого файла или каталога
/dev/pts/4
09:17:28
#echo 1 > /proc/sys/net/ipv4/ip_forwar
bash: /proc/sys/net/ipv4/ip_forwar: Нет такого файла или каталога
/dev/pts/3
09:18:44
#echo 1 > /proc/sys/net/ipv4/ip_forward

/dev/pts/4
09:18:44
#echo 1 > /proc/sys/net/ipv4/ip_forward

/dev/pts/3
09:18:51
#route add
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
/dev/pts/4
09:18:51
#route add
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
/dev/pts/3
09:20:19
#route print
Usage: route [-nNvee] [-FC] [<AF>]           List kernel routing tables
       route [-v] [-FC] {add|del|flush} ...  Modify routing table for AF.
       route {-h|--help} [<AF>]              Detailed usage syntax for specified AF.
       route {-V|--version}                  Display version/author and exit.
        -v, --verbose            be verbose
        -n, --numeric            don't resolve names
        -e, --extend             display other/more information
        -F, --fib                display Forwarding Information Base (default)
        -C, --cache              display routing cache instead of FIB
  <AF>=Use '-A <af>' or '--<af>'; default: inet
  List of possible address families (which support routing):
    inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
    netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
    x25 (CCITT X.25)
/dev/pts/4
09:20:19
#route print
Usage: route [-nNvee] [-FC] [<AF>]           List kernel routing tables
       route [-v] [-FC] {add|del|flush} ...  Modify routing table for AF.
       route {-h|--help} [<AF>]              Detailed usage syntax for specified AF.
       route {-V|--version}                  Display version/author and exit.
        -v, --verbose            be verbose
        -n, --numeric            don't resolve names
        -e, --extend             display other/more information
        -F, --fib                display Forwarding Information Base (default)
        -C, --cache              display routing cache instead of FIB
  <AF>=Use '-A <af>' or '--<af>'; default: inet
  List of possible address families (which support routing):
    inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
    netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
    x25 (CCITT X.25)
/dev/pts/3
09:20:37
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.35.1       0.0.0.0         UG        0 0          0 eth0
10.0.35.0       0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.10
192.168.40.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.40
/dev/pts/4
09:20:37
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.35.1       0.0.0.0         UG        0 0          0 eth0
10.0.35.0       0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.10
192.168.40.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.40
/dev/pts/3
09:20:58
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
^C
--- 192.168.20.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2014ms
/dev/pts/4
09:20:58
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
^C
--- 192.168.20.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2014ms
/dev/pts/3
09:21:54
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=5.61 ms
64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.501 ms
64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.498 ms
64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.533 ms
64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.498 ms
^C
--- 192.168.10.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.498/1.529/5.615/2.043 ms
/dev/pts/4
09:21:54
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=5.61 ms
64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.501 ms
64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.498 ms
64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.533 ms
64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.498 ms
^C
--- 192.168.10.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.498/1.529/5.615/2.043 ms
/dev/pts/3
09:22:04
#route add 192.168.30.0 192.168.40.3
SIOCADDRT: Нет такого устройства
/dev/pts/4
09:22:04
#route add 192.168.30.0 192.168.40.3
SIOCADDRT: Нет такого устройства
/dev/pts/3
09:24:50
#route add 192.168.30.0 192.168.40.4
SIOCADDRT: Нет такого устройства
/dev/pts/4
09:24:50
#route add 192.168.30.0 192.168.40.4
SIOCADDRT: Нет такого устройства
/dev/pts/3
09:25:02
#route add -net 192.168.30.0/24 gw 192.168.40.4

/dev/pts/4
09:25:02
#route add -net 192.168.30.0/24 gw 192.168.40.4

/dev/pts/3
09:25:35
#route add -net 192.168.20.0/24 gw 192.168.10.4

/dev/pts/4
09:25:35
#route add -net 192.168.20.0/24 gw 192.168.10.4

/dev/pts/3
09:26:03
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=2.99 ms
64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.555 ms
^C
--- 192.168.20.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.555/1.772/2.990/1.218 ms
/dev/pts/4
09:26:03
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=2.99 ms
64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.555 ms
^C
--- 192.168.20.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.555/1.772/2.990/1.218 ms
/dev/pts/3
09:26:23
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
From 192.168.10.4 icmp_seq=1 Destination Host Unreachable
From 192.168.10.4 icmp_seq=2 Destination Host Unreachable
From 192.168.10.4 icmp_seq=3 Destination Host Unreachable
From 192.168.10.4 icmp_seq=4 Destination Host Unreachable
From 192.168.10.4 icmp_seq=5 Destination Host Unreachable
From 192.168.10.4 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.20.2 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6030ms
pipe 3
/dev/pts/4
09:26:23
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
From 192.168.10.4 icmp_seq=1 Destination Host Unreachable
From 192.168.10.4 icmp_seq=2 Destination Host Unreachable
From 192.168.10.4 icmp_seq=3 Destination Host Unreachable
From 192.168.10.4 icmp_seq=4 Destination Host Unreachable
From 192.168.10.4 icmp_seq=5 Destination Host Unreachable
From 192.168.10.4 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.20.2 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6030ms
pipe 3
/dev/pts/3
09:26:33
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data.
64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=3.92 ms
64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.500 ms
64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.236 ms
64 bytes from 192.168.30.3: icmp_req=4 ttl=64 time=0.488 ms
^C
--- 192.168.30.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.236/1.288/3.929/1.528 ms
/dev/pts/4
09:26:33
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data.
64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=3.92 ms
64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.500 ms
64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.236 ms
64 bytes from 192.168.30.3: icmp_req=4 ttl=64 time=0.488 ms
^C
--- 192.168.30.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.236/1.288/3.929/1.528 ms
/dev/pts/3
09:26:52
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data.
^C
--- 192.168.30.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms
/dev/pts/4
09:26:52
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data.
^C
--- 192.168.30.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms
/dev/pts/3
09:26:59
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
From 192.168.10.4 icmp_seq=1 Destination Host Unreachable
From 192.168.10.4 icmp_seq=2 Destination Host Unreachable
From 192.168.10.4 icmp_seq=3 Destination Host Unreachable
From 192.168.10.4 icmp_seq=4 Destination Host Unreachable
From 192.168.10.4 icmp_seq=5 Destination Host Unreachable
From 192.168.10.4 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.20.2 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6033ms
pipe 3
/dev/pts/4
09:26:59
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
From 192.168.10.4 icmp_seq=1 Destination Host Unreachable
From 192.168.10.4 icmp_seq=2 Destination Host Unreachable
From 192.168.10.4 icmp_seq=3 Destination Host Unreachable
From 192.168.10.4 icmp_seq=4 Destination Host Unreachable
From 192.168.10.4 icmp_seq=5 Destination Host Unreachable
From 192.168.10.4 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.20.2 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6033ms
pipe 3
/dev/pts/3
09:27:26
#route add -net 192.168.30.0/24 gw 192.168.40.3

/dev/pts/4
09:27:26
#route add -net 192.168.30.0/24 gw 192.168.40.3

/dev/pts/3
09:28:28
#route del -net 192.168.20.0/24 gw 192.168.10.4

/dev/pts/4
09:28:28
#route del -net 192.168.20.0/24 gw 192.168.10.4

/dev/pts/3
09:28:47
#route add -net 192.168.20.0/24 gw 192.168.10.1

/dev/pts/4
09:28:47
#route add -net 192.168.20.0/24 gw 192.168.10.1

/dev/pts/3
09:29:08
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.35.1       0.0.0.0         UG        0 0          0 eth0
10.0.35.0       0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.10
192.168.20.0    192.168.10.1    255.255.255.0   UG        0 0          0 eth0.10
192.168.30.0    192.168.40.3    255.255.255.0   UG        0 0          0 eth0.40
192.168.40.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.40
/dev/pts/4
09:29:08
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.35.1       0.0.0.0         UG        0 0          0 eth0
10.0.35.0       0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.10
192.168.20.0    192.168.10.1    255.255.255.0   UG        0 0          0 eth0.10
192.168.30.0    192.168.40.3    255.255.255.0   UG        0 0          0 eth0.40
192.168.40.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.40
/dev/pts/3
09:29:27
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data.
64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=0.534 ms
64 bytes from 192.168.40.3: icmp_req=2 ttl=64 time=0.233 ms
64 bytes from 192.168.40.3: icmp_req=3 ttl=64 time=0.537 ms
^C
--- 192.168.40.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.233/0.434/0.537/0.144 ms
/dev/pts/4
09:29:27
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data.
64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=0.534 ms
64 bytes from 192.168.40.3: icmp_req=2 ttl=64 time=0.233 ms
64 bytes from 192.168.40.3: icmp_req=3 ttl=64 time=0.537 ms
^C
--- 192.168.40.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.233/0.434/0.537/0.144 ms
/dev/pts/3
09:29:58
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=0.488 ms
64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.476 ms
^X64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.535 ms
64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.500 ms
64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.539 ms
^C
--- 192.168.10.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.476/0.507/0.539/0.035 ms
/dev/pts/4
09:29:58
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.
64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=0.488 ms
64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.476 ms
^X64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.535 ms
64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.500 ms
64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.539 ms
^C
--- 192.168.10.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.476/0.507/0.539/0.035 ms
/dev/pts/3
09:30:20
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=0.498 ms
64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.535 ms
64 bytes from 192.168.20.1: icmp_req=3 ttl=64 time=0.499 ms
^C
--- 192.168.20.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.498/0.510/0.535/0.031 ms
/dev/pts/4
09:30:20
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data.
64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=0.498 ms
64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.535 ms
64 bytes from 192.168.20.1: icmp_req=3 ttl=64 time=0.499 ms
^C
--- 192.168.20.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.498/0.510/0.535/0.031 ms
/dev/pts/3
09:30:25
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data.
64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=0.245 ms
64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.459 ms
64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.235 ms
^C
--- 192.168.30.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.235/0.313/0.459/0.103 ms
/dev/pts/4
09:30:25
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data.
64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=0.245 ms
64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.459 ms
64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.235 ms
^C
--- 192.168.30.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.235/0.313/0.459/0.103 ms
/dev/pts/3
09:30:37
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data.
^C
--- 192.168.30.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
/dev/pts/4
09:30:37
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data.
^C
--- 192.168.30.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
/dev/pts/3
09:30:47
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
^C
--- 192.168.20.2 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3022ms
/dev/pts/4
09:30:47
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
^C
--- 192.168.20.2 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3022ms
/dev/pts/3
09:30:56
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.35.1       0.0.0.0         UG        0 0          0 eth0
10.0.35.0       0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.10
192.168.20.0    192.168.10.1    255.255.255.0   UG        0 0          0 eth0.10
192.168.30.0    192.168.40.3    255.255.255.0   UG        0 0          0 eth0.40
192.168.40.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.40
/dev/pts/4
09:30:56
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.35.1       0.0.0.0         UG        0 0          0 eth0
10.0.35.0       0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.10
192.168.20.0    192.168.10.1    255.255.255.0   UG        0 0          0 eth0.10
192.168.30.0    192.168.40.3    255.255.255.0   UG        0 0          0 eth0.40
192.168.40.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0.40
/dev/pts/3
09:32:37
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
^C
/dev/pts/4
09:32:37
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
^C
/dev/pts/3
09:33:37
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.35.1       0.0.0.0         UG    0      0        0 eth0
10.0.35.0       0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.10
192.168.20.0    192.168.10.1    255.255.255.0   UG    0      0        0 eth0.10
192.168.30.0    192.168.40.3    255.255.255.0   UG    0      0        0 eth0.40
192.168.40.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.40
/dev/pts/4
09:33:37
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.35.1       0.0.0.0         UG    0      0        0 eth0
10.0.35.0       0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.10
192.168.20.0    192.168.10.1    255.255.255.0   UG    0      0        0 eth0.10
192.168.30.0    192.168.40.3    255.255.255.0   UG    0      0        0 eth0.40
192.168.40.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.40
/dev/pts/3
09:33:39
#vconfig rem
Expecting argc to be 3-5, inclusive.  Was: 2
Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]
* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
* skb_priority is the priority in the socket buffer (sk_buff).
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.
/dev/pts/4
09:33:39
#vconfig rem
Expecting argc to be 3-5, inclusive.  Was: 2
Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]
* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
* skb_priority is the priority in the socket buffer (sk_buff).
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.
/dev/pts/3
09:35:01
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
^C
--- 192.168.20.2 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3023ms
/dev/pts/4
09:35:01
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data.
^C
--- 192.168.20.2 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3023ms
/dev/pts/3
09:36:16
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data.
64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=2.77 ms
64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.249 ms
64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.251 ms
64 bytes from 192.168.30.3: icmp_req=4 ttl=64 time=0.559 ms
^C
--- 192.168.30.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.249/0.958/2.775/1.056 ms
/dev/pts/4
09:36:16
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data.
64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=2.77 ms
64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.249 ms
64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.251 ms
64 bytes from 192.168.30.3: icmp_req=4 ttl=64 time=0.559 ms
^C
--- 192.168.30.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.249/0.958/2.775/1.056 ms
/dev/pts/3
09:36:42
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data.
64 bytes from 192.168.30.2: icmp_req=2 ttl=63 time=1.03 ms
64 bytes from 192.168.30.2: icmp_req=3 ttl=63 time=1.05 ms
64 bytes from 192.168.30.2: icmp_req=4 ttl=63 time=0.572 ms
^C
--- 192.168.30.2 ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 3009ms
rtt min/avg/max/mdev = 0.572/0.885/1.053/0.223 ms
/dev/pts/4
09:36:42
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data.
64 bytes from 192.168.30.2: icmp_req=2 ttl=63 time=1.03 ms
64 bytes from 192.168.30.2: icmp_req=3 ttl=63 time=1.05 ms
64 bytes from 192.168.30.2: icmp_req=4 ttl=63 time=0.572 ms
^C
--- 192.168.30.2 ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 3009ms
rtt min/avg/max/mdev = 0.572/0.885/1.053/0.223 ms
/dev/pts/3
09:36:49
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data.
64 bytes from 192.168.30.2: icmp_req=1 ttl=63 time=0.789 ms
64 bytes from 192.168.30.2: icmp_req=2 ttl=63 time=0.667 ms
64 bytes from 192.168.30.2: icmp_req=3 ttl=63 time=0.827 ms
^C
--- 192.168.30.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.667/0.761/0.827/0.068 ms
/dev/pts/4
09:36:49
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data.
64 bytes from 192.168.30.2: icmp_req=1 ttl=63 time=0.789 ms
64 bytes from 192.168.30.2: icmp_req=2 ttl=63 time=0.667 ms
64 bytes from 192.168.30.2: icmp_req=3 ttl=63 time=0.827 ms
^C
--- 192.168.30.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.667/0.761/0.827/0.068 ms
/dev/pts/3
09:37:04
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data.
64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=0.577 ms
64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.514 ms
64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.234 ms
^C
--- 192.168.30.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.234/0.441/0.577/0.151 ms
/dev/pts/4
09:37:04
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data.
64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=0.577 ms
64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.514 ms
64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.234 ms
^C
--- 192.168.30.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.234/0.441/0.577/0.151 ms
/dev/pts/3
09:37:11
#traceroute 192.168.30.3
traceroute to 192.168.30.3 (192.168.30.3), 30 hops max, 60 byte packets
^C
/dev/pts/4
09:37:11
#traceroute 192.168.30.3
traceroute to 192.168.30.3 (192.168.30.3), 30 hops max, 60 byte packets
^C
/dev/pts/3
09:37:51
#traceroute -n 192.168.30.3
traceroute to 192.168.30.3 (192.168.30.3), 30 hops max, 60 byte packets
 1  192.168.30.3  0.465 ms  0.376 ms  0.366 ms
/dev/pts/4
09:37:51
#traceroute -n 192.168.30.3
traceroute to 192.168.30.3 (192.168.30.3), 30 hops max, 60 byte packets
 1  192.168.30.3  0.465 ms  0.376 ms  0.366 ms
/dev/pts/3
09:37:55
#traceroute -n 192.168.30.2
traceroute to 192.168.30.2 (192.168.30.2), 30 hops max, 60 byte packets
 1  10.0.35.43  0.246 ms  0.213 ms  0.437 ms
 2  192.168.30.2  0.716 ms  0.712 ms  0.705 ms

Файлы

  • /proc/sys/net/ipv4/ip_forward
  • /proc/sys/net/ipv4/ip_forward
    >
    0
    

    Статистика

    Время первой команды журнала09:08:20 2012- 2-22
    Время последней команды журнала09:37:55 2012- 2-22
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %27.72
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 0.49
    Количество командных строк в единицу времени, команда/мин 3.41
    Частота использования команд
    ping42|========================================| 40.00%
    route22|====================| 20.95%
    ifdown6|=====| 5.71%
    netstat6|=====| 5.71%
    traceroute5|====| 4.76%
    echo4|===| 3.81%
    ifup4|===| 3.81%
    vim4|===| 3.81%
    ifconfig2|=| 1.90%
    vconfig2|=| 1.90%
    shutdown2|=| 1.90%
    cat2|=| 1.90%