Kategoriarkiv: Knowledge Base

Configuring cisco catalyst / router

# Cisco configuration: # Indendted commands are short forms of normal commands # connect to the catalyst telnet 192.168.200.250 # or connect console cable and fire up hyperterminal bps: 9600 Databit: 8 Parity: none Stop Bit: 1 Flow control: none … Læs resten

Udgivet i Cisco, Knowledge Base, Networking | Skriv en kommentar

Tooltip javascript function

tooltip.js: // position of the tooltip relative to the mouse in pixel // var offsetx = 12; var offsety = 8; function newelement(newid) { if(document.createElement) { var el = document.createElement(‘div’); el.id = newid; with(el.style) { display = ‘none’; position = … Læs resten

Udgivet i Knowledge Base, Old Base, Programmering | Skriv en kommentar

Simple tunneling across weird networks

web01:~# ssh zennet.dk -p 2222 -L 8080:192.168.1.252:80 -g -f -N root@zennet.dk’s password: web01:~# -f and -N make the process fork into background once loaded -L 8080:192.168.1.252:80 , means that local port 8080 should be tunneled to remote ip 192.168.1.252 port … Læs resten

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar

Cisco Portforwarding (nat)

enable conf t ip nat inside source static tcp 192.168.1.254 22 10.1.0.128 22 Sends incomming connection on ip 10.1.0.128(the router) port 22 go to 192.168.1.254(the desired server to receive the connection) port 22

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar

Installing Nagios 2 on Debian 4

# apt-get install nagios2 # htpasswd -c /etc/nagios2/htpasswd.users mike New password: Re-type new password: Adding password for user mike

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar

PCI Bus limitations

backup ~ # hdparm -tT /dev/md1 /dev/md1: Timing cached reads: 2232 MB in 2.00 seconds = 1115.98 MB/sec Timing buffered disk reads: 404 MB in 3.02 seconds = 133.93 MB/sec backup ~ # df -H | grep md1 /dev/md1 2,0T … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Cisco 1760 config: NAT from 10mbit wan interface to 100mbit lan interface with DHCP Server

Using 1334 out of 29688 bytes ! ! Last configuration change at 08:57:51 UTC Sat Mar 4 2006 ! NVRAM config last updated at 09:00:05 UTC Sat Mar 4 2006 ! version 12.2 service timestamps debug datetime msec service timestamps … Læs resten

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar

create a list of java source files from a recursive directory

I use this to produce a list of all java source files I need to build. (Need GnuWin32 grep and coreutils packages) dir *.java /s /B | grep -i java | cut -d\ -f7- > srcfiles.txt

Udgivet i Knowledge Base, Old Base, Programmering | Skriv en kommentar

Cisco 1760 DHCP Server (Untested)

conf t service dhcp ip dhcp pool 192.168.1.0/24 network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 dns-server 192.168.1.5 192.168.1.6 exit ip dhcp excluded-address 192.168.1.1 192.168.1.199 ip dhcp excluded-address 192.168.1.241 192.168.1.255 ^Z

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar

IOS Firewall

http://articles.techrepublic.com.com/5100-1035-1040244.html

Udgivet i Knowledge Base, Networking, Old Base | Skriv en kommentar