!assigning hostname to router hostname R6 !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 alanR6.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 access-class 1 out 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.2.1 255.255.255.0 no shut ! interface Loopback1 ip address 10.111.3.1 255.255.255.0 no shut ! interface Loopback2 ip address 10.111.4.1 255.255.255.0 no shut ! interface Loopback3 ip address 10.111.5.1 255.255.255.0 no shut ! interface Loopback4 ip address 10.111.6.1 255.255.255.0 no shut ! !configuring int g0/0 interface g0/0 ip address 10.111.1.1 255.255.255.0 !disabling cdp on the int no cdp enable no shut ! interface Serial0/0/1 !changing encapsulation to frame-relay encapsulation frame-relay !disabling cdp on the int no cdp enable no shut ! !configuring sub interface interface Serial0/0/1.1 point-to-point ip address 10.111.8.198 255.255.255.252 !configuring dlci R6 will route traffic to the hub which is R4 frame-relay interface-dlci 604 no shut ! !setting up OSPF router ospf 1 !configuring router ID router-id 6.6.6.6 !making the below interfaces not get routing advertisements passive-interface g0/0 passive-interface Loopback0 passive-interface Loopback1 passive-interface Loopback2 passive-interface Loopback3 passive-interface Loopback4 !adding below networks to ospf network 10.111.1.0 0.0.0.255 area 1 network 10.111.2.0 0.0.0.255 area 1 network 10.111.3.0 0.0.0.255 area 1 network 10.111.4.0 0.0.0.255 area 1 network 10.111.5.0 0.0.0.255 area 1 network 10.111.6.0 0.0.0.255 area 1 network 10.111.0.4 0.0.0.3 area 1 network 10.111.8.196 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