| /l3/users/10-06-2013/NT-Lnet/debian3.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
|
#dig -x 192.168.13.253 +short
fobos.net.nt. net.nt. |
|
#^C
|
|
#cat /proc/sys
sys/ sysrq-trigger sysvipc/ |
|
#cat /proc/sys
sys/ sysrq-trigger sysvipc/ |
|
#cat /proc/sys
sys/ sysrq-trigger sysvipc/ |
|
#cat /proc/sys/net/ipv
ipv4/ ipv6/ |
|
#cat /proc/sys/net/ipv
ipv4/ ipv6/ |
|
#cat /proc/sys/net/ipv4/ip_forward
0 |
|
#sysctl .
./ .bash_history .l3rc .profile ../ .bash_profile .lesshst .ssh/ .aptitude/ .bashrc .lilalo/ .viminfo |
|
#sysctl .
./ .bash_history .l3rc .profile ../ .bash_profile .lesshst .ssh/ .aptitude/ .bashrc .lilalo/ .viminfo |
|
#. /etc/bash_completion
|
|
#sysctl net.
Display all 617 possibilities? (y or n) |
|
#sysctl net.ipv
Display all 584 possibilities? (y or n) |
|
#sysctl net.ipv4.ip_
net.ipv4.ip_default_ttl net.ipv4.ip_local_reserved_ports net.ipv4.ip_dynaddr net.ipv4.ip_nonlocal_bind net.ipv4.ip_forward net.ipv4.ip_no_pmtu_disc net.ipv4.ip_local_port_range |
|
#sysctl net.ipv4.ip_
net.ipv4.ip_default_ttl net.ipv4.ip_local_reserved_ports net.ipv4.ip_dynaddr net.ipv4.ip_nonlocal_bind net.ipv4.ip_forward net.ipv4.ip_no_pmtu_disc net.ipv4.ip_local_port_range |
|
#sysctl net.ipv4.ip_forward = 1
net.ipv4.ip_forward = 1 error: Malformed setting "=" error: "1" is an unknown key |
|
#sysctl net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1 |
|
#sysctl net.ipv4.ip_forward=0
net.ipv4.ip_forward = 0 |
|
#traceroute ya.ru
traceroute to ya.ru (213.180.204.3), 30 hops max, 60 byte packets 1 172.16.32.22 (172.16.32.22) 0.903 ms 0.890 ms 0.866 ms 2 172.16.32.22 (172.16.32.22) 3002.712 ms !H 3002.714 ms !H 3002.708 ms !H |
|
#ssh root@192.168.13.2
The authenticity of host '192.168.13.2 (192.168.13.2)' can't be established. RSA key fingerprint is 62:dd:81:b1:0d:50:38:41:e7:82:ea:89:d5:48:16:e0. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.13.2' (RSA) to the list of known hosts. root@192.168.13.2's password: Linux debian2 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 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 ... Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default net.nt 0.0.0.0 UG 0 0 0 eth0 172.16.32.0 * 255.255.255.192 U 0 0 0 eth2 192.168.13.0 * 255.255.255.0 U 0 0 0 eth0 192.168.150.0 * 255.255.255.224 U 0 0 0 eth1 192.168.200.0 172.16.32.56 255.255.255.0 UG 0 0 0 eth2 root@debian2:~# exit logout Connection to 192.168.13.2 closed. |
|
#traceroute ya.ru
traceroute to ya.ru (87.250.250.3), 30 hops max, 60 byte packets 1 172.16.32.22 (172.16.32.22) 0.555 ms 0.559 ms 1.310 ms 2 192.168.150.22 (192.168.150.22) 2.897 ms 2.896 ms 2.888 ms 3 net.nt (192.168.13.253) 2.880 ms 2.873 ms 2.866 ms 4 * * * 5 * * * 6 * * * 7 * * * 8 * * * 9 * * * 10 * * * 11 * * * 12 * * * 13 * * * 14 * *^C |
|
#traceroute ya.ru
traceroute to ya.ru (87.250.250.203), 30 hops max, 60 byte packets 1 172.16.32.22 (172.16.32.22) 1.159 ms 1.151 ms 1.144 ms 2 192.168.150.22 (192.168.150.22) 3.242 ms 3.240 ms 3.234 ms 3 fobos.net.nt (192.168.13.253) 3.366 ms 3.360 ms 3.353 ms 4 * * * 5 * * * 6 * * * 7 * * * 8 * * * 9 *^C |
|
#ssh root@192.168.13.253
root@192.168.13.253's password: Linux fobos 3.1.0-rc9+ #1 SMP Mon Jun 18 15:44:37 EEST 2012 x86_64 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. Last login: Mon Jun 10 16:00:44 2013 from 192.168.13.3 fobos:~# ping 192.168.200.128 PING 192.168.200.128 (192.168.200.128) 56(84) bytes of data. ... 2 192.168.13.2 (192.168.13.2) 1.878 ms 1.875 ms 1.853 ms 3 192.168.200.128 (192.168.200.128) 2.695 ms 2.679 ms 2.643 ms fobos:~# traceroute 192.168.200.128 traceroute to 192.168.200.128 (192.168.200.128), 30 hops max, 60 byte packets 1 192.168.13.1 (192.168.13.1) 0.535 ms 1.625 ms 1.631 ms 2 192.168.13.2 (192.168.13.2) 2.385 ms 2.382 ms 2.358 ms 3 192.168.200.128 (192.168.200.128) 2.844 ms^C fobos:~# exit logout Connection to 192.168.13.253 closed. |
|
#ping ya.ru
PING ya.ru (93.158.134.3) 56(84) bytes of data. ^C --- ya.ru ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7055ms |
|
#ping fobos.net.nt
PING fobos.net.nt (192.168.13.253) 56(84) bytes of data. 64 bytes from fobos.net.nt (192.168.13.253): icmp_req=1 ttl=64 time=0.239 ms 64 bytes from net.nt (192.168.13.253): icmp_req=2 ttl=64 time=0.226 ms ^C --- fobos.net.nt ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.226/0.232/0.239/0.016 ms |
|
#ssh root@192.168.13.2 cat /etc/network/interfaces
root@192.168.13.2's password:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.13.2
netmask 255.255.255.0
gateway 192.168.13.253
auto eth1
iface eth1 inet static
address 192.168.150.1
netmask 255.255.255.224
gateway 192.168.150.22
auto eth2
iface eth2 inet static
address 172.16.32.22
netmask 255.255.255.192
post-up route add -net 192.168.200.0 netmask 255.255.255.0 gateway 172.16.32.56
|
|
#ssh root@192.168.13.2 /etc/init.d/networking restart
root@192.168.13.2's password: Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...Failed to bring up eth1. SIOCADDRT: File exists SIOCADDRT: File exists Failed to bring up eth2. done. |
|
#ssh root@192.168.13.2 cat /etc/network/interfaces
root@192.168.13.2's password:
Permission denied, please try again.
root@192.168.13.2's password:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.13.2
netmask 255.255.255.0
gateway 192.168.13.253
auto eth1
iface eth1 inet static
address 192.168.150.1
netmask 255.255.255.224
gateway 192.168.150.22
auto eth2
iface eth2 inet static
address 172.16.32.22
netmask 255.255.255.192
post-up route add -net 192.168.200.0 netmask 255.255.255.0 gateway 172.16.32.56
|
|
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
|
|
#~
NETWORKING=yes HOSTNAME=centos4.net.nt GATEWAY=192.168.13.253 "/etc/sysconfig/network" 3L, 62C |
|
#~
DEVICE=lo IPADDR=127.0.0.1 NETMASK=255.0.0.0 NETWORK=127.0.0.0 # If you're having problems with gated making 127.0.0.0/8 a martian, # you can change this to something else (255.255.255.255, for example) BROADCAST=127.255.255.255 ONBOOT=yes NAME=loopback "/etc/sysconfig/network-scripts/ifcfg-lo" 9L, 254C |
|
#~
ifcfg ifconfig ifconfig_selinux |
|
#man ifcfg
|
|
#exit
exit [root@centos4 ~]# exit logout Connection to 192.168.13.4 closed. |
|
#ping ya.ru -n
PING ya.ru (213.180.193.3) 56(84) bytes of data. 64 bytes from 213.180.193.3: icmp_req=1 ttl=58 time=17.4 ms 64 bytes from 213.180.193.3: icmp_req=2 tt |