Шпора по курсу Cisco, CCNA, Scaling Networks (EIGRP, OSPF, STP, HSRP, GLBP)
/ Просмотров: 1956
Список комманд для настройки протоколов EIGRP и OSPF
OSPF
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)#passive-interface g0/0 R1(config-router)#area 0 range 10.1.0.0 255.255.255.0 R1(config)#interface s0/0/0 R1(config-if)#bandwidth 128 R1(config-if)#ip ospf cost 1565 R1(config)#interface g0/1 R1(config-if)#ip ospf priority 255 R1(config)#ip route 0.0.0.0 0.0.0.0 Serial0/1/0 R1(config)#ipv6 route ::/0 serial 0/1/0 R1(config-router)#default-information originate R1(config)#interface g0/1 R1(config-if)#ip ospf hello-interval (seconds) R1(config-if)#ip ospf dead-interval (seconds) R1(config-router)#area 0 authentication message-digest R1(config)#interface serial 0/0/0 R1(config-if)#ip ospf message-digest-key 1 md5 MyKEY R1(config-if)#ip ospf authentication message-digest R1(config-if)#ipv6 ospf 10 area 0 R1(config-if)#ip[v6] ospf priority 0-255 clear ip ospf [process-id] process show ip ospf neighbor show ip protocols show ip ospf show ip ospf database show ip ospf interface [brief|if] show ip route
EIGRP
R1(config)# router eigrp 1 R1(config-router)#network 172.16.1.0 0.0.0.255 R1(config-router)#passive-interface g0/0 R1(config-router)#[no] auto-summary R1(config-router)#redistribute static R1(config-if)#ip summary-address eigrp 1 192.168.0.0 255.255.128.0 R1(config)#ipv6 unicast-routing R1(config)#ipv6 router eigrp 1 R1(config-rtr)#eigrp router-id R1(config-rtr)#no shutdown R1(config-rtr)#network ipv6-prefix/prefix-length R1(config-if)#ipv6 eigrp 1 R1(config-rtr)#passive-interface g0/0 R1(config)#key chain MY_CHAIN R1(config-keychain)#key MY_KEY R1(config-keychain-key )#key-string MY_KEY_STRING R1(config-if)#ip authentication mode eigrp 1 md5 R1(config-if)#ip authentication key-chain eigrp 1 MY_KEY_STRING show ip eigrp topology
spanning-tree
S1(config)# spanning-tree mode [rapid-]pvst S1(config-if)# spanning-tree cost 1-200000000 S1(config-if)# no spanning-tree cost S1(config)# spanning-tree vlan 1 root primary S1(config)# spanning-tree vlan 1 root secondary S1(config)# spanning-tree vlan 1 priority 24678 S1(config)# spanning-tree portfast default S1(config-if)# spanning-tree portfast S1(config)# spanning-tree portfast bpduguard default S1(config-if)# spanning-tree bpduguard enable S1(config-if)# spanning-tree link-type point-to-point show spanning-tree [vlan 1] show spanning-tree summary show spanning-tree active
HSRP
R1(config-if)# standby 1 ip 192.168.1.254 R1(config-if)# standby 1 priority 150 R1(config-if)# standby 1 preempt R3(config-if)# standby 1 ip 192.168.1.254 show standby [brief]
GLBP
R1(config-if)# glbp 1 ip 192.168.1.254 R1(config-if)# glbp 1 preempt R1(config-if)# glbp 1 priority 150 R1(config-if)# glbp 1 load-balancing round-robin R3(config-if)# glbp 1 ip 192.168.1.254 R3(config-if)# glbp 1 load-balancing round-robin show glbp brief
LACP
S1(config)# interface range fa0/0-1 S1(config-if-range)# channel-group 1 mode active S1(config)# interface port-channel 1 S1(config-if)# switchport mode trunk S1(config-if)# switchport trunk allowed vlan 1,2,20 show interfaces f0/3 switchport show etherchannel summary show interface port-channel show etherchannel port-channel show interfaces f0/3 etherchannel
BASE
Router# configure terminal Router(config)# hostname R1 Router(config)# line console 0 Router(config-line)# password cisco Router(config-line)# login Router(config-line)# exec-timeout 0 0 Router(config-line)# line vty 0 4 Router(config-line)# password cisco Router(config-line)# login Router(config)# servicew password-encription Router(config)# banner motd $ ACCESS!!! $