| /l3/users/makswell/nt-voip/unix7.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
|
#cat /tmp/install
#!/bin/sh
hostname=`hostname`
uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
###############################################################################
#
# Set this variables before installation:
lilalo_user=maks_well
lab=nt-voip
install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script
lilalo_context="/users/${lilalo_user}/${lab}/${hostname}"
...
step "Downloading l3prompt" ${wget} ${url_l3prompt}
step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}'
step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }'
step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }'
step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users
step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users
step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users
cd /
rm -rf ${temp_dir}
show_final_message
|
|
#nano /tmp/install
--- /tmp/l3-saved-2742.6489.15635 2012-10-22 14:54:40.685657586 +0300
+++ /tmp/install 2012-10-22 14:54:59.357657582 +0300
@@ -7,7 +7,7 @@
#
# Set this variables before installation:
-lilalo_user=maks_well
+lilalo_user=makswell
lab=nt-voip
install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script
lilalo_context="/users/${lilalo_user}/${lab}/${hostname}"
|
|
#!/bin/sh
|
|
#bash install
Installing dependencies... Ok Downloading l3bashrc... | --2012-10-22 14:55:13-- http://xgu.ru/lilalo/l3bashrc | Распознаётся xgu.ru... 178.63.229.230 | Устанавливается соединение с xgu.ru|178.63.229.230|:80... соединение установлено. | Запрос HTTP послан, ожидается ответ... 200 OK | Длина: 7857 (7,7K) [text/plain] | Saving to: «l3bashrc» | ... If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3//users/makswell/nt-voip/unix7.unix.nt Use commands $ l3cd /users/makswell/MY-NEW-CONTEXT/unix7.unix.nt/USER $ l3pwd to change and to know your current context. For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! (don't forget to restart bash or relogin) |
|
#cat /root/.
./ .aptitude/ .bash_profile .l3rc .profile ../ .bash_history .bashrc .lilalo/ .ssh/ |
|
#cat /root/.
./ .aptitude/ .bash_profile .l3rc .profile ../ .bash_history .bashrc .lilalo/ .ssh/ |
|
#cat /root/.bash_profile
l3-agent . /root/.bashrc |
|
#echo Hello
Hello |
|
#pkill -1 l3-agent
|
|
#echo Hello
Hello |
|
#echo Hello
Hello |
|
#echo Hello
Hello |
|
#echo Hello
Hello |
|
#echo Hello
Hello |
|
#echo Hello
Hello |
|
#echo Hello
Hello |
|
#echo Hello
Hello |
|
#bash-completion
bash: bash-completion: команда не найдена |
|
#ps aux | grep l3
root 3362 7.4 0.0 14028 10292 ? Ss 15:00 0:02 l3-agent root 3426 0.0 0.0 3376 748 pts/7 S+ 15:00 0:00 grep l3 |
|
#w
15:15:32 up 1:00, 5 users, load average: 0,00, 0,01, 0,05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 17:15 ? 1:24 0.05s x-session-manager user pts/0 :0.0 17:17 ? 0.18s 0.09s ssh -l user 192.168.15.254 user pts/1 :0.0 17:20 31:19 0.16s 3.11s gnome-terminal user pts/4 :0.0 14:59 15:34 0.11s 3.11s gnome-terminal root pts/6 linux254.unix.ai 15:00 0.00s 0.09s 0.00s script -f -c bash -q /root/.lilalo//2461180243111514163-1350907220.script |
|
#apt-get install asterisk
ÐаÑÑÑойка пакеÑа âââââââââââââââââââââââââââââ⤠ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ libvpb0 âââââââââââââââââââââââââââââââ â ÐдеÑÑ Ð·Ð°Ð´Ð°ÑÑÑÑ ÐºÐ¾Ð´ Ñегиона ваÑей ÑелеÑонной ÑиÑÑÐµÐ¼Ñ (напÑимеÑ, 61 -- ÐвÑÑÑалиÑ, 7 -- â â РоÑÑиÑ). Ðн иÑполÑзÑеÑÑÑ Ð´Ð»Ñ Ð½Ð°ÑÑÑойки ÑегионалÑнÑÑ ÑÑандаÑÑов по ÑмолÑаниÑ, коÑоÑÑе â â должно ÑоблÑдаÑÑ Ð¾Ð±Ð¾ÑÑдование ÑелеÑонии Voicetronix. â â â â ТелеÑоннÑй код, ÑоглаÑно ITU-T: â â â â387_____________________________________________________________________________________ â â â ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ unixodbc (2.2.14p2-1) ... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ asterisk (1:1.6.2.9-2+squeeze8) ... Adding system user for Asterisk ÐобавлÑеÑÑÑ Ð¿Ð¾Ð»ÑзоваÑÐµÐ»Ñ Â«asterisk» в гÑÑÐ¿Ð¿Ñ Â«dialout» ... Ðобавление полÑзоваÑÐµÐ»Ñ asterisk в гÑÑÐ¿Ð¿Ñ dialout ÐоÑово. ÐобавлÑеÑÑÑ Ð¿Ð¾Ð»ÑзоваÑÐµÐ»Ñ Â«asterisk» в гÑÑÐ¿Ð¿Ñ Â«audio» ... Ðобавление полÑзоваÑÐµÐ»Ñ asterisk в гÑÑÐ¿Ð¿Ñ audio ÐоÑово. Starting Asterisk PBX: asterisk. |
|
#apt-get install asterisk-sounds-main asterisk-sounds-extra
ЧÑение ÑпиÑков пакеÑов... ÐоÑово ÐоÑÑÑоение деÑева завиÑимоÑÑей ЧÑение инÑоÑмаÑии о ÑоÑÑоÑнии... ÐоÑово ÐакеÑÑ, коÑоÑÑе бÑдÑÑ Ð£ÐÐÐ sterisk-core-sounds-en-gsm ÐÐÐЫРпакеÑÑ, коÑоÑÑе бÑдÑÑ ÑÑÑановленÑ: asterisk-sounds-extra asterisk-sounds-main обновлено 0, ÑÑÑановлено 2 новÑÑ Ð¿Ð°ÐºÐµÑов, Ð´Ð»Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¾ÑмеÑено 1 пакеÑов, и 0 пакеÑов не обновлено. ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ ÑкаÑаÑÑ 5.605 kРаÑÑ Ð¸Ð²Ð¾Ð². ÐоÑле данной опеÑаÑии, обÑÑм занÑÑого диÑкового пÑоÑÑÑанÑÑва возÑаÑÑÑÑ Ð½Ð° 7.008 kB. ... ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа asterisk-sounds-main. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 114295 Ñайлов и каÑалогов.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ asterisk-sounds-main (из Ñайла .../asterisk-sounds-main_1%3a1.6.2.9-2+squeeze8_all.deb)... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ asterisk-sounds-main (1:1.6.2.9-2+squeeze8) ... update-alternatives: иÑполÑзÑеÑÑÑ `/usr/share/asterisk/sounds/en_US_f_Allison' Ð´Ð»Ñ Ð¿ÑедоÑÑÐ°Ð²Ð»ÐµÐ½Ð¸Ñ `/usr/share/asterisk/sounds/en' (asterisk-prompt-en) в авÑомаÑиÑеÑкий Ñежим. update-alternatives: иÑполÑзÑеÑÑÑ `/usr/share/asterisk/sounds/en_US_f_Allison' Ð´Ð»Ñ Ð¿ÑедоÑÑÐ°Ð²Ð»ÐµÐ½Ð¸Ñ `/usr/share/asterisk/sounds/en_US' (asterisk-prompt-en-us) в авÑомаÑиÑеÑкий Ñежим. ÐÑÐ±Ð¾Ñ Ñанее не вÑбÑанного пакеÑа asterisk-sounds-extra. (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 114765 Ñайлов и каÑалогов.) РаÑпаковÑваеÑÑÑ Ð¿Ð°ÐºÐµÑ asterisk-sounds-extra (из Ñайла .../asterisk-sounds-extra_1.4.9-1_all.deb)... ÐаÑÑÑаиваеÑÑÑ Ð¿Ð°ÐºÐµÑ asterisk-sounds-extra (1.4.9-1) ... |
|
#/etc/init.d/asterisk status
Asterisk PBX is running. |
|
#ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2084 700 ? Ss 14:14 0:01 init [2] root 2 0.0 0.0 0 0 ? S 14:14 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S 14:14 0:00 [ksoftirqd/0] root 4 27.0 0.0 0 0 ? S 14:14 27:21 [kworker/0:0] root 6 0.0 0.0 0 0 ? S 14:14 0:00 [migration/0] root 7 0.0 0.0 0 0 ? S 14:14 0:00 [watchdog/0] root 8 0.0 0.0 0 0 ? S 14:14 0:00 [migration/1] root 10 0.0 0.0 0 0 ? S 14:14 0:00 [ksoftirqd/1] root 11 21.1 0.0 0 0 ? R 14:14 21:23 [kworker/0:1] ... root 3283 0.0 0.0 3444 748 pts/4 S+ 14:59 0:00 script -f -c bash -q /root/.lila root 3314 0.0 0.0 3448 424 pts/4 S+ 14:59 0:00 script -f -c bash -q /root/.lila root 3315 0.0 0.0 4648 1940 pts/5 Ss 14:59 0:00 bash root 3362 0.1 0.0 14028 10300 ? Ss 15:00 0:05 l3-agent asterisk 4658 0.0 0.1 47840 18056 ? Ssl 15:30 0:00 /usr/sbin/asterisk -p -U asteris asterisk 4659 0.0 0.0 2940 572 ? S 15:30 0:00 astcanary /var/run/asterisk/alt. root 4774 0.0 0.0 0 0 ? S 15:43 0:00 [kworker/2:0] root 4784 0.0 0.0 0 0 ? S 15:49 0:00 [kworker/1:0] root 4785 0.0 0.0 0 0 ? S 15:52 0:00 [kworker/2:2] root 4801 0.0 0.0 3924 1068 pts/5 R+ 15:55 0:00 ps aux |
|
#ps aux ÂÂ| grep aster
asterisk 4658 0.0 0.1 47840 18056 ? Ssl 15:30 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 4659 0.0 0.0 2940 572 ? S 15:30 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 4658 root 4810 0.0 0.0 3376 744 pts/5 S+ 15:56 0:00 grep aster |
|
#ps aux | grep aster
asterisk 4658 0.0 0.1 47840 18056 ? Ssl 15:30 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 4659 0.0 0.0 2940 572 ? S 15:30 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 4658 root 4820 0.0 0.0 3376 748 pts/5 S+ 15:57 0:00 grep aster |
|
#ps aux | grep [a]ster
asterisk 4658 0.0 0.1 47840 18056 ? Ssl 15:30 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 4659 0.0 0.0 2940 572 ? S 15:30 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 4658 |
|
#asterisk -r
Asterisk 1.6.2.9-2+squeeze8, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze8 currently running on unix7 (pid = 4658) unix7*CLI> core show sysinfo System Statistics ... Total RAM: 3936648 KiB Free RAM: 3253244 KiB Buffer RAM: 52232 KiB Number of Processes: 252 unix7*CLI> core show version Asterisk 1.6.2.9-2+squeeze8 built by buildd @ biber on a i686 running Linux on 2012-09-22 16:21:00 UTC unix7*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] unix7*CLI> exit |
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze8, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze8 currently running on unix7 (pid = 4658) ... unix7*CLI> ! ael agent agi cdr channel cli config console core dahdi database devstate dialplan dnsmgr dundi features file group gtalk hangup help http iax2 indication jabber jingle keys local logger manager meetme mfcr2 mgcp minivm mixmonitor module moh no odbc originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say sip skinny sla sqlite ss7 stun timing transcoder udptl ulimit unistim voicemail unix7*CLI> exit Executing last minute cleanups |
|
#mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.BACKUP
|
|
#asterisk -rvvv
Asterisk 1.6.2.9-2+squeeze8, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze8 currently running on unix7 (pid = 4658) ... Reloading SIP == Parsing '/etc/asterisk/sip.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found == Parsing '/etc/asterisk/sip_notify.conf': == Found unix7*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 2201 (Unspecified) D N 5060 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline] unix7*CLI> exit Executing last minute cleanups |
|
#ping 192.168.15.253
PING 192.168.15.253 (192.168.15.253) 56(84) bytes of data. 64 bytes from 192.168.15.253: icmp_req=1 ttl=64 time=3.19 ms 64 bytes from 192.168.15.253: icmp_req=2 ttl=64 time=0.726 ms ^C --- 192.168.15.253 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.726/1.958/3.190/1.232 ms |
|
#grep -r 192.168.15.7 /etc
/etc/hosts:192.168.15.7 unix7.unix.nt unix7 /etc/network/interfaces: address 192.168.15.7 |
|
#grep -rl 192.168.15.7 /etc
/etc/hosts /etc/network/interfaces |
|
#sed -i s/192.168.15.7/192.168.70.1 $(!!)
sed -i s/192.168.15.7/192.168.70.1 $(grep -rl 192.168.15.7 /etc) sed: -e выражение #1, символ 27: незавершенная команда `s' |
|
#cat /etc/hosts
127.0.0.1 localhost 192.168.70.1 unix7.unix.nt unix7 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
|
#cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.70.1
netmask 255.255.255.0
network 192.168.15.0
broadcast 192.168.15.255
gateway 192.168.15.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.15.254
dns-search unix.nt
|
|
#grep -rl 192.168.30.1 /etc
|
|
#grep -rl 192.168.30.1 /etc
|
|
#grep -rl 192.168.70.1 /etc
/etc/hosts /etc/network/interfaces |
|
#cat /etc/hosts
127.0.0.1 localhost 192.168.70.1 unix7.unix.nt unix7 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters |
|
#ping 192.168.40.1
PING 192.168.40.1 (192.168.40.1) 56(84) bytes of data. From 192.168.15.7 icmp_seq=3 Destination Host Unreachable From 192.168.15.7 icmp_seq=4 Destination Host Unreachable From 192.168.15.7 icmp_seq=6 Destination Host Unreachable From 192.168.15.7 icmp_seq=7 Destination Host Unreachable ^C --- 192.168.40.1 ping statistics --- 8 packets transmitted, 0 received, +4 errors, 100% packet loss, time 7017ms pipe 2 |
|
#ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data. From 192.168.15.7 icmp_seq=1 Destination Host Unreachable From 192.168.15.7 icmp_seq=2 Destination Host Unreachable ^C --- 192.168.50.1 ping statistics --- 3 packets transmitted, 0 received, +2 errors, 100% packet loss, time 2007ms pipe 2 |
|
#route
.bash_history .gconf/ .ICEauthority .ssh/ Музыка/ .bash_logout .gconfd/ .l3rc .update-notifier/ Общедоступные/ .bash_profile .gnome2/ .lilalo/ .xsession-errors Рабочий стол/ .bashrc .gnupg/ .local/ Видео/ Шаблоны/ .config/ .gstreamer-0.10/ .nautilus/ Документы/ .dbus/ .gtk-bookmarks .profile Загрузки/ .fontconfig/ .gvfs/ .recently-used.xbel Изображения/ |
|
#route
.bash_history .gconf/ .ICEauthority .ssh/ Музыка/ .bash_logout .gconfd/ .l3rc .update-notifier/ Общедоступные/ .bash_profile .gnome2/ .lilalo/ .xsession-errors Рабочий стол/ .bashrc .gnupg/ .local/ Видео/ Шаблоны/ .config/ .gstreamer-0.10/ .nautilus/ Документы/ .dbus/ .gtk-bookmarks .profile Загрузки/ .fontconfig/ .gvfs/ .recently-used.xbel Изображения/ |
|
#sho
shopt showconsolefont showkey showrgb shotwell showfont showmount |
|
#sho
shopt showconsolefont showkey showrgb shotwell showfont showmount |
|
#sho
shopt showconsolefont showkey showrgb shotwell showfont showmount |
|
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C |
|
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:30:42:78
inet addr:192.168.15.7 Bcast:192.168.15.255 Mask:255.255.255.0
inet6 addr: fe80::2e27:d7ff:fe30:4278/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:240572 errors:0 dropped:95 overruns:0 frame:0
TX packets:24044 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:52917970 (50.4 MiB) TX bytes:2112243 (2.0 MiB)
Interrupt:20 Memory:fe400000-fe420000
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:310 errors:0 dropped:0 overruns:0 frame:0
TX packets:310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:26356 (25.7 KiB) TX bytes:26356 (25.7 KiB)
|
|
#ifdown
ifdown: Use --help for help |
|
#if down
> ^C |
|
#if eth0 down
> ^C |
|
#ifdown eth0
SIOCDELRT: No such process |
|
#ifdown eth0
ifdown: interface eth0 not configured |
|
#ifdown eth1
ifdown: interface eth1 not configured |
|
#ifup eth0
^C |
|
#ifconfig up eth0
^C |
|
#ifconfig eth0 down
|
|
#ifconfig eth0 up
|
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:30:42:78
inet addr:192.168.70.1 Bcast:192.168.70.255 Mask:255.255.255.0
inet6 addr: fe80::2e27:d7ff:fe30:4278/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:240593 errors:0 dropped:95 overruns:0 frame:0
TX packets:24142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:52919334 (50.4 MiB) TX bytes:2123593 (2.0 MiB)
Interrupt:20 Memory:fe400000-fe420000
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:331 errors:0 dropped:0 overruns:0 frame:0
TX packets:331 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:28136 (27.4 KiB) TX bytes:28136 (27.4 KiB)
|
|
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.70.0 * 255.255.255.0 U 0 0 0 eth0 |
|
#/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...SIOCDELRT: No such process done. |
|
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.70.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
|
#ifup eth0
|
|
#/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. |
|
#/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. |
|
#/etc/init.d/network-manager stop
Stopping network connection manager: NetworkManager. |
|
#/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. |
|
#/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.60.1
PING 192.168.60.1 (192.168.60.1) 56(84) bytes of data. 64 bytes from 192.168.60.1: icmp_req=1 ttl=63 time=0.682 ms 64 bytes from 192.168.60.1: icmp_req=2 ttl=63 time=0.662 ms ^C --- 192.168.60.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.662/0.672/0.682/0.010 ms |
|
#ping ya.ru
ping: unknown host ya.ru |
|
|