مکمل آموزش جامع CCNA | پوشش کامل حوزههای تخصصی امنیت، سرویسها و اتوماسیون
توسط میرعلی شهیدی، متخصص ارشد شبکه و امنیت سایبری
R1(config)#router eigrp CUSTOMER_A
R1(config-router)#address-family ipv4 unicast autonomous-system 100
R1(config-router-af)#network 192.168.1.0 0.0.0.255
R1(config-router-af)#exit-address-family
R1(config-router)#exit
R1#show ip eigrp neighbors
R1#show ip eigrp topology
R1(config)#router eigrp CUSTOMER_A
R1(config-router)#address-family ipv4 unicast autonomous-system 100
R1(config-router-af)#af-interface GigabitEthernet0/0
R1(config-router-af-interface)#passive-interface
R1(config-router-af-interface)#hello-interval 10
R1(config-router-af-interface)#exit
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 10.0.0.0 0.0.0.255 area 10
R1(config)#router ospf 1
R1(config-router)#area 10 stub
R2(config)#router ospf 1
R2(config-router)#area 20 nssa
show ip ospf database برای دیدن انواع LSA و توپولوژی منطقه حیاتی است.
R1(config)#router ospf 1
R1(config-router)#redistribute eigrp 100 subnets metric 100 route-map EIGRP-TO-OSPF
R1(config-router)#exit
R1(config)#route-map EIGRP-TO-OSPF permit 10
R1(config-route-map)#match ip address 1
R1(config-route-map)#set tag 100
R1(config-route-map)#exit
R1(config)#router ospf 1
R1(config-router)#redistribute static subnets metric-type 1
R1(config)#ip prefix-list HIGH-PRIO permit 172.16.0.0/16
R1(config)#route-map LOCAL-PREF permit 10
R1(config-route-map)#match ip address prefix-list HIGH-PRIO
R1(config-route-map)#set local-preference 200
R1(config-route-map)#exit
R1(config-router)#neighbor 203.0.113.1 route-map LOCAL-PREF in
R1(config)#route-map AS-PREPEND permit 10
R1(config-route-map)#set as-path prepend 65000 65000
R1(config-route-map)#exit
R1(config-router)#neighbor 203.0.113.2 route-map AS-PREPEND out
R1(config)#route-map COMMUNITY permit 10
R1(config-route-map)#set community 65000:100
R1(config-route-map)#exit
R1(config-router)#neighbor 203.0.113.1 route-map COMMUNITY out
R1(config)#ip vrf CUSTOMER_B
R1(config-vrf)#rd 65000:20
R1(config-vrf)#route-target both 65000:20
R1(config-vrf)#exit
R1(config)#interface GigabitEthernet0/2
R1(config-if)#ip vrf forwarding CUSTOMER_B
R1(config-if)#ip address 172.16.1.1 255.255.255.0
R1(config)#mpls label protocol ldp
R1(config)#mpls ip
R1(config)#interface GigabitEthernet0/0
R1(config-if)#mpls ip
R1(config)#crypto isakmp policy 1
R1(config-isakmp)#authentication pre-share
R1(config)#crypto ipsec transform-set TSET esp-aes 256 esp-sha-hmac
R1(config)#interface Tunnel0
R1(config-if)#ip address 172.16.100.1 255.255.255.0
R1(config-if)#tunnel source GigabitEthernet0/1
R1(config-if)#tunnel mode gre multipoint
R1(config-if)#ip nhrp map multicast dynamic
R1(config-if)#ip nhrp network-id 1
R1(config-if)#tunnel protection ipsec profile IPSEC-PROF
ip nhrp redirect روی Hub و ip nhrp shortcut روی Spoke امکان Spoke-to-Spoke را فراهم میکند.
R1(config)#zone security INSIDE
R1(config)#zone security OUTSIDE
R1(config)#zone security DMZ
R1(config)#class-map type inspect match-any HTTP-CLASS
R1(config-cmap)#match protocol http
R1(config)#policy-map type inspect INSIDE-TO-OUTSIDE
R1(config-pmap)#class type inspect HTTP-CLASS
R1(config-pmap-c)#inspect
R1(config)#zone-pair security INSIDE-TO-OUT source INSIDE destination OUTSIDE
R1(config-zp)#service-policy type inspect INSIDE-TO-OUTSIDE
S1(config)#spanning-tree mode mst
S1(config)#spanning-tree mst configuration
S1(config-mst)#name MST-REGION
S1(config-mst)#revision 1
S1(config-mst)#instance 1 vlan 10-20
S1(config-mst)#exit
S1(config)#spanning-tree mst 1 priority 4096
S1(config)#vlan 10
S1(config-vlan)#private-vlan primary
S1(config-vlan)#private-vlan association 11-12
S1(config)#vlan 11
S1(config-vlan)#private-vlan isolated
S1(config)#vlan 12
S1(config-vlan)#private-vlan community
R1(config)#aaa new-model
R1(config)#aaa authentication login VTY-LOGIN group radius local
R1(config)#aaa authorization exec VTY-AUTH group radius if-authenticated
R1(config)#radius server RADIUS-SERVER
R1(config-radius-srv)#address ipv4 192.168.1.50 auth-port 1812 acct-port 1813
R1(config-radius-srv)#key sharedsecret
R1(config)#line vty 0 4
R1(config-line)#login authentication VTY-LOGIN
R1(config-line)#authorization exec VTY-AUTH
R1(config)#ip http secure server
R1(config)#restconf
R1(config)#netconf-yang
R1#show running-config | section netconf-yang
R1#show platform software yang-management process
R1(config)#ip sla 1
R1(config-sla-monitor)#icmp-echo 8.8.8.8 source-interface GigabitEthernet0/1
R1(config-sla-monitor)#frequency 5
R1(config)#ip sla schedule 1 life forever start-time now
R1(config)#track 1 ip sla 1 reachability
R1(config)#flow record NETFLOW-REC
R1(config-flow-record)#match ipv4 tos
R1(config-flow-record)#match ipv4 source address
R1(config-flow-record)#collect counter bytes
R1(config)#flow exporter NETFLOW-EXP
R1(config-flow-exporter)#destination 192.168.1.150
R1(config)#flow monitor NETFLOW-MON
R1(config-flow-monitor)#record NETFLOW-REC
R1(config-flow-monitor)#exporter NETFLOW-EXP
R1(config)#interface GigabitEthernet0/0
R1(config-if)#ip flow monitor NETFLOW-MON input