/l3/users/2014-11-nt-voip/nt-voip/debian4/root :1 :2 :3 :4 |
|
#layout "us,ru"
![]() ping 192.168.12.254шасщташп ping: unknown host 192.168.12.254шасщташп |
#шifconfig
eth0 Link encap:Ethernet HWaddr 6c:3b:e5:3a:d3:57 inet addr:192.168.12.4 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::6e3b:e5ff:fe3a:d357/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:19652 errors:0 dropped:4 overruns:0 frame:0 TX packets:9606 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13675265 (13.0 MiB) TX bytes:959295 (936.8 KiB) Interrupt:18 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:155 errors:0 dropped:0 overruns:0 frame:0 TX packets:155 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9389 (9.1 KiB) TX bytes:9389 (9.1 KiB) |
#cat/etc/network/interfaces
![]() bash: cat/etc/network/interfaces: No such file or directory |
#cat /etc/network/interfaces
auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.12.4 netmask 255.255.255.0 gateway 192.168.12.254 |
#screen -x
|
#creen
![]() [root@debian4:~]# |
#creen
[root@debian4:~]# |
#cat /etc/network/interfaces
auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.12.4 netmask 255.255.255.0 gateway 192.168.12.254 |
#alias exit='echo no exit'
|
#ping 192.168.12.253
PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data. 64 bytes from 192.168.12.253: icmp_req=1 ttl=64 time=1.43 ms 64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.662 ms 64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.661 ms 64 bytes from 192.168.12.253: icmp_req=4 ttl=64 time=0.674 ms 64 bytes from 192.168.12.253: icmp_req=5 ttl=64 time=0.669 ms ^C --- 192.168.12.253 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4001ms rtt min/avg/max/mdev = 0.661/0.820/1.436/0.308 ms |
#ping 192.168.12.253
PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data. 64 bytes from 192.168.12.253: icmp_req=1 ttl=64 time=1.42 ms 64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.677 ms 64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.669 ms 64 bytes from 192.168.12.253: icmp_req=4 ttl=64 time=0.660 ms 64 bytes from 192.168.12.253: icmp_req=5 ttl=64 time=0.679 ms 64 bytes from 192.168.12.253: icmp_req=6 ttl=64 time=0.742 ms 64 bytes from 192.168.12.253: icmp_req=7 ttl=64 time=0.612 ms 64 bytes from 192.168.12.253: icmp_req=8 ttl=64 time=1.01 ms 64 bytes from 192.168.12.253: icmp_req=9 ttl=64 time=0.677 ms ... 64 bytes from 192.168.12.253: icmp_req=18 ttl=64 time=0.661 ms 64 bytes from 192.168.12.253: icmp_req=19 ttl=64 time=0.661 ms 64 bytes from 192.168.12.253: icmp_req=20 ttl=64 time=0.679 ms 64 bytes from 192.168.12.253: icmp_req=21 ttl=64 time=0.675 ms 64 bytes from 192.168.12.253: icmp_req=22 ttl=64 time=0.660 ms 64 bytes from 192.168.12.253: icmp_req=23 ttl=64 time=0.677 ms ^C --- 192.168.12.253 ping statistics --- 23 packets transmitted, 23 received, 0% packet loss, time 21998ms rtt min/avg/max/mdev = 0.612/0.895/4.790/0.847 ms |
#^C
![]() |
#sed -i s/192.168.12.4/192.168.40.1/ /etc/network/interfaces
|
#cat /etc/network/interfaces
auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.40.1 netmask 255.255.255.0 gateway 192.168.40.254 |
#cat /etc/network/interfaces
auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.40.1 netmask 255.255.255.0 gateway 192.168.40.254 |
#cat /etc/network/interfaces
![]() |
#cat /etc/network/interfaces
![]() ping 192.168.12.253 PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data. From 192.168.12.4 icmp_seq=1 Destination Host Unreachable From 192.168.12.4 icmp_seq=2 Destination Host Unreachable From 192.168.12.4 icmp_seq=3 Destination Host Unreachable From 192.168.12.4 icmp_seq=4 Destination Host Unreachable From 192.168.12.4 icmp_seq=5 Destination Host Unreachable From 192.168.12.4 icmp_seq=6 Destination Host Unreachable From 192.168.12.4 icmp_seq=7 Destination Host Unreachable From 192.168.12.4 icmp_seq=8 Destination Host Unreachable ... From 192.168.12.4 icmp_seq=19 Destination Host Unreachable From 192.168.12.4 icmp_seq=20 Destination Host Unreachable From 192.168.12.4 icmp_seq=21 Destination Host Unreachable From 192.168.12.4 icmp_seq=22 Destination Host Unreachable From 192.168.12.4 icmp_seq=23 Destination Host Unreachable From 192.168.12.4 icmp_seq=24 Destination Host Unreachable ^C --- 192.168.12.253 ping statistics --- 25 packets transmitted, 0 received, +24 errors, 100% packet loss, time 24118ms pipe 3 |
#ifdown
![]() ifdown: Use --help for help |
|