Forgalomirányítók Haladó Beállításai
Hozzáférési listák (ACL)
R1(config)# access-list 1 permit 193.225.10.0 0.0.0.255
R1(config)# access-list 1 deny host 195.140.100.5
R1(config)# access-list 101 deny tcp 195.220.0.0 0.0.255.255 any eq 80
R1(config)# ip access-list standard ACL-IN
R1(config)# ip access-list extended ACL-OUT
R1(config-ext-nacl)# permit icmp any any
R1(config-if)# ip access-group 1 out
R1(config)# access-list 1 remark ez tilt mindent
R1(config)# ip http server
R1(config)# ip http secure-server
R1(config)# ip http authentication local
Címfordítás (NAT, DNAT, PAT)
R1(config-if)# ip nat inside
R1(config-if)# ip nat outside
R1(config)# ip nat inside source static 10.10.10.1 209.21.34.11
R1(config)# ip nat inside source static tcp 192.168.1.10 80 209.21.34.11 80
R1(config)# ip nat inside source static tcp 192.168.1.20 22 209.21.34.11 2222
R1(config)# ip nat pool public_access 209.165.200.242 209.165.200.253 netmask 255.255.255.224
R1(config)# access-list 1 permit 192.168.123.0 0.0.0.255
R1(config)# ip nat inside source list 1 pool public_access
R1(config)# ip nat inside source list 1 interface Serial 0/0/0 overload
R1(config)# ip route 0.0.0.0 0.0.0.0 ser 0/0/0
R1# show ip nat translations
R1# show ip nat statistics
R1# clear ip nat translation *
Naplózás (Syslog, Konzol, Memória)
R1(config)# logging on
R1(config)# logging host 192.168.1.10
R1(config)# logging trap information
R1(config)# logging facility local7
R1(config)# service timestamps log datetime localtime show-timezone msec
R1(config)# logging console information
R1(config)# logging buffered 16000 information
R1(config)# logging monitor information
R1# terminal monitor
R1(config)# logging userinfo
R1(config)# login on-failure log
R1(config)# login on-success log
R1(config)# security authentication failure rate 8 log
R1# show logging
Idő protokoll (NTP)
R1# show clock detail
R1(config)# clock timezone GMT+1
R1(config)# clock summer-time GMT recurring
R1# clock set 10:50:00 26 Oct 2011
R1(config)# ntp server 10.10.10.1
R1(config)# ntp update-calendar
R1(config)# ntp broadcast client
R1(config)# ntp master
R1(config)# ntp authentication-key 1 md5 cisco
R1(config)# ntp trusted-key 1
R1(config)# ntp authenticate
Hálózatmenedzsment (SNMPv2/v3)
R1(config)# snmp-server community public ro
R1(config)# snmp-server community topsecret rw
R1(config)# snmp-server location ceg.hu
R1(config)# snmp-server contact admin
R1(config)# snmp-server view VIEW_NEV iso included
R1(config)# snmp-server group CSOPORT v3 priv read VIEW_NEV
R1(config)# snmp-server user USER CSOPORT v3 auth sha JELSZO priv aes 128 PRIV_JELSZO
CDP és AAA Biztonság
R1(config)# cdp run
R1(config-if)# cdp enable
R1# show cdp neighbors detail
R1(config)# aaa new-model
R1(config)# aaa authentication login default local
R1(config)# aaa local authentication attempts max-fail 10
R1(config)# tacacs server SERVER-T
R1(config-server-tacacs)# address ipv4 10.0.0.2
R1(config-server-tacacs)# key T+-pass
R1(config)# radius server SERVER-R
R1(config-radius-server)# address ipv4 10.0.0.2 auth-port 1812 acct-port 1813
R1(config-radius-server)# key R-pass
Tunneling és FHRP (HSRP/GLBP)
R1(config)# interface Tunnel1
R1(config-if)# ip address 172.16.1.1 255.255.255.0
R1(config-if)# tunnel source 1.1.1.1
R1(config-if)# tunnel destination 2.2.2.2
R1(config-if)# ip tcp adjust-mss 1360
R1(config-if)# standby version 2
R1(config-if)# standby 1 ip 10.0.0.1
R1(config-if)# standby 1 priority 110
R1(config-if)# standby 1 preempt
R1(config-if)# glbp 1 ip 10.0.0.1
R1(config-if)# glbp 1 priority 110
Szerepkörök és Resilience
R1(config)# enable view
R1(config)# parser view MONITOR-VIEW
R1(config-view)# secret class
R1(config-view)# commands exec include show ip route
R1(config)# secure boot-image
R1(config)# secure boot-config
R1(config)# secure boot-config restore flash:restore_cfg
R1(config)# ip scp server enable
Tűzfalak (Klasszikus és ZPF)
R1(config)# ip inspect name FWRULE icmp
R1(config-if)# ip inspect FWRULE in
R1(config)# zone security PRIVATE
R1(config)# zone security PUBLIC
R1(config)# class-map type inspect match-any CLASS_NÉV
R1(config-cmap)# match protocol http
R1(config)# policy-map type inspect POLICY_NÉV
R1(config-pmap)# class type inspect CLASS_NÉV
R1(config-pmap-c)# inspect
R1(config)# zone-pair security ZP source PRIVATE destination PUBLIC
R1(config-sec-zone-pair)# service-policy type inspect POLICY_NÉV
R1(config-if)# zone-member security PRIVATE
IPS és Frame-Relay
R1# mkdir ipsdir
R1(config)# ip ips name IOSIPS
R1(config)# ip ips config location flash:ipsdir
R1(config)# ip ips signature-category
R1(config-ips-category)# category all
R1(config-ips-category-action)# retired true
R1(config-if)# ip ips IOSIPS in
R1(config-if)# encapsulation frame-relay
R1(config-if)# frame-relay lmi-type cisco
R1(config)# interface serial 0/0/0.102 point-to-point
R1(config-if)# frame-relay interface-dlci 102