Академический Документы
Профессиональный Документы
Культура Документы
Blue = title
Black = commands
Red = variable
___________________________________________________________
Shortcuts
int range fa0/1 - fa0/10 (selects a range of ports on a switch.)
show ip int brief (checks what is on the ports)
do show run (shows what has been configured on the router)
en = enabled
config t = config terminal
int = interface
Line Shortcuts for cisco
ctrl-a start of command
ctrl-e end of command
ctrl-w erase last word
Switch setup
Enable
Config T
Hostname name
Enable secret cisco
Banner motd &message&
Line con 0
Password cisco
Login
Logging sync
Exit
No IP domain lookup
Line vty 0 15
Password cisco
Login
Exit
Router setup
Enable
Config T
Hostname name
Enable secret cisco
Banner motd &message&
Line con 0
Password cisco
Login
|Legend|
Blue = title
Black = commands
Red = variable
___________________________________________________________
Logging sync
Exit
No IP domain lookup
Line vty 0 4
Password cisco
Login
Exit
IP setup
int fe 0/0
IP address 192.168.1.1 255.255.255.0
No shutdown
Exit
Static routes
Config t
Do show ip route
IP route 192.168.30.0 255.255.255.0 fa0/0
Do show IP route
Default Static route (floating static route)
Config t
IP route 0.0.0.0 0.0.0.0 (serveraddress) or fa0/0
Router Rip
show ip route (check for C address)
config t
router rip
version 2
no auto-summary
network (c address |no subnet mask)
default-information originate
Routing Updates
(Dont send updates command | no passive-interface gi0/0)
(passive-interface gi0/0 | allow updates)
(Shut down all updates | passive-interface default )
(forward default routes | default-information originate )
|Legend|
Blue = title
Black = commands
Red = variable
___________________________________________________________
Vlan access
int fa0/0
switchport mode access
switchport access vlan 20
no shutdown
Switch trunking
Switchport trunk encapsulation dot1q (if necessary)
Int fa0/0
Switchport mode trunk
Switchport trunk native vlan 99
No shutdown
Router vlans (router on a stick)
Int fa0/0
No shutdown
Int fa0/0.20
Encapsulation dot1q 2
IP address 192.168.10.1 255.255.255.0
Router OSPF ipV4
router ospf 1
network 10.10.10.0 0.0.0.3 area 0
default-information originate
Router DHCP
ip dhcp excluded-address 192.168.0.1 192.168.0.9
ip dhcp pool R1_G/1
network 192.168.1.0 255.255.255.0
dns-server 209.165.200.225
default-router 192.168.1.1
domain-name ccna-lab.com NOT PACKET TRACER
lease 2 NOT PACKET TRACER
DHCP Relay
int g0/1
|Legend|
Blue = title
Black = commands
Red = variable
___________________________________________________________
ip helper-address (ip of DHCP router)
IPv6
*basic router setup*
ipv6 unicast-routing
int g0/0
ipv6 address 2001:db8:acad:2::1/64
ipv6 address FE80::1 link-local Second device on network is FE80:2, and so on.
no shutdown
exit
OSPF IPv6
ipv6 router ospf 1
router-id 3.3.3.3
int s0/0/0
ipv6 ospf 1 area 0
exit
(Do this to every port on the router!!!!!)
Router EIGRP
router eigrp (1-65535)
no auto
do sh ip route
network (L addresses) (wildcard subnet) OR (0.0.0.0)
redistribute static
ip bandwidth-percent eigrp 1 15
ip hello-interval eigrp 1 80
ip hold-time eigrp 1 240
|Legend|
Blue = title
Black = commands
Red = variable
___________________________________________________________
ping (address) -t
switchport access vlan 99
user (name) privilege 15 password class
line vty 0 15
login local
SwitchPort Modes
switchport port-security
switchport port-security violation protect (drops packets)
switchport port-security violation restrict (stops all packets and upgrades violation
security)
switchport port-security violation shutdown (turns off the port of non macs)
switchport port-security mac-address sticky
ACLs
access-list 1 deny 192.168.11.0 0.0.0.255
access-list 1 permit any
int g0/0
ip access-group 1 out
Named ACLs
ip access-list standard FILE_SERVER_RESTRICTIONS
permit host 192.168.20.4
deny any
int fa 0/1
ip access-group FILE_SERVER_RESTRICTIONS out
Extended ACLs
ip access-list extended
line-vty 0 14
access-class 99 in
Wildcard mask
subnet mask example
|255.255.255.240 = 0.0.0.15 |(255-240=15)
HSRP
configure
|Legend|
Blue = title
Black = commands
Red = variable
___________________________________________________________
router hsrp
interface tenGigE 0/4/0/4
address-family ipv4
hsrp 1
address learn
LACP
interface fa0/0
no ip address
channel-group number mode active
exit
interface fa0/1
no ip address
channel-group number mode activespan
(Continue for every port)
Ports
ftp 20,21
popv2 109
ssh 22
popv3 110
telnet 23
smtp 25
imap 143
dns 53
ups 401
http 80
https 143
|Legend|
Blue = title
Black = commands
Red = variable
___________________________________________________________
***************************************
-----------This is a banner---------------------- So dont enter ----------***************************************
^
line con 0
password cisco
logging sync
login
exit
line vty 0 15
password cisco
logging sync
login
exit
|Legend|
Blue = title
Black = commands
Red = variable
___________________________________________________________
router eigrp 1
no auto
|Legend|
Blue = title
Black = commands
Red = variable
___________________________________________________________
do sh ip route