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

Содержание

Журнал

Вторник (02/21/12)

/dev/pts/3
11:22:02
#/etc/init.d/mdadm restart
Stopping MD monitoring service: mdadm --monitor.
Starting MD monitoring service: mdadm --monitor.
/dev/pts/4
11:22:02
#/etc/init.d/mdadm restart
Stopping MD monitoring service: mdadm --monitor.
Starting MD monitoring service: mdadm --monitor.
/dev/pts/3
11:22:22
#mdadm --monitor
mdadm: Cannot monitor: need --scan or at least one device
/dev/pts/4
11:22:22
#mdadm --monitor
mdadm: Cannot monitor: need --scan or at least one device
/dev/pts/3
11:22:37
#mdadm --monitor
mdadm: Cannot monitor: need --scan or at least one device
/dev/pts/4
11:22:37
#mdadm --monitor
mdadm: Cannot monitor: need --scan or at least one device
/dev/pts/3
11:22:46
#mdadm --scan
mdadm: --scan does not set the mode, and so cannot be the first option.
/dev/pts/4
11:22:46
#mdadm --scan
mdadm: --scan does not set the mode, and so cannot be the first option.
/dev/pts/3
11:22:56
#mdadm --scan --monitor
mdadm: --scan does not set the mode, and so cannot be the first option.
/dev/pts/4
11:22:56
#mdadm --scan --monitor
mdadm: --scan does not set the mode, and so cannot be the first option.
/dev/pts/3
11:23:08
#mdadm --monitor /dev/md0
mdadm: Monitor using email address "root" from config file
^C
/dev/pts/4
11:23:08
#mdadm --monitor /dev/md0
mdadm: Monitor using email address "root" from config file
^C
/dev/pts/3
11:23:49
#dd if=/dev/sda of=/dev/sdb count=1 bs=512
1+0 записей считано
1+0 записей написано
 скопировано 512 байт (512 B), 0,0300352 c, 17,0 kB/c
/dev/pts/4
11:23:49
#dd if=/dev/sda of=/dev/sdb count=1 bs=512
1+0 записей считано
1+0 записей написано
 скопировано 512 байт (512 B), 0,0300352 c, 17,0 kB/c
/dev/pts/3
11:27:20
#fdisk -l /dev/sdb
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: invalid flag 0x0020 of partition table 5 will be corrected by w(rite)
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
254 heads, 63 sectors/track, 61040 cylinders
Units = cylinders of 16002 * 512 = 8193024 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x84b0e27d
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        6103    48827392   83  Linux
/dev/sdb2            6103        7324     9762019    5  Extended
/dev/sdb5           21150       90066   551395330   93  Amoeba
/dev/pts/4
11:27:20
#fdisk -l /dev/sdb
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: invalid flag 0x0020 of partition table 5 will be corrected by w(rite)
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
254 heads, 63 sectors/track, 61040 cylinders
Units = cylinders of 16002 * 512 = 8193024 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x84b0e27d
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        6103    48827392   83  Linux
/dev/sdb2            6103        7324     9762019    5  Extended
/dev/sdb5           21150       90066   551395330   93  Amoeba
/dev/pts/3
11:27:36
#sfdisk -d /dev/sda
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start=     2048, size= 97654784, Id=83
/dev/sda2 : start= 97658878, size= 19524038, Id= 5
/dev/sda3 : start=        0, size=        0, Id= 0
/dev/sda4 : start=        0, size=        0, Id= 0
/dev/sda5 : start= 97658880, size=  9762816, Id=82
/dev/sda6 : start=107421759, size=  9761157, Id=83
/dev/pts/4
11:27:36
#sfdisk -d /dev/sda
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start=     2048, size= 97654784, Id=83
/dev/sda2 : start= 97658878, size= 19524038, Id= 5
/dev/sda3 : start=        0, size=        0, Id= 0
/dev/sda4 : start=        0, size=        0, Id= 0
/dev/sda5 : start= 97658880, size=  9762816, Id=82
/dev/sda6 : start=107421759, size=  9761157, Id=83
/dev/pts/3
11:28:28
#sfdisk -d /dev/sda | sed s/sda/sdb/ | sfdisk /dev/sdb
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 60801 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
sfdisk: ERROR: sector 97658878 does not have an msdos signature
Old situation:
Warning: The partition table looks like it was made
...
   Device Boot    Start       End   #sectors  Id  System
/dev/sdb1          2048  97656831   97654784  83  Linux
/dev/sdb2      97658878 117182915   19524038   5  Extended
/dev/sdb3             0         -          0   0  Empty
/dev/sdb4             0         -          0   0  Empty
/dev/sdb5      97658880 107421695    9762816  82  Linux swap / Solaris
/dev/sdb6     107421759 117182915    9761157  83  Linux
Warning: partition 1 does not end at a cylinder boundary
sfdisk: I don't like these partitions - nothing changed.
(If you really want this, use the --force option.)
/dev/pts/4
11:28:28
#sfdisk -d /dev/sda | sed s/sda/sdb/ | sfdisk /dev/sdb
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 60801 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
sfdisk: ERROR: sector 97658878 does not have an msdos signature
Old situation:
Warning: The partition table looks like it was made
...
   Device Boot    Start       End   #sectors  Id  System
/dev/sdb1          2048  97656831   97654784  83  Linux
/dev/sdb2      97658878 117182915   19524038   5  Extended
/dev/sdb3             0         -          0   0  Empty
/dev/sdb4             0         -          0   0  Empty
/dev/sdb5      97658880 107421695    9762816  82  Linux swap / Solaris
/dev/sdb6     107421759 117182915    9761157  83  Linux
Warning: partition 1 does not end at a cylinder boundary
sfdisk: I don't like these partitions - nothing changed.
(If you really want this, use the --force option.)
/dev/pts/3
11:29:15
#sfdisk -d /dev/sda | sed s/sda/sdb/ | sfdisk /dev/sdb --force
Checking that no-one is using this disk right now ...
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
OK
Disk /dev/sdb: 60801 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
sfdisk: ERROR: sector 97658878 does not have an msdos signature
Old situation:
Warning: The partition table looks like it was made
...
/dev/sdb3             0         -          0   0  Empty
/dev/sdb4             0         -          0   0  Empty
/dev/sdb5      97658880 107421695    9762816  82  Linux swap / Solaris
/dev/sdb6     107421759 117182915    9761157  83  Linux
Warning: partition 1 does not end at a cylinder boundary
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/dev/pts/4
11:29:15
#sfdisk -d /dev/sda | sed s/sda/sdb/ | sfdisk /dev/sdb --force
Checking that no-one is using this disk right now ...
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
OK
Disk /dev/sdb: 60801 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
sfdisk: ERROR: sector 97658878 does not have an msdos signature
Old situation:
Warning: The partition table looks like it was made
...
/dev/sdb3             0         -          0   0  Empty
/dev/sdb4             0         -          0   0  Empty
/dev/sdb5      97658880 107421695    9762816  82  Linux swap / Solaris
/dev/sdb6     107421759 117182915    9761157  83  Linux
Warning: partition 1 does not end at a cylinder boundary
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/dev/pts/3
11:29:55
#sfdisk -d /dev/sda
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start=     2048, size= 97654784, Id=83
/dev/sda2 : start= 97658878, size= 19524038, Id= 5
/dev/sda3 : start=        0, size=        0, Id= 0
/dev/sda4 : start=        0, size=        0, Id= 0
/dev/sda5 : start= 97658880, size=  9762816, Id=82
/dev/sda6 : start=107421759, size=  9761157, Id=83
/dev/pts/4
11:29:55
#sfdisk -d /dev/sda
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start=     2048, size= 97654784, Id=83
/dev/sda2 : start= 97658878, size= 19524038, Id= 5
/dev/sda3 : start=        0, size=        0, Id= 0
/dev/sda4 : start=        0, size=        0, Id= 0
/dev/sda5 : start= 97658880, size=  9762816, Id=82
/dev/sda6 : start=107421759, size=  9761157, Id=83
/dev/pts/3
11:30:06
#sfdisk -d /dev/sdb
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/sdb
unit: sectors
/dev/sdb1 : start=     2048, size= 97654784, Id=83
/dev/sdb2 : start= 97658878, size= 19524038, Id= 5
/dev/sdb3 : start=        0, size=        0, Id= 0
/dev/sdb4 : start=        0, size=        0, Id= 0
/dev/sdb5 : start= 97658880, size=  9762816, Id=82
/dev/sdb6 : start=107421759, size=  9761157, Id=83
/dev/pts/4
11:30:06
#sfdisk -d /dev/sdb
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/sdb
unit: sectors
/dev/sdb1 : start=     2048, size= 97654784, Id=83
/dev/sdb2 : start= 97658878, size= 19524038, Id= 5
/dev/sdb3 : start=        0, size=        0, Id= 0
/dev/sdb4 : start=        0, size=        0, Id= 0
/dev/sdb5 : start= 97658880, size=  9762816, Id=82
/dev/sdb6 : start=107421759, size=  9761157, Id=83
/dev/pts/3
11:30:10
#fdisk -l /dev/sda
Disk /dev/sda: 320.1 GB, 320072933376 bytes
254 heads, 63 sectors/track, 39066 cylinders
Units = cylinders of 16002 * 512 = 8193024 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x84b0e27d
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        6103    48827392   83  Linux
/dev/sda2            6103        7324     9762019    5  Extended
/dev/sda5            6103        6714     4881408   82  Linux swap / Solaris
/dev/sda6            6714        7324     4880578+  83  Linux
/dev/pts/4
11:30:10
#fdisk -l /dev/sda
Disk /dev/sda: 320.1 GB, 320072933376 bytes
254 heads, 63 sectors/track, 39066 cylinders
Units = cylinders of 16002 * 512 = 8193024 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x84b0e27d
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        6103    48827392   83  Linux
/dev/sda2            6103        7324     9762019    5  Extended
/dev/sda5            6103        6714     4881408   82  Linux swap / Solaris
/dev/sda6            6714        7324     4880578+  83  Linux
/dev/pts/3
11:31:57
#fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x84b0e27d
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        6079    48827392   83  Linux
/dev/sdb2            6079        7295     9762019    5  Extended
/dev/sdb5            6079        6687     4881408   82  Linux swap / Solaris
/dev/sdb6            6687        7295     4880578+  83  Linux
/dev/pts/4
11:31:57
#fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x84b0e27d
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        6079    48827392   83  Linux
/dev/sdb2            6079        7295     9762019    5  Extended
/dev/sdb5            6079        6687     4881408   82  Linux swap / Solaris
/dev/sdb6            6687        7295     4880578+  83  Linux
/dev/pts/3
11:33:08
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda6 on /data type ext3 (rw,errors=remount-ro)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=user)
/dev/pts/4
11:33:08
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda6 on /data type ext3 (rw,errors=remount-ro)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=user)
/dev/pts/3
11:33:29
#ls /mnt

/dev/pts/4
11:33:29
#ls /mnt

/dev/pts/3
11:33:48
#umount /mnt
umount: /mnt: not mounted
/dev/pts/4
11:33:48
#umount /mnt
umount: /mnt: not mounted
/dev/pts/3
11:33:58
#vim /etc/fstab
/dev/pts/4
11:33:58
#vim /etc/fstab
--- /tmp/l3-saved-2820.13923.15135	2012-02-21 12:41:53.000000000 +0200
+++ /etc/fstab	2012-02-21 12:42:17.000000000 +0200
@@ -11,4 +11,4 @@
 # swap was on /dev/sda5 during installation
 UUID=bb265d24-4352-4b0a-aab1-6558f3b82697 none            swap    sw              0       0
 /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
-UUID=32f4a5bf-a5d7-401f-b005-a2b5abbdf9b1 /data           ext3 	errors=remount-ro 0 1
+# UUID=32f4a5bf-a5d7-401f-b005-a2b5abbdf9b1 /data           ext3 	errors=remount-ro 0 1
/dev/pts/3
11:42:17
#umount /data

/dev/pts/4
11:42:17
#umount /data

/dev/pts/3
11:44:06
#mdadm -C /dev/md0 -l 1 -n 2 /dev/sda6 /dev/sdb6
mdadm: /dev/sda6 appears to contain an ext2fs file system
    size=4880576K  mtime=Tue Feb 21 09:48:10 2012
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
Continue creating array? yes
mdadm: /dev/md0 is already in use.
/dev/pts/4
11:44:06
#mdadm -C /dev/md0 -l 1 -n 2 /dev/sda6 /dev/sdb6
mdadm: /dev/sda6 appears to contain an ext2fs file system
    size=4880576K  mtime=Tue Feb 21 09:48:10 2012
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
Continue creating array? yes
mdadm: /dev/md0 is already in use.
/dev/pts/3
11:44:20
#mdadm -C /dev/md1 -l 1 -n 2 /dev/sda6 /dev/sdb6
mdadm: /dev/sda6 appears to contain an ext2fs file system
    size=4880576K  mtime=Tue Feb 21 09:48:10 2012
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
Continue creating array? yes
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md1 started.
/dev/pts/4
11:44:20
#mdadm -C /dev/md1 -l 1 -n 2 /dev/sda6 /dev/sdb6
mdadm: /dev/sda6 appears to contain an ext2fs file system
    size=4880576K  mtime=Tue Feb 21 09:48:10 2012
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
Continue creating array? yes
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md1 started.
/dev/pts/3
11:45:24
#cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sdb6[1] sda6[0]
      4879542 blocks super 1.2 [2/2] [UU]
md0 : active raid5 loop5[5](S) loop4[4] loop3[3] loop2[1] loop1[0]
      3070464 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
unused devices: <none>
/dev/pts/4
11:45:24
#cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sdb6[1] sda6[0]
      4879542 blocks super 1.2 [2/2] [UU]
md0 : active raid5 loop5[5](S) loop4[4] loop3[3] loop2[1] loop1[0]
      3070464 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
unused devices: <none>
/dev/pts/3
11:47:42
#mount /dev/md1 /mnt
mount: you must specify the filesystem type
/dev/pts/4
11:47:42
#mount /dev/md1 /mnt
mount: you must specify the filesystem type
/dev/pts/3
11:47:51
#mkfs.ext3 /dev/md1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
305216 inodes, 1219885 blocks
60994 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1249902592
38 block groups
32768 blocks per group, 32768 fragments per group
8032 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
/dev/pts/4
11:47:51
#mkfs.ext3 /dev/md1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
305216 inodes, 1219885 blocks
60994 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1249902592
38 block groups
32768 blocks per group, 32768 fragments per group
8032 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
/dev/pts/3
11:49:16
#mount /dev/md1 /mnt

/dev/pts/4
11:49:16
#mount /dev/md1 /mnt

/dev/pts/3
11:49:18
#ls /mnt
lost+found
/dev/pts/4
11:49:18
#ls /mnt
lost+found
/dev/pts/3
11:49:24
#vim /mnt/1.txt
/dev/pts/4
11:49:24
#vim /mnt/1.txt
--- /dev/null	2012-02-21 09:48:06.838147388 +0200
+++ /mnt/1.txt	2012-02-21 12:49:42.000000000 +0200
@@ -0,0 +1,2 @@
+dfgdfgdfsg
+dasfgdsfg
/dev/pts/3
11:49:42
#cat /mnt/1.txt
dfgdfgdfsg
dasfgdsfg
/dev/pts/4
11:49:42
#cat /mnt/1.txt
dfgdfgdfsg
dasfgdsfg
/dev/pts/3
11:51:38
#shutdown -r now

/dev/pts/4
11:51:38
#shutdown -r now

/dev/pts/2
11:53:57
#cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda6[0] sdb6[1]
      4879542 blocks super 1.2 [2/2] [UU]
unused devices: <none>
/dev/pts/1
11:53:57
#cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sda6[0] sdb6[1]
      4879542 blocks super 1.2 [2/2] [UU]
unused devices: <none>
/dev/pts/2
11:54:08
#ping lib.ru
PING lib.ru (81.176.66.163) 56(84) bytes of data.
^C
From 10.0.35.1: icmp_seq=2 Redirect Host(New nexthop: 10.0.3.4)
^CFrom 10.0.35.1 icmp_seq=1 Destination Host Unreachable
^CFrom 10.0.35.1 icmp_seq=2 Destination Host Unreachable
--- lib.ru ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1008ms
pipe 2
/dev/pts/1
11:54:08
#ping lib.ru
PING lib.ru (81.176.66.163) 56(84) bytes of data.
^C
From 10.0.35.1: icmp_seq=2 Redirect Host(New nexthop: 10.0.3.4)
^CFrom 10.0.35.1 icmp_seq=1 Destination Host Unreachable
^CFrom 10.0.35.1 icmp_seq=2 Destination Host Unreachable
--- lib.ru ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1008ms
pipe 2
прошло 60 минут
/dev/pts/2
12:54:35
#netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
^C
/dev/pts/1
12:54:35
#netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
^C
/dev/pts/2
12:54:49
#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
/dev/pts/1
12:54:49
#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
/dev/pts/2
12:54:51
#history|grep defa
  143  sudo route add default gw 10.0.35.1
  147  sudo route delete default gw 10.0.1.1
  494  history|grep defa
/dev/pts/1
12:54:51
#history|grep defa
  143  sudo route add default gw 10.0.35.1
  147  sudo route delete default gw 10.0.1.1
  494  history|grep defa
/dev/pts/2
12:55:18
#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
/dev/pts/1
12:55:18
#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
/dev/pts/2
12:56:03
#tarceroute -n lib.ru
bash: tarceroute: команда не найдена
/dev/pts/1
12:56:03
#tarceroute -n lib.ru
bash: tarceroute: команда не найдена
/dev/pts/2
12:56:25
#traceroute -n lib.ru
traceroute to lib.ru (81.176.66.163), 30 hops max, 60 byte packets
 1  10.0.35.44  3007.864 ms !H  3007.860 ms !H  3007.854 ms !H
/dev/pts/1
12:56:25
#traceroute -n lib.ru
traceroute to lib.ru (81.176.66.163), 30 hops max, 60 byte packets
 1  10.0.35.44  3007.864 ms !H  3007.860 ms !H  3007.854 ms !H
/dev/pts/2
12:56:37
#traceroute -n lib.ru
traceroute to lib.ru (81.176.66.163), 30 hops max, 60 byte packets
 1  10.0.35.44  3002.045 ms !H  3002.042 ms !H  3002.037 ms !H
/dev/pts/1
12:56:37
#traceroute -n lib.ru
traceroute to lib.ru (81.176.66.163), 30 hops max, 60 byte packets
 1  10.0.35.44  3002.045 ms !H  3002.042 ms !H  3002.037 ms !H
/dev/pts/2
12:57:07
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data.
64 bytes from 10.0.35.1: icmp_req=1 ttl=64 time=0.262 ms
64 bytes from 10.0.35.1: icmp_req=2 ttl=64 time=0.259 ms
64 bytes from 10.0.35.1: icmp_req=3 ttl=64 time=0.264 ms
^C
--- 10.0.35.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.259/0.261/0.264/0.018 ms
/dev/pts/1
12:57:07
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data.
64 bytes from 10.0.35.1: icmp_req=1 ttl=64 time=0.262 ms
64 bytes from 10.0.35.1: icmp_req=2 ttl=64 time=0.259 ms
64 bytes from 10.0.35.1: icmp_req=3 ttl=64 time=0.264 ms
^C
--- 10.0.35.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.259/0.261/0.264/0.018 ms
/dev/pts/2
12:57:27
#ping 10.0.1.1
PING 10.0.1.1 (10.0.1.1) 56(84) bytes of data.
64 bytes from 10.0.1.1: icmp_req=1 ttl=128 time=4.20 ms
From 10.0.35.1: icmp_seq=2 Redirect Host(New nexthop: 10.0.1.1)
64 bytes from 10.0.1.1: icmp_req=2 ttl=128 time=0.469 ms
From 10.0.35.1: icmp_seq=3 Redirect Host(New nexthop: 10.0.1.1)
64 bytes from 10.0.1.1: icmp_req=3 ttl=128 time=0.641 ms
From 10.0.35.1: icmp_seq=4 Redirect Host(New nexthop: 10.0.1.1)
64 bytes from 10.0.1.1: icmp_req=4 ttl=128 time=0.618 ms
^C
--- 10.0.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.469/1.483/4.206/1.573 ms
/dev/pts/1
12:57:27
#ping 10.0.1.1
PING 10.0.1.1 (10.0.1.1) 56(84) bytes of data.
64 bytes from 10.0.1.1: icmp_req=1 ttl=128 time=4.20 ms
From 10.0.35.1: icmp_seq=2 Redirect Host(New nexthop: 10.0.1.1)
64 bytes from 10.0.1.1: icmp_req=2 ttl=128 time=0.469 ms
From 10.0.35.1: icmp_seq=3 Redirect Host(New nexthop: 10.0.1.1)
64 bytes from 10.0.1.1: icmp_req=3 ttl=128 time=0.641 ms
From 10.0.35.1: icmp_seq=4 Redirect Host(New nexthop: 10.0.1.1)
64 bytes from 10.0.1.1: icmp_req=4 ttl=128 time=0.618 ms
^C
--- 10.0.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.469/1.483/4.206/1.573 ms
/dev/pts/2
12:57:42
#route add default gw 10.0.1.1
SIOCADDRT: Нет такого процесса
/dev/pts/1
12:57:42
#route add default gw 10.0.1.1
SIOCADDRT: Нет такого процесса
/dev/pts/2
13:01:05
#route add default gw 10.0.1.1
SIOCADDRT: Нет такого процесса
/dev/pts/1
13:01:05
#route add default gw 10.0.1.1
SIOCADDRT: Нет такого процесса
/dev/pts/2
13:01:12
#sudo route add default gw 10.0.35.1
SIOCADDRT: Файл существует
/dev/pts/1
13:01:12
#sudo route add default gw 10.0.35.1
SIOCADDRT: Файл существует
/dev/pts/2
13:01:37
#route add default gw 10.0.35.1
SIOCADDRT: Файл существует
/dev/pts/1
13:01:37
#route add default gw 10.0.35.1