/l3/users/29-05-2007/nt-lnet/linux1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#mii-tool
[root@linux1:~]# dmesg | grep Eth [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg eth2: no link eth3: negotiated 10baseT-FD, link ok |
#mii-tool -R
[root@linux1:~]# dmesg | grep Eth [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg resetting the transceiver... resetting the transceiver... |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#apt-get install ethtool
-rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: ethtool обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 51,2kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 172kB. ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать! ethtool Установить эти пакеты без проверки [y/N]? n E: Некоторые пакеты невозможно аутентифицировать |
#apt-get update
Получено:1 http://debian.org.ua etch Release.gpg [378B] В кэше http://debian.org.ua etch Release Ign http://debian.org.ua etch/contrib Packages/DiffIndex Ign http://debian.org.ua etch/main Packages/DiffIndex Ign http://debian.org.ua etch/non-free Packages/DiffIndex В кэше http://debian.org.ua etch/contrib Packages В кэше http://debian.org.ua etch/main Packages В кэше http://debian.org.ua etch/non-free Packages Получено 378B за 0s (955B/c) Чтение списков пакетов... Готово |
#apt-key update
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg gpg: key 2D230C5F: "Debian Archive Automatic Signing Key (2006) <ftpmaster@debian.org>" not changed gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) <ftpmaster@debian.org>" not changed gpg: key ADB11277: "Etch Stable Release Key <debian-release@lists.debian.org>" not changed gpg: Total number processed: 3 gpg: unchanged: 3 |
#apt-get install debian-archive-kering
[root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Чтение списков пакетов... Готово Построение дерева зависимостей... Готово E: Не могу найти пакет debian-archive-kering |
#apt-get install debian-archive-keyring
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Уже установлена самая новая версия debian-archive-keyring. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#apt-get install ethtool
Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: ethtool обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 51,2kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 172kB. Получено:1 http://debian.org.ua etch/main ethtool 5-1 [51,2kB] Получено 51,2kB за 0s (133kB/c) Выбор ранее не выбранного пакета ethtool. (Чтение базы данных... на данный момент установлено 83224 файлов и каталогов.) Распаковывается пакет ethtool (из файла .../archives/ethtool_5-1_i386.deb)... Настраивается пакет ethtool (5-1) ... |
#ethloot eth3
bash: ethloot: command not found |
#ethtool eth3
Settings for eth3: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Current message level: 0x00000007 (7) Link detected: yes |
#ethtool eth2
Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: Yes Speed: 10Mb/s Duplex: Half Port: MII PHYAD: 24 Transceiver: internal Auto-negotiation: on Current message level: 0x00000001 (1) Link detected: no |
#ethtool eth2
Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: Yes Speed: 10Mb/s Duplex: Half Port: MII PHYAD: 24 Transceiver: internal Auto-negotiation: on Current message level: 0x00000001 (1) Link detected: no |
#cat /proc/net/arp
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg IP address HW type Flags HW address Mask Device 192.168.16.201 0x1 0x2 00:01:02:B4:61:09 * eth3 192.168.16.199 0x1 0x2 00:D0:B7:CD:1B:CF * eth3 192.168.16.195 0x1 0x2 00:01:02:B4:61:10 * eth3 192.168.16.15 0x1 0x2 00:60:08:20:7B:0B * eth3 |
#ls -l /proc/net/arp
[root@linux1:~]# dmesg | grep Ethernet [root@linux1:~]# dmesg | grep Eth [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg -r--r--r-- 1 root root 0 2007-05-29 14:08 /proc/net/arp |
#arp
Address HWtype HWaddress Flags Mask Iface host201.net.nt ether 00:01:02:B4:61:09 C eth3 host199.net.nt ether 00:D0:B7:CD:1B:CF C eth3 host195.net.nt ether 00:01:02:B4:61:10 C eth3 net.nt ether 00:60:08:20:7B:0B C eth3 |
#arp -n
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Address HWtype HWaddress Flags Mask Iface 192.168.16.201 ether 00:01:02:B4:61:09 C eth3 192.168.16.199 ether 00:D0:B7:CD:1B:CF C eth3 192.168.16.195 ether 00:01:02:B4:61:10 C eth3 192.168.16.15 ether 00:60:08:20:7B:0B C eth3 |
#arp -n
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Address HWtype HWaddress Flags Mask Iface 192.168.16.201 ether 00:01:02:B4:61:09 C eth3 192.168.16.199 ether 00:D0:B7:CD:1B:CF C eth3 192.168.16.195 ether 00:01:02:B4:61:10 C eth3 192.168.16.15 ether 00:60:08:20:7B:0B C eth3 |
#arp -n
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Address HWtype HWaddress Flags Mask Iface 192.168.16.201 ether 00:01:02:B4:61:09 C eth3 192.168.16.199 ether 00:D0:B7:CD:1B:CF C eth3 192.168.16.195 ether 00:01:02:B4:61:10 C eth3 192.168.16.15 ether 00:60:08:20:7B:0B C eth3 |
#arp -n
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Address HWtype HWaddress Flags Mask Iface 192.168.16.201 ether 00:01:02:B4:61:09 C eth3 192.168.16.199 ether 00:D0:B7:CD:1B:CF C eth3 192.168.16.195 ether 00:01:02:B4:61:10 C eth3 192.168.16.15 ether 00:60:08:20:7B:0B C eth3 |
#ssh 192.168.16.199
sshPermission denied, please try again. root@192.168.16.199's password: Last login: Tue May 29 11:08:14 2007 Linux linux2 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2975; pidfile=/root/.lilalo/l3-agent.pid |
#ifconfig
collisions:0 txqueuelen:1000 RX bytes:1936611 (1.8 MiB) TX bytes:3860336 (3.6 MiB) 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) |
#man ettercap
|
#arp -n
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Address HWtype HWaddress Flags Mask Iface 192.168.16.201 ether 00:01:02:B4:61:09 C eth3 192.168.16.199 ether 00:D0:B7:CD:1B:CF C eth3 192.168.16.195 ether 00:01:02:B4:61:10 C eth3 192.168.16.15 ether 00:60:08:20:7B:0B C eth3 |
#ethtool eth3
-rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg [root@linux1:~]# dmesg | grep Ethernet [root@linux1:~]# dmesg | grep Eth [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg |
#telnet 192.168.16.199 110
-rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Trying 192.168.16.199... Connected to 192.168.16.199. Escape character is '^]'. +OK USER user +OK PASS password +OK quit +OK Connection closed by foreign host. |
#arp -an
e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg ? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#arp -d 192.168.16.15
-rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg [root@linux1:~]# dmesg | grep Ethernet [root@linux1:~]# dmesg | grep Eth [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg |
#arp -an
? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#arp -an
e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg ? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#telnet 192.168.16.199 110
Connected to 192.168.16.199. Escape character is '^]'. +OK ^[[3~ -ERR -ERR -ERR ^] telnet> quit Connection closed. |
#telnet 192.168.16.199 110
-ERR -ERR -ERR -ERR q -ERR ^] telnet> quit Connection closed. |
#arp -an
e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg ? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#arp -an
e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg ? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#telnet 192.168.16.199 110
[root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Trying 192.168.16.199... Connected to 192.168.16.199. Escape character is '^]'. +OK USER user +OK PASS ^] telnet> quit Connection closed. |
#ifconfig
collisions:0 txqueuelen:1000 RX bytes:2614773 (2.4 MiB) TX bytes:5301208 (5.0 MiB) 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) |
#telnet 192.168.16.15 110
eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Trying 192.168.16.15... Connected to 192.168.16.15. Escape character is '^]'. +OK USER user +OK ^] telnet> quit Connection closed. |
#arp -an
e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg ? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#IFCONFIG
[root@linux1:~]# dmesg | grep Ethernet [root@linux1:~]# dmesg | grep Eth [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg bash: IFCONFIG: command not found |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0xc000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.16.203 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::290:27ff:fe35:58f2/64 Scope:Link ... collisions:0 txqueuelen:1000 RX bytes:2660187 (2.5 MiB) TX bytes:5416051 (5.1 MiB) 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) |
#telnet 192.168.16.199 110
-rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Trying 192.168.16.199... Connected to 192.168.16.199. Escape character is '^]'. +OK USER user +OK PASS password +OK ^] telnet> quit Connection closed. |
#ifconfig
collisions:0 txqueuelen:1000 RX bytes:2687854 (2.5 MiB) TX bytes:5477427 (5.2 MiB) 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) |
#arp -an
e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg ? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#telnet 192.168.16.199
Connected to 192.168.16.199. Escape character is '^]'. +OK USER user +OK PASS password +OK USER user -ERR ^] telnet> quit Connection closed. |
#ls -al
итого 92 drwxr-xr-x 22 root root 4096 2007-05-29 10:44 . drwxr-xr-x 22 root root 4096 2007-05-29 10:44 .. drwxr-xr-x 2 root root 4096 2007-05-24 20:29 bin drwxr-xr-x 3 root root 4096 2007-05-24 20:36 boot lrwxrwxrwx 1 root root 11 2007-05-24 18:40 cdrom -> media/cdrom drwxr-xr-x 15 root root 4300 2007-05-29 12:21 dev drwxr-xr-x 101 root root 4096 2007-05-29 14:45 etc drwxr-xr-x 4 root root 4096 2007-05-24 20:37 home drwxr-xr-x 2 root root 4096 2007-05-24 18:41 initrd ... dr-xr-xr-x 107 root root 0 2007-05-29 12:21 proc drwxr-xr-x 5 root root 4096 2007-05-29 13:57 root drwxr-xr-x 2 root root 4096 2007-05-24 20:37 sbin drwxr-xr-x 2 root root 4096 2007-03-08 00:56 selinux drwxr-xr-x 2 root root 4096 2007-05-24 18:41 srv drwxr-xr-x 11 root root 0 2007-05-29 12:21 sys drwxrwxrwt 5 root root 4096 2007-05-29 14:11 tmp drwxr-xr-x 12 root root 4096 2007-05-24 20:23 usr drwxr-xr-x 15 root root 4096 2007-05-24 20:33 var lrwxrwxrwx 1 root root 25 2007-05-24 18:44 vmlinuz -> boot/vmlinuz-2.6.18-4-686 |
#arp -a
host201.net.nt (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 host199.net.nt (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 host195.net.nt (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 net.nt (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#telnet 192.168.16.15 110
-rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Trying 192.168.16.15... Connected to 192.168.16.15. Escape character is '^]'. +OK USER user +OK PASS password +OK ^] telnet> quit Connection closed. |
#telnet 192.168.16.199 110
+OK USER user +OK PASS password +OK -ERR -ERR ^] telnet> quit Connection closed. |
#telnet 192.168.16.199 110
-rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Trying 192.168.16.199... Connected to 192.168.16.199. Escape character is '^]'. +OK USER user +OK PASS password +OK ^] telnet> quit Connection closed. |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0xc000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.16.203 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::290:27ff:fe35:58f2/64 Scope:Link ... collisions:0 txqueuelen:1000 RX bytes:2796970 (2.6 MiB) TX bytes:5674386 (5.4 MiB) 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) |
#telnet 192.168.16.199 110
eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Trying 192.168.16.199... Connected to 192.168.16.199. Escape character is '^]'. +OK USER user +OK PASS pass -ERR Authentication failed (bad password?) Connection closed by foreign host. |
#telnet 192.168.16.199 110
eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Trying 192.168.16.199... Connected to 192.168.16.199. Escape character is '^]'. +OK USER user +OK PASS pass -ERR Authentication failed (bad password?) Connection closed by foreign host. |
#arp -an
e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg ? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#arp -d
arp: need host name |
#arp -f
arp: cannot open etherfile /etc/ethers ! |
#arp -F
arp: invalid option -- F Usage: arp [-vn] [<HW>] [-i <if>] [-a] [<hostname>] <-Display ARP cache arp [-v] [-i <if>] -d <host> [pub] <-Delete ARP entry arp [-vnD] [<HW>] [-i <if>] -f [<filename>] <-Add entry from file arp [-v] [<HW>] [-i <if>] -s <host> <hwaddr> [temp] <-Add entry arp [-v] [<HW>] [-i <if>] -Ds <host> <if> [netmask <nm>] pub <-''- -a display (all) hosts in alternative (BSD) style -s, --set set a new ARP entry -d, --delete delete a specified entry ... -D, --use-device read <hwaddr> from given device -A, -p, --protocol specify protocol family -f, --file read new entries from file or from /etc/ethers <HW>=Use '-H <hw>' to specify hardware address type. Default: ether List of possible hardware types (which support ARP): strip (Metricom Starmode IP) ash (Ash) ether (Ethernet) tr (16/4 Mbps Token Ring) tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE) arcnet (ARCnet) dlci (Frame Relay DLCI) fddi (Fiber Distributed Data Interface) hippi (HIPPI) irda (IrLAP) x25 (generic X.25) eui64 (Generic EUI-64) |
#arp -n
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Address HWtype HWaddress Flags Mask Iface 192.168.16.201 ether 00:01:02:B4:61:09 C eth3 192.168.16.199 ether 00:D0:B7:CD:1B:CF C eth3 192.168.16.195 ether 00:01:02:B4:61:10 C eth3 192.168.16.15 ether 00:60:08:20:7B:0B C eth3 |
#arp -d 192.168.16.199
|
#arp -n
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg Address HWtype HWaddress Flags Mask Iface 192.168.16.201 ether 00:01:02:B4:61:09 C eth3 192.168.16.199 ether 00:D0:B7:CD:1B:CF C eth3 192.168.16.195 ether 00:01:02:B4:61:10 C eth3 192.168.16.15 ether 00:60:08:20:7B:0B C eth3 |
#quit
[root@linux1:~]# dmesg | grep Ethernet [root@linux1:~]# dmesg | grep Eth [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg bash: quit: command not found |
#arp -an
? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#apt-get install gpm
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: gpm обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 382kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 721kB. Получено:1 http://debian.org.ua etch/main gpm 1.19.6-25 [382kB] Получено 382kB за 2s (139kB/c) Предварительная настройка пакетов ... Выбор ранее не выбранного пакета gpm. (Чтение базы данных... на данный момент установлено 83234 файлов и каталогов.) Распаковывается пакет gpm (из файла .../gpm_1.19.6-25_i386.deb)... Настраивается пакет gpm (1.19.6-25) ... Creating config file /etc/gpm.conf with new version Stopping mouse interface server: gpm failed! Starting mouse interface server: gpm. |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0xc000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.16.203 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::290:27ff:fe35:58f2/64 Scope:Link ... collisions:0 txqueuelen:1000 RX bytes:2886063 (2.7 MiB) TX bytes:5892590 (5.6 MiB) 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) |
#screen -x
|
#arp -d 192.168.16.199
-rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg [root@linux1:~]# dmesg | grep Ethernet [root@linux1:~]# dmesg | grep Eth [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg |
#arp -an
? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#arp -d 00:60:08:20:7B:0B
ACPI: Sleep Button (CM) [SLPB] lp0: using parport0 (interrupt-driven). ppdev: user-space parallel port driver eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready [drm] Initialized drm 1.0.1 20051102 ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 169 [drm] Initialized i915 1.5.0 20060119 on minor 0 eth3: no IPv6 routers present ... [root@linux1:~]# dmesg | grep -i Eth e100: eth1: e100_probe: addr 0xde000000, irq 169, MAC addr 00:90:27:35:58:F2 e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present 00:60:08:20:7B:0B: Unknown host ACPI: IRQ9 used by override. Enabling APIC mode: Flat. Using 1 I/O APICs |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. --- 192.168.20.1 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5010ms |
#ping 192.168.20.1 &
-host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig [1] 3361 PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. |
#exit
Connection to 192.168.16.2 closed. |
#arp -an
? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#w
15:04:02 up 2:42, 6 users, load average: 0,36, 0,21, 0,12 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 13:34 52:15m 0.99s 0.02s /bin/login -- root tty2 - 14:11 0.00s 0.06s 0.01s /bin/login -- root pts/3 :pts/2:S.0 13:37 33.00s 0.29s 0.07s script -f -q /r root pts/5 host199.net.nt 13:38 41:45m 0.27s 0.02s script -f -q /r root pts/7 host195.net.nt 13:38 12:50m 0.22s 0.02s script -f -q /r root pts/9 host201.net.nt 13:39 33.00s 0.17s 0.01s script -f -q /r |
#arp -an
? (192.168.16.201) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 ? (192.168.16.195) at 00:01:02:B4:61:10 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#man tr
|
#ps aux | ping
netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface or address] [-M mtu discovery hint] [-S sndbuf] [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination |
#ps aux | grep ping
root 3361 0.0 0.0 1744 500 ? S 15:03 0:00 ping 192.168.20.1 root 3473 0.0 0.0 3752 736 pts/6 S+ 15:06 0:00 grep ping |
#fg
-host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig bash: fg: current: no such job |
#pkill -9 3361
|
#telnet 192.168.16.199 110
Usage: telnet [-4] [-6] [-8] [-E] [-L] [-a] [-d] [-e char] [-l user] [-n tracefile] [ -b addr ] [-r] [host-name [port]] |
#telnet 192.168.16.199 110
Usage: telnet [-4] [-6] [-8] [-E] [-L] [-a] [-d] [-e char] [-l user] [-n tracefile] [ -b addr ] [-r] [host-name [port]] |
#ps aux | grep ping
root 3361 0.0 0.0 1744 500 ? S 15:03 0:00 ping 192.168.20.1 root 3491 0.0 0.0 3752 736 pts/6 S+ 15:06 0:00 grep ping |
#ps aux | grep ping
root 3361 0.0 0.0 1744 500 ? S 15:03 0:00 ping 192.168.20.1 |
#ps aux | grep ping
root 3361 0.0 0.0 1744 500 ? S 15:03 0:00 ping 192.168.20.1 root 3505 0.0 0.0 3752 736 pts/6 S+ 15:06 0:00 grep ping |
#telnet 192.168.16.199 110
Trying 192.168.16.199... Connected to 192.168.16.199. Escape character is '^]'. +OK USER user +OK PASS password +OK quit +OK Connection closed by foreign host. |
#route add -host 192.168.2
-host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig SIOCADDRT: No such device |
#arp -an
? (192.168.16.204) at <incomplete> on eth3 ? (192.168.16.199) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0xc000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.16.203 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::290:27ff:fe35:58f2/64 Scope:Link ... collisions:0 txqueuelen:1000 RX bytes:3336658 (3.1 MiB) TX bytes:6055043 (5.7 MiB) 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:9 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:648 (648.0 b) TX bytes:648 (648.0 b) |
#arp -an
? (192.168.16.204) at <incomplete> on eth3 ? (192.168.16.199) at 00:01:02:B4:61:09 [ether] on eth3 ? (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 |
#screen
|
#route add -host 192.168.20.1 gw 192.168.16.1
-net the target is a network. -host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1) 56(84) bytes of data. 64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.321 ms 64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.121 ms --- 192.168.16.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.121/0.221/0.321/0.100 ms |
#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_seq=1 ttl=64 time=0.330 ms 64 bytes from 192.168.20.1: icmp_seq=2 ttl=64 time=0.303 ms 64 bytes from 192.168.20.1: icmp_seq=3 ttl=64 time=0.170 ms 64 bytes from 192.168.20.1: icmp_seq=4 ttl=64 time=0.167 ms 64 bytes from 192.168.20.1: icmp_seq=5 ttl=64 time=0.283 ms 64 bytes from 192.168.20.1: icmp_seq=6 ttl=64 time=0.151 ms 64 bytes from 192.168.20.1: icmp_seq=7 ttl=64 time=0.267 ms --- 192.168.20.1 ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6000ms rtt min/avg/max/mdev = 0.151/0.238/0.330/0.070 ms |
#cat /proc/sys/net/ipv4/ip_forward
-host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig 0 |
##echo 1 > /proc/sys/net/ipv4/ip_forward
-net the target is a network. -host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig |
#vim /etc/sysctl.conf
|
##echo 1 > /proc/sys/net/ipv4/ip_forward
-net the target is a network. -host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig |
e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex eth3: no IPv6 routers present eth2: setting half-duplex. ADDRCONF(NETDEV_UP): eth2: link is not ready eth3: no IPv6 routers present [root@linux1:~]# ls -l /var/log/dmesg -rw-r----- 1 root adm 13102 2007-05-29 12:21 /var/log/dmesg IP address HW type Flags HW address Mask Device 192.168.16.201 0x1 0x2 00:01:02:B4:61:09 * eth3 192.168.16.199 0x1 0x2 00:D0:B7:CD:1B:CF * eth3 192.168.16.195 0x1 0x2 00:01:02:B4:61:10 * eth3 192.168.16.15 0x1 0x2 00:60:08:20:7B:0B * eth3
-host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig 0
Время первой команды журнала | 14:03:32 2007- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:11:31 2007- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.49 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008