/l3/users/igor-public/nt-scale/debian5.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#vconfig rem eth0.10
Removed VLAN -:eth0.10:- |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
#ifconfig eth0.20 down
|
#ifconfig eth0.20 up
|
#ifconfig eth0.30 down
|
#ifconfig eth0.30 up
|
#route add -net 192.168.40.0/24 gw 192.168.30.3
|
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. 64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=7.13 ms ^C --- 192.168.40.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 7.132/7.132/7.132/0.000 ms |
#ping 192.168.40.4
![]() PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#route add -net 192.168.10.0/24 gw 192.168.20.1
|
#²route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 192.168.20.1 255.255.255.0 UG 0 0 0 eth0.20 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.20 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.30 192.168.40.0 192.168.30.3 255.255.255.0 UG 0 0 0 eth0.30 |
#exit
exit Connection to 10.0.35.42 closed. |
#ssh 10.0.35.41
root@10.0.35.41's password: Linux debian1 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 permitted by applicable law. Last login: Tue Feb 21 14:28:18 2012 from 10.0.35.45 l3-agent is already running: pid=2565; pidfile=/root/.lilalo/l3-agent.pid |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 10.0.35.41 255.255.255.0 UG 0 0 0 eth0 192.168.20.0 10.0.35.42 255.255.255.0 UG 0 0 0 eth0 192.168.30.0 10.0.35.43 255.255.255.0 UG 0 0 0 eth0 192.168.40.0 10.0.35.44 255.255.255.0 UG 0 0 0 eth0 |
#route delete -net 192.168.10.0/24 gw 10.0.35.41
|
#route delete -net 192.168.20.0/24 gw 10.0.35.42
|
#route delete -net 192.168.30.0/24 gw 10.0.35.43
|
#route delete -net 192.168.40.0/24 gw 10.0.35.44
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b8:fb inet addr:10.0.35.41 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b8fb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:73255 errors:0 dropped:0 overruns:0 frame:0 TX packets:6785 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8464999 (8.0 MiB) TX bytes:757133 (739.3 KiB) Interrupt:19 Memory:f0180000-f01a0000 eth0.10 Link encap:Ethernet HWaddr 00:0f:fe:7e:b8:fb ... collisions:0 txqueuelen:0 RX bytes:59769 (58.3 KiB) TX bytes:15455 (15.0 KiB) 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:34 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2929 (2.8 KiB) TX bytes:2929 (2.8 KiB) |
#ifconfig eth0.20 down; ifconfig eth0.20 up
|
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.20 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.20 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.20 192.168.30.0 192.168.20.2 255.255.255.0 UG 0 0 0 eth0.20 192.168.40.0 192.168.10.4 255.255.255.0 UG 0 0 0 eth0.10 |
#exit
exit Connection to 10.0.35.41 closed. |
#vim /etc/sysctl.conf
|
#~
|
#apt-cache search bridge tools
ffado-tools - FFADO debugging and firmware tools rng-tools - Daemon to use a Hardware TRNG |
#which vconfig
/sbin/vconfig |
#dpkg -S `!!`
dpkg -S `which vconfig` vlan: /sbin/vconfig |
#dpkg -S /sbin/vconfig
vlan: /sbin/vconfig |
#rpm
![]() bash: rpm: command not found |
#²sudo dpkg -S ls
![]() bash: ²sudo: command not found |
#Âapt-get install apt-file
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: curl libapt-pkg-perl libconfig-file-perl libcurl3 liblist-moreutils-perl libregexp-assemble-perl libssh2-1 The following NEW packages will be installed: apt-file curl libapt-pkg-perl libconfig-file-perl libcurl3 liblist-moreutils-perl libregexp-assemble-perl libssh2-1 0 upgraded, 8 newly installed, 0 to remove and 2 not upgraded. Need to get 870 kB of archives. After this operation, 2,208 kB of additional disk space will be used. ... Setting up libcurl3 (7.21.0-2.1+squeeze1) ... Setting up curl (7.21.0-2.1+squeeze1) ... Setting up libconfig-file-perl (1.50-2) ... Setting up libapt-pkg-perl (0.1.24+b1) ... Setting up liblist-moreutils-perl (0.25~02-1) ... Setting up libregexp-assemble-perl (0.34-3) ... Setting up apt-file (2.4.0) ... The system-wide cache is empty. You may want to run 'apt-file update' as root to update the cache. You can also run 'apt-file update' as normal user to use a cache in the user's home directory. |
#apt-file update
Downloading complete file http://10.0.35.1:9999/debian/dists/squeeze/Contents-i386.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 17.6M 100 17.6M 0 0 1210k 0 0:00:14 0:00:14 --:--:-- 1207k Ignoring source without Contents File: http://security.debian.org/dists/squeeze/updates/Contents-i386.gz Downloading complete file http://10.0.35.1:9999/debian/dists/squeeze-updates/Contents-i386.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 558k 100 558k 0 0 1780k 0 --:--:-- --:--:-- --:--:-- 1785k |
#apt-file search /bin/ls
9base: /usr/lib/plan9/bin/ls canna-utils: /usr/bin/lsdic cgroup-bin: /usr/bin/lscgroup cgroup-bin: /usr/bin/lssubsys coreutils: /bin/ls cwiid-dbg: /usr/lib/debug/usr/bin/lswm distcc: /usr/bin/lsdistcc e2fsprogs: /usr/bin/lsattr e2fsprogs-dbg: /usr/lib/debug/usr/bin/lsattr gnupg: /usr/bin/lspgpot ... nilfs-tools: /usr/bin/lssu patchutils: /usr/bin/lsdiff pciutils: /usr/bin/lspci procinfo: /usr/bin/lsdev radare-common: /usr/lib/radare/bin/lsbstego suckless-tools: /usr/bin/lsw syslinux-common: /usr/bin/lss16toppm usbutils: /usr/bin/lsusb util-linux: /usr/bin/lscpu xen-utils-4.0: /usr/lib/xen-4.0/bin/lsevtchn |
#man apt-file
|
#apt-file search -x ^/bin/ls$
coreutils: /bin/ls |
#apt-file search libldap
cyrus-sasl2-dbg: /usr/lib/debug/usr/lib/sasl2/libldapdb.so.2.0.23 iceape-browser: /usr/lib/iceape/libldap60.so iceape-dbg: /usr/lib/debug/usr/lib/iceape/libldap60.so icedove: /usr/lib/icedove/libldap60.so icedove-dbg: /usr/lib/debug/usr/lib/icedove/libldap60.so libldap-2.4-2: /usr/lib/libldap-2.4.so.2 libldap-2.4-2: /usr/lib/libldap_r-2.4.so.2 libldap-2.4-2: /usr/lib/libldap_r-2.4.so.2.5.6 libldap-2.4-2: /usr/share/doc/libldap-2.4-2/README.Debian libldap-2.4-2: /usr/share/doc/libldap-2.4-2/changelog.Debian.gz ... libldap2-dev: /usr/share/doc/libldap2-dev/changelog.Debian.gz libldap2-dev: /usr/share/doc/libldap2-dev/copyright libsasl2-modules-ldap: /usr/lib/sasl2/libldapdb.a libsasl2-modules-ldap: /usr/lib/sasl2/libldapdb.la libsasl2-modules-ldap: /usr/lib/sasl2/libldapdb.so libsasl2-modules-ldap: /usr/lib/sasl2/libldapdb.so.2 libsasl2-modules-ldap: /usr/lib/sasl2/libldapdb.so.2.0.23 nuauth: /usr/lib/nuauth/modules/libldap.so pdns-backend-ldap: /usr/lib/powerdns/libldapbackend.a pdns-backend-ldap: /usr/lib/powerdns/libldapbackend.so |
#apt-file search -x libldap.so$
libldap2-dev: /usr/lib/libldap.so nuauth: /usr/lib/nuauth/modules/libldap.so |
#apt-file search -x bin/brctl$
bridge-utils: /usr/sbin/brctl |
#apt-get install bridge-utils
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: bridge-utils 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 31.2 kB of archives. After this operation, 111 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main bridge-utils i386 1.4-5 [31.2 kB] Fetched 31.2 kB in 0s (1,159 kB/s) Selecting previously deselected package bridge-utils. (Reading database ... 112175 files and directories currently installed.) Unpacking bridge-utils (from .../bridge-utils_1.4-5_i386.deb) ... Processing triggers for man-db ... Setting up bridge-utils (1.4-5) ... |
#Âapt-get install bridge-utils
Reading package lists... Done Building dependency tree Reading state information... Done bridge-utils is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. |
#brctl show
bridge name bridge id STP enabled interfaces pan0 8000.000000000000 no |
#brctl add br0
![]() never heard of command [add] Usage: brctl [commands] commands: addbr <bridge> add bridge delbr <bridge> delete bridge addif <bridge> <device> add interface to bridge delif <bridge> <device> delete interface from bridge setageing <bridge> <time> set ageing time setbridgeprio <bridge> <prio> set bridge priority setfd <bridge> <time> set bridge forward delay sethello <bridge> <time> set hello time setmaxage <bridge> <time> set max message age setpathcost <bridge> <port> <cost> set path cost setportprio <bridge> <port> <prio> set port priority show show a list of bridges showmacs <bridge> show a list of mac addrs showstp <bridge> show bridge stp info stp <bridge> {on|off} turn stp on/off |
#brctl addbr br0
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:e6:dd:33 inet addr:10.0.35.45 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fee6:dd33/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:666821 errors:0 dropped:110 overruns:0 frame:0 TX packets:266014 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:817725746 (779.8 MiB) TX bytes:18829682 (17.9 MiB) Interrupt:19 Memory:f0180000-f01a0000 eth0.10 Link encap:Ethernet HWaddr 00:0f:fe:e6:dd:33 ... collisions:0 txqueuelen:0 RX bytes:50338 (49.1 KiB) TX bytes:9746 (9.5 KiB) 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:19 errors:0 dropped:0 overruns:0 frame:0 TX packets:19 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1495 (1.4 KiB) TX bytes:1495 (1.4 KiB) |
#brctl show
bridge name bridge id STP enabled interfaces br0 8000.000000000000 no pan0 8000.000000000000 no |
#brctl addif br0 eth0.10
|
#ifconfig eth0.10 0.0.0.0
|
#ifconfig eth0.10 192.168.10.5
|
#ssh 10.0.35.203
Connection to 10.0.35.203 closed. |
#history
47 exit 48 cd /tmp/D2 49 cd /tmp/d2/ 50 ls -l 51 losetup -l 52 losetup -a 53 ls -l /dev/loop* 54 # losetup /dev/loop1 disk1.img 55 mount 56 losetup -a ... 537 brctl show 538 brctl add br0 539 brctl addbr br0 540 ifconfig 541 brctl show 542 brctl addif br0 eth0.10 543 ifconfig eth0.10 0.0.0.0 544 ifconfig eth0.10 192.168.10.5 545 ssh 10.0.35.203 546 history |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=1.19 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.261 ms ^C --- 192.168.10.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.261/0.725/1.190/0.465 ms |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 10.0.35.41 255.255.255.0 UG 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 10.0.35.42 255.255.255.0 UG 0 0 0 eth0 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.20 192.168.30.0 10.0.35.43 255.255.255.0 UG 0 0 0 eth0 192.168.40.0 10.0.35.44 255.255.255.0 UG 0 0 0 eth0 |
#route delete -net 192.168.10.0/24 gw 10.0.35.41
|
#route delete -net 192.168.20.0/24 gw 10.0.35.42
|
#route delete -net 192.168.30.0/24 gw 10.0.35.43
|
#route delete -net 192.168.40.0/24 gw 10.0.35.44
|
#brctl show
bridge name bridge id STP enabled interfaces br0 8000.000ffee6dd33 no eth0.10 pan0 8000.000000000000 no |
#brctl delbr br0
|