/l3/users/13-02-2012/NT-Lnet/debian2.net.nt/root :1 :2 :3 :4 :5 :6 :7 |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:571 errors:0 dropped:0 overruns:0 frame:0 TX packets:275 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:65838 (64.2 KiB) TX bytes:25232 (24.6 KiB) Interrupt:5 Base address:0x2000 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) |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:908 errors:0 dropped:0 overruns:0 frame:0 TX packets:583 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:126795 (123.8 KiB) TX bytes:46448 (45.3 KiB) Interrupt:5 Base address:0x2000 eth1 Link encap:Ethernet HWaddr 00:16:3e:00:01:02 ... RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:11 Base address:0x4200 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) |
#ifconfig eth2 192.168.13.2/16
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:984 errors:0 dropped:0 overruns:0 frame:0 TX packets:628 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:133662 (130.5 KiB) TX bytes:53010 (51.7 KiB) Interrupt:5 Base address:0x2000 eth2 Link encap:Ethernet HWaddr 00:16:3e:00:02:02 ... RX bytes:0 (0.0 B) TX bytes:238 (238.0 B) Interrupt:11 Base address:0x4200 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) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1055 errors:0 dropped:0 overruns:0 frame:0 TX packets:682 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:142698 (139.3 KiB) TX bytes:59278 (57.8 KiB) Interrupt:5 Base address:0x2000 eth2 Link encap:Ethernet HWaddr 00:16:3e:00:02:02 ... RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) Interrupt:11 Base address:0x4200 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) |
#ifconfig eth1 192.168.33.2/24
|
#ping 192.168.33.1
PING 192.168.33.1 (192.168.33.1) 56(84) bytes of data. 64 bytes from 192.168.33.1: icmp_req=1 ttl=64 time=2.67 ms 64 bytes from 192.168.33.1: icmp_req=2 ttl=64 time=1.03 ms 64 bytes from 192.168.33.1: icmp_req=3 ttl=64 time=1.41 ms ^C --- 192.168.33.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 1.035/1.710/2.678/0.702 ms |
#cd /etc/i
![]() init.d/ insserv/ iproute2/ initramfs-tools/ insserv.conf.d/ |
#vim /etc/network/interfaces
|
#~
![]() > ^C |
#man vim
|
#help vim
![]() bash: help: no help topics match `vim'. Try `help help' or `man -k vim' or `info vim'. |
#vim --help
![]() Использование: diff [КЛЮЧ]... ФАЙЛЫ Построчно сравнивает два файла. -i --ignore-case Игнорировать регистр букв в содержимом файлов. --ignore-file-name-case Игнорировать регистр букв в именах файлов. --no-ignore-file-name-case Учитывать регистр букв в именах файлов. -E --ignore-tab-expansion Игнорировать изменения, вызванные раскрытием табуляции. -b --ignore-space-change Игнорировать изменения числа пробельных символов. -w --ignore-all-space Игнорировать все пробельные символы. -B --ignore-blank-lines Игнорировать изменения числа пустых строк. -I РВ --ignore-matching-lines=РВ Игнорировать изменения, строки которых полностью соответствуют заданному регулярному выражению --strip-trailing-cr Удалить на выводе завершающий возврат каретки. -a --text Считать все файлы текстовыми. -c -C ЧИСЛО --context[=ЧИСЛО] Копировать ЧИСЛО (по умолчанию 3) строк контекста. -u -U ЧИСЛО --unified[=ЧИСЛО] Выводить ЧИСЛО (по умолчанию 3) строк объединенного контекста. -L МЕТКА --label МЕТКА Использовать МЕТКУ вместо имени файла. -p --show-c-function Показывать C-функцию, содержащую изменение. -F РВ --show-function-line=РВ Показывать предшествующую строку, совпадающую с заданным регулярным выражением. -q --brief Напечатать только различаются ли файлы. -e --ed Выводить сценарий ed. --normal Выводить в обычном формате diff. -n --rcs Выводить в формате RCS. -y --side-by-side Выводить в две колонки. -W ЧИСЛО --width=ЧИСЛО Выводить максимум заданное ЧИСЛО знаков в строке. (по умолчанию 130) --left-column Выводить только левую колонку общих строк. --suppress-common-lines Не выводить общие строки. -D ИМЯ --ifdef=ИМЯ Выводить заплаты, использующие конструкцию `#ifdef ИМЯ'. --ГТИП-group-format=ГФМТ Аналогично, но форматировать входные группы типа ГТИП в соответствии с форматом ГФМТ. --line-format=СФМТ Аналогично, но форматировать все входные строки с СФМТ. --СТИП-group-format=СФМТ Аналогично, но форматировать входные строки типа СТИП в соответствии с форматом СФМТ. СТИП может быть `old', `new', или `unchanged', ГТИП -- то же и `changed'. ГФМТ может содержать: %< строки из ФАЙЛА1 %> строки из ФАЙЛА2 %= строки, общие для ФАЙЛА1 и ФАЙЛА2 %[-][ШИРИНА][.[ТОЧН]]{doxX}БУКВА формат для БУКВЫ в стиле printf БУКВА принимает следующие значения для новых групп, для старых строчные: F номер первой строки L номер последней строки N число строк = L-F+1 E F-1 M L+1 СФМТ может содержать: %L содержимое строки %l содержимое строки, исключая все новые строки в конце %[-][ШИРИНА][.[ТОЧН]]{doxX}n формат номера входной строки в стиле printf Оба ГФМТ и СФМТ могут содержать: %% % %c'С' один символ С %c'\OOO' один символ с восьмеричным кодом OOO -l --paginate Направить вывод программе `pr' для разбиения на страницы. -t --expand-tabs Раскрывать при выводе символы табуляции в пробелы. -T --initial-tab Выравнивать табуляцию добавляя в начало символ табуляции. --tabsize=ЧИСЛО Табуляция через заданное ЧИСЛО знаков (по умолчанию 8). --suppress-blank-empty Suppress space or tab before empty output lines. -r --recursive Рекурсивно сравнивать подкаталоги. -N --new-file Воспринимать несуществующие файлы как пустые. --unidirectional-new-file Воспринимать несуществующие первые файлы как пустые. -s --report-identical-files Сообщать об одинаковых файлах. -x ОБРАЗЕЦ --exclude=ОБРАЗЕЦ Исключить файлы, чьи имена совпадают с ОБРАЗЦОМ. -X ФАЙЛ --exclude-from=ФАЙЛ Исключить файлы, чьи имена совпадают с каким-либо образцом из записанных в ФАЙЛЕ. -S ФАЙЛ --starting-file=ФАЙЛ При сравнении каталогов начать с ФАЙЛА. --from-file=ФАЙЛ1 Сравнить ФАЙЛ1 со всеми операндами. ФАЙЛ1 может быть каталогом. --to-file=ФАЙЛ2 Сравнить все операнды с ФАЙЛОМ2. ФАЙЛ2 может быть каталогом. --horizon-lines=ЧИСЛО Выводить ЧИСЛО общих строк до и после различающихся. -d --minimal Пытаться найти наименьший набор изменений. --speed-large-files Предполагать, что файлы большие со многими разбросанными мелкими изменениями. -v --version Показать информацию о версии и выйти. --help Показать эту справку и выйти. ФАЙЛЫ это `ФАЙЛ1 ФАЙЛ2', или `КАТАЛОГ1 КАТАЛОГ2', или `КАТАЛОГ ФАЙЛ...', или `ФАЙЛ... КАТАЛОГ'. Если задан --from-file или --to-file, на ФАЙЛЫ нет ограничений. Если ФАЙЛ задан как `-', читает стандартный ввод. Выходной статус равен 0, если входные файлы идентичны, 1 -- если различаются, и 2 в случае неполадок. Report bugs to: bug-diffutils@gnu.org GNU diffutils home page: <http://www.gnu.org/software/diffutils/> General help using GNU software: <http://www.gnu.org/gethelp/> |
#vim
![]() |
#~
PING ukemp.org (82.207.102.141) 56(84) bytes of data. 64 bytes from ukemp.org (82.207.102.141): icmp_req=1 ttl=56 time=35.0 ms 64 bytes from ukemp.org (82.207.102.141): icmp_req=2 ttl=56 time=35.2 ms 64 bytes from ukemp.org (82.207.102.141): icmp_req=3 ttl=56 time=34.8 ms ^C --- ukemp.org ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 34.872/35.046/35.213/0.206 ms |
#ssh root@82.207.102.141
The authenticity of host '82.207.102.141 (82.207.102.141)' can't be established. RSA key fingerprint is a6:83:5b:a8:21:f6:03:9b:a6:8f:dd:4d:03:5e:19:20. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '82.207.102.141' (RSA) to the list of known hosts. root@82.207.102.141's password: Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-14-generic i686) * Documentation: https://help.ubuntu.com/ 131 packages can be updated. 55 updates are security updates. Last login: Tue Feb 7 10:05:46 2012 from 192.168.5.76 root@ukemp:~# w 15:52:51 up 40 days, 22:07, 2 users, load average: 0.37, 0.40, 0.41 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 relay01.techexpe 15:52 0.00s 0.15s 0.00s w sharik pts/1 :0 06Feb12 7days 0.13s 0.13s bash root@ukemp:~# exit logout Connection to 82.207.102.141 closed. |
#man router
![]() |
#man rout
![]() |
#netstat
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 debian2.net.nt:ssh 192.168.13.253:3605 ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 4 [ ] DGRAM 3376 /dev/log unix 2 [ ] DGRAM 1885 @/org/kernel/udev/udevd unix 2 [ ] DGRAM 4069 unix 2 [ ] DGRAM 3401 unix 3 [ ] DGRAM 1890 unix 3 [ ] DGRAM 1889 |
#netstat -f inet
![]() netstat: неверный ключ -- «f» usage: netstat [-vWeenNcCF] [<Af>] -r netstat {-V|--version|-h|--help} netstat [-vWnNcaeol] [<Socket> ...] netstat { [-vWeenNac] -i | [-cWnNe] -M | -s } -r, --route display routing table -i, --interfaces display interface table -g, --groups display multicast group memberships -s, --statistics display networking statistics (like SNMP) -M, --masquerade display masqueraded connections -v, --verbose be verbose ... -a, --all, --listening display all sockets (default: connected) -o, --timers display timers -F, --fib display Forwarding Information Base (default) -C, --cache display routing cache instead of FIB <Socket>={-t|--tcp} {-u|--udp} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom <AF>=Use '-6|-4' or '-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) |
#netstat -f install
![]() .aptitude/ .bash_profile install .lilalo/ .ssh/ .bash_history .bashrc .l3rc .profile .viminfo |
#netstat -r
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.33.0 * 255.255.255.0 U 0 0 0 eth1 192.168.13.0 * 255.255.255.0 U 0 0 0 eth0 192.168.0.0 * 255.255.0.0 U 0 0 0 eth2 default 192.168.13.253 0.0.0.0 UG 0 0 0 eth0 |
#netstat -r -n
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.33.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.13.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 192.168.13.253 0.0.0.0 UG 0 0 0 eth0 |
#ifconfig eth2 192.168.64.64
|
#echo 1 > /proc/sys/net/ipv4/ip_forward
|
#ping 192.168.64.64
PING 192.168.64.64 (192.168.64.64) 56(84) bytes of data. 64 bytes from 192.168.64.64: icmp_req=1 ttl=64 time=0.214 ms 64 bytes from 192.168.64.64: icmp_req=2 ttl=64 time=0.085 ms 64 bytes from 192.168.64.64: icmp_req=3 ttl=64 time=0.085 ms ^C --- 192.168.64.64 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.085/0.128/0.214/0.060 ms |
#route add -net
![]() 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 |
#ping 192.168.13.1
PING 192.168.13.1 (192.168.13.1) 56(84) bytes of data. 64 bytes from 192.168.13.1: icmp_req=1 ttl=64 time=8.34 ms 64 bytes from 192.168.13.1: icmp_req=2 ttl=64 time=1.85 ms ^C --- 192.168.13.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 1.858/5.100/8.342/3.242 ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5573 errors:0 dropped:0 overruns:0 frame:0 TX packets:4275 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:756692 (738.9 KiB) TX bytes:522054 (509.8 KiB) Interrupt:5 Base address:0x2000 eth1 Link encap:Ethernet HWaddr 00:16:3e:00:01:02 ... RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) Interrupt:11 Base address:0x4200 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:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1064 (1.0 KiB) TX bytes:1064 (1.0 KiB) |
#route monitor
![]() 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) |
#vim /etc/network
![]() |
#vim /etc/network
![]() |
#vim /etc/network/interfaces
|
#~
![]() top - 15:17:38 up 6:08, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 56 total, 1 running, 55 sleeping, 0 stopped, 0 zombie Cpu(s): 12.9%us, 0.0%sy, 0.0%ni, 79.4%id, 6.6%wa, 0.7%hi, 0.3%si, 0.0%st Mem: 514752k total, 59936k used, 454816k free, 12864k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 688120k total, 0k used, 688120k free, 25884k cached 2009 root 20 0 2332 1120 896 R 0.3 0.2 0:00.10 top 1 root 20 0 2032 712 612 S 0.0 0.1 0:08.31 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 ... 147 root 20 0 0 0 0 S 0.0 0.0 0:00.03 scsi_eh_1 165 root 20 0 0 0 0 S 0.0 0.0 0:00.00 usbhid_resumer 185 root 20 0 0 0 0 S 0.0 0.0 0:05.23 kjournald 233 root 16 -4 2372 852 452 S 0.0 0.2 0:00.25 udevd 390 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 798 daemon 20 0 1808 492 400 S 0.0 0.1 0:00.00 portmap 815 statd 20 0 1936 772 640 S 0.0 0.1 0:00.21 rpc.statd 963 root 20 0 27448 1544 1024 S 0.0 0.3 0:00.11 rsyslogd 990 root 20 0 1704 592 480 S 0.0 0.1 0:00.00 acpid 1032 daemon 20 0 2160 416 284 S 0.0 0.1 0:00.00 atd |
#vim /etc/sysctl.conf
|
#sy
![]() sync sysctl syslog2eximlog |
#sysctl -algrep forward
![]() error: Unknown parameter "-algrep" usage: sysctl [-n] [-e] variable ... sysctl [-n] [-e] [-q] -w variable=value ... sysctl [-n] [-e] -a sysctl [-n] [-e] [-q] -p <file> (default /etc/sysctl.conf) sysctl [-n] [-e] -A |
#sysctl -a|grep forward
error: "Success" reading key "dev.parport.parport0.autoprobe" error: "Success" reading key "dev.parport.parport0.autoprobe0" error: "Success" reading key "dev.parport.parport0.autoprobe1" error: "Success" reading key "dev.parport.parport0.autoprobe2" error: "Success" reading key "dev.parport.parport0.autoprobe3" error: permission denied on key 'net.ipv4.route.flush' net.ipv4.conf.all.forwarding = 1 net.ipv4.conf.all.mc_forwarding = 0 net.ipv4.conf.default.forwarding = 1 net.ipv4.conf.default.mc_forwarding = 0 ... net.ipv6.conf.default.mc_forwarding = 0 net.ipv6.conf.lo.forwarding = 0 net.ipv6.conf.lo.mc_forwarding = 0 net.ipv6.conf.eth0.forwarding = 0 net.ipv6.conf.eth0.mc_forwarding = 0 net.ipv6.conf.eth1.forwarding = 0 error: permission denied on key 'net.ipv6.route.flush' net.ipv6.conf.eth1.mc_forwarding = 0 net.ipv6.conf.eth2.forwarding = 0 net.ipv6.conf.eth2.mc_forwarding = 0 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6654 errors:0 dropped:0 overruns:0 frame:0 TX packets:5157 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:886151 (865.3 KiB) TX bytes:666434 (650.8 KiB) Interrupt:5 Base address:0x2000 eth1 Link encap:Ethernet HWaddr 00:16:3e:00:01:02 ... RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) Interrupt:11 Base address:0x4200 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:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1064 (1.0 KiB) TX bytes:1064 (1.0 KiB) |
#ping mail.ru
PING mail.ru (94.100.191.202) 56(84) bytes of data. 64 bytes from 94.100.191.202: icmp_req=1 ttl=57 time=22.7 ms 64 bytes from 94.100.191.202: icmp_req=2 ttl=57 time=22.7 ms 64 bytes from 94.100.191.202: icmp_req=3 ttl=57 time=23.1 ms 64 bytes from 94.100.191.202: icmp_req=4 ttl=57 time=23.8 ms 64 bytes from 94.100.191.202: icmp_req=5 ttl=57 time=22.7 ms 64 bytes from 94.100.191.202: icmp_req=6 ttl=57 time=22.6 ms ^C --- mail.ru ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5008ms rtt min/avg/max/mdev = 22.662/22.991/23.897/0.457 ms |
#mail.ru
![]() bash: mail.ru: команда не найдена |
#mii_tool
![]() bash: mii_tool: команда не найдена |
#mii-tool
eth0: no autonegotiation, 100baseTx-FD flow-control, link ok eth1: no autonegotiation, 100baseTx-FD flow-control, link ok eth2: no autonegotiation, 100baseTx-FD flow-control, link ok |
#vim /etc/network/interfaces
--- /tmp/l3-saved-1344.19377.26402 2012-02-13 15:55:00.000000000 +0200 +++ /etc/network/interfaces 2012-02-13 15:59:32.000000000 +0200 @@ -6,3 +6,18 @@ address 192.168.13.2 netmask 255.255.255.0 gateway 192.168.13.253 + + +auto eth1 +iface eth1 inet static + address 192.168.64.150 + netmask 255.255.255.0 + gateway 192.168.64.1 + +auto eth2 +iface eth1 inet static + address 192.168.0.1 + netmask 255.255.255.0 + gateway 192.168.0.254 + + |
#/etc/network/
![]() if-down.d/ if-post-down.d/ if-pre-up.d/ if-up.d/ run/ |
#/etc/network/
![]() if-down.d/ if-post-down.d/ if-pre-up.d/ if-up.d/ run/ |
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces.../etc/network/interfaces:18: duplicate interface ifdown: couldn't read interfaces file "/etc/network/interfaces" /etc/network/interfaces:18: duplicate interface ifup: couldn't read interfaces file "/etc/network/interfaces" failed. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:936 errors:0 dropped:0 overruns:0 frame:0 TX packets:569 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:84972 (82.9 KiB) TX bytes:76311 (74.5 KiB) Interrupt:5 Base address:0x2000 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) |
#ifconfig eth1 up
|
#ifconfig et21 up
![]() et21: ERROR while getting interface flags: Нет такого устройства |
#ifconfig et2 up
![]() et2: ERROR while getting interface flags: Нет такого устройства |
#ifconfig eth2 up
|
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces.../etc/network/interfaces:18: duplicate interface ifdown: couldn't read interfaces file "/etc/network/interfaces" /etc/network/interfaces:18: duplicate interface ifup: couldn't read interfaces file "/etc/network/interfaces" failed. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:00:02 inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1290 errors:0 dropped:0 overruns:0 frame:0 TX packets:801 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:118453 (115.6 KiB) TX bytes:111375 (108.7 KiB) Interrupt:5 Base address:0x2000 eth1 Link encap:Ethernet HWaddr 00:16:3e:00:01:02 ... RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) Interrupt:11 Base address:0xa200 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) |
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...done. |
#ping 192.168.64.1
![]() PING 192.168.64.1 (192.168.64.1) 56(84) bytes of data. From 192.168.64.150 icmp_seq=1 Destination Host Unreachable From 192.168.64.150 icmp_seq=2 Destination Host Unreachable From 192.168.64.150 icmp_seq=3 Destination Host Unreachable From 192.168.64.150 icmp_seq=4 Destination Host Unreachable From 192.168.64.150 icmp_seq=5 Destination Host Unreachable From 192.168.64.150 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.64.1 ping statistics --- 9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8047ms pipe 3 |
#ping 192.168.64.1
PING 192.168.64.1 (192.168.64.1) 56(84) bytes of data. 64 bytes from 192.168.64.1: icmp_req=1 ttl=64 time=1.22 ms 64 bytes from 192.168.64.1: icmp_req=2 ttl=64 time=1.84 ms ^C --- 192.168.64.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 1.226/1.536/1.847/0.312 ms |
#sysctl net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1 |
#reboot
|
#ping mail.ru
![]() PING mail.ru (94.100.191.204) 56(84) bytes of data. ^C --- mail.ru ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5040ms |
#ping 192.168.0.254
PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data. 64 bytes from 192.168.0.254: icmp_req=1 ttl=64 time=1.00 ms 64 bytes from 192.168.0.254: icmp_req=2 ttl=64 time=1.09 ms 64 bytes from 192.168.0.254: icmp_req=3 ttl=64 time=2.09 ms 64 bytes from 192.168.0.254: icmp_req=4 ttl=64 time=1.03 ms ^C --- 192.168.0.254 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 1.008/1.308/2.097/0.458 ms |
#ping 192.168.168.1
![]() PING 192.168.168.1 (192.168.168.1) 56(84) bytes of data. ^C --- 192.168.168.1 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5039ms |
#vim /etc/network/interfaces
|
#~
PING 192.168.13.253 (192.168.13.253) 56(84) bytes of data. 64 bytes from 192.168.13.253: icmp_req=1 ttl=63 time=4.47 ms 64 bytes from 192.168.13.253: icmp_req=2 ttl=63 time=1.81 ms 64 bytes from 192.168.13.253: icmp_req=3 ttl=63 time=1.50 ms ^C --- 192.168.13.253 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.501/2.595/4.470/1.332 ms |
#ping ya.ru
![]() PING ya.ru (87.250.250.3) 56(84) bytes of data. ^C --- ya.ru ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3023ms |
#ping 87.250.250.3
![]() PING 87.250.250.3 (87.250.250.3) 56(84) bytes of data. ^C --- 87.250.250.3 ping statistics --- 17 packets transmitted, 0 received, 100% packet loss, time 16120ms |
#ping 192.168.168.5
PING 192.168.168.5 (192.168.168.5) 56(84) bytes of data. 64 bytes from 192.168.168.5: icmp_req=1 ttl=63 time=3.47 ms 64 bytes from 192.168.168.5: icmp_req=2 ttl=63 time=2.75 ms 64 bytes from 192.168.168.5: icmp_req=3 ttl=63 time=5.16 ms 64 bytes from 192.168.168.5: icmp_req=4 ttl=63 time=2.75 ms 64 bytes from 192.168.168.5: icmp_req=5 ttl=63 time=2.46 ms 64 bytes from 192.168.168.5: icmp_req=6 ttl=63 time=2.68 ms 64 bytes from 192.168.168.5: icmp_req=7 ttl=63 time=3.77 ms 64 bytes from 192.168.168.5: icmp_req=8 ttl=63 time=2.68 ms 64 bytes from 192.168.168.5: icmp_req=9 ttl=63 time=2.28 ms ... 64 bytes from 192.168.168.5: icmp_req=12 ttl=63 time=2.77 ms 64 bytes from 192.168.168.5: icmp_req=13 ttl=63 time=3.16 ms 64 bytes from 192.168.168.5: icmp_req=14 ttl=63 time=2.82 ms 64 bytes from 192.168.168.5: icmp_req=15 ttl=63 time=2.91 ms 64 bytes from 192.168.168.5: icmp_req=16 ttl=63 time=3.18 ms 64 bytes from 192.168.168.5: icmp_req=17 ttl=63 time=6.56 ms ^C --- 192.168.168.5 ping statistics --- 17 packets transmitted, 17 received, 0% packet loss, time 16025ms rtt min/avg/max/mdev = 2.284/3.207/6.569/1.065 ms |
#vim /etc/network/interfaces
|
|