!assigning hostname to router hostname R5 !banner message banner motd #Unauthorized access to this device is prohibited!# ! !configuring aaa authentication on the router aaa new-model aaa authentication login default local ! !setting ssh to use version 2 only ip ssh version 2 ! !disabling dns lookup no ip domain-lookup ! !creating a domain name for ssh. this is used to generate the key ip domain-name alanR5.com ! !generating ssh keys crypto key generate rsa 1024 ! !preventing messages interrupting CLI on console connection line con 0 logging synchronous ! ! disabling aux connection line aux 0 transport output ssh no exec exec-timeout 0 1 no password ! !preventing messages interrupting CLI on all vty connections line vty 0 15 !allowing traffic in the acl access-class 1 in logging synchronous !enabling only ssh on the vty connections transport input ssh ! !configuring loopbacks on router to sim networks interface Loopback0 ip address 10.111.7.65 255.255.255.192 no shut ! interface Loopback1 ip address 10.111.7.129 255.255.255.192 no shut ! interface Loopback2 ip address 10.111.7.193 255.255.255.192 no shut ! interface Loopback3 ip address 10.111.8.1 255.255.255.192 no shut ! interface Loopback4 ip address 10.111.8.65 255.255.255.192 no shut ! interface Loopback5 ip address 10.111.8.129 255.255.255.192 no shut ! int g0/0 ip address 10.111.7.1 255.255.255.192 !disabling cdp on the int no cdp enable no shut ! !changing encapsulation to frame-relay interface serial 0/0/1 encapsulation frame-relay !disabling cdp on the int no cdp enable no shut ! !configuring sub interface interface serial 0/0/1.1 point-to-point ip address 10.111.8.194 255.255.255.252 !configuring dlci R5 will route traffic to the hub which is R4 frame-relay interface-dlci 504 no shut ! !setting up OSPF router ospf 1 !configuring router ID router-id 5.5.5.5 passive-interface GigabitEthernet0/0 passive-interface Loopback0 passive-interface Loopback1 passive-interface Loopback2 passive-interface Loopback3 passive-interface Loopback4 passive-interface Loopback5 !adding below networks to ospf network 10.111.7.0 0.0.0.63 area 1 network 10.111.7.64 0.0.0.63 area 1 network 10.111.7.128 0.0.0.63 area 1 network 10.111.7.192 0.0.0.63 area 1 network 10.111.8.0 0.0.0.63 area 1 network 10.111.8.64 0.0.0.63 area 1 network 10.111.8.128 0.0.0.63 area 1 network 10.111.0.0 0.0.0.3 area 1 network 10.111.8.192 0.0.0.3 area 1 ! !assigning as password and username to the router username alan secret kelly !configuring a password on privileged mode enable secret kelly ! end !copy running config to startup config copy r s