| 1 | 128 | 1000 0000 |
| 2 | 192 | 1100 0000 |
| 3 | 224 | 1110 0000 |
| 4 | 240 | 1111 0000 |
| 5 | 248 | 1111 1000 |
| 6 | 252 | 1111 1100 |
| 7 | 254 | 1111 1110 |
2^1=2, 2^2=4, 2^3=8, 2^4=16, 2^5=32, 2^6=64, 2^7=128, 2^8=256
2^9=512, 2^10=1024, 2^11=2048, 2^12=4096, 2^13=8192, 2^15=16384
subnetting is walking/turning 0's to 1's
ip + subnet mask determines if two devices can talk
with each other in same network eg 10.0.10.3 and 10.0.0.2
can not with 255.255.255.0 but can with 255.255.0.0
A(0) 1.0.0.1 B(10) 128.0.0.1 C(11) 192.0.0.1
127.x.x.x loopback
private 10, 172.16-31, 169.254(MS), 192.168
172.16.0.0 /24 2^8=256, 2^8=256
subnet 0.0 1.0 2.0 ... 255.0
ip address 172.16.45.14 /30 2^6=64, 2^2=4
172.16.45.12 network, 172.16.45.15 broadcast
Administrative dist
connected=0 static=1 EIGRP=90,170 IGRP=100 OSPF=110 IS-IS=115 RIP=120
# sh controllers serial 0/0 administratively down then
# sh ip interface s0/0
# sh ip interface briefno shutdown
layer 1, 2
# sh int fa0/0
# sh protocols - summary 1,2
erase startup-config saving
sh startup-config
reload
sh running-config
copy running-config startup-config
copy run start
Configuring passwords
line consol 0, password xxx, exit
Consol
line vty 0 ?, line vty 15, password xxx, Exec-Timeout 30 30, login
telnet
clockrate bps, bandwidth Kbps
int s1, encap ppp, clockrate 64000
serial interfacee for frame relay
# config t (config)#
hostname R1
service password-encrypt
no ip domain-lookup
enable secret xxx
banner login # banner message #
banner motd frac
host table
ip host R1 10.0.0.3
config DNS
ip domain-lookup
ip name-server 192.168.0.5
ip domain-name fluxion.com
Hyperterminal - COM1 9600
Telnet to router - connect ether to ether, put router and computer on same network,
set password on router, terminal monitor to see debug messages
sh cdp turn off
show cdp neighbor detail
no cdp run
config t, int s0/0/0, no cdp enable turn off on interface
clock set 12:58:30 18 October 2008
sh clock
sh terminal
sh history
terminal history size 30
config t, int s0, ip address 1.1.1.3 255.255.0.0, no shut, description Chicargo
sh ip route display the routing table
sh ip protocols eg find autonomouse numbers
router eirp 10, Maximum-path 6, variance 2, network 10.0.1.0
debug ip eigrp
sh ip eigrp neighbor
sh ip eigrp topology
clear ip route *
debug ip rip - turn of all debug
u all
2100 - Rom monitor, 2102 default,
config-register 0x2101, reset
sh version
boot system flash x.bin
boot system ftp x.bin 10.1.1.6
boot system rom
locking a port to a mac address
int fa0/15, switchport mode access, mac-address aaaa.bbbb.cccc, switchport port-security violation shutdown
802.
11a 5GHz, 54Mbps < (50,200)feet, 12 non-overlapping channels, 11h: 23 non-overlapping channels
11b 2.4GHz, 11Mbps < (150,350)feet, 3 non-overlapping channels
11g 2.4GHz 54Mbps < (100,300)feet, 3 non-overlapping channels
ftp 20,21
telnet 23
SMTP 25
DNS 53
POP 110
NNTP 119
HTTPS 443
DNS 53
DHCP 67,68
TFTP 69
NTP 123
SMTP 161
TODO move to ssh notes
Port forwarding
SSH Tunneling