! R1 enable configure terminal no ip domain-lookup hostname R1 enable secret ciscoenpass line console 0 password ciscoconpass login exit security passwords min-length 10 service password-encryption banner motd #Unauthorized Access is Prohibited# interface gigabitethernet 0/0/0 description Connection to R2 ip address 198.51.100.1 255.255.255.252 exit interface gigabitethernet 0/0/1 description Connection to S2 ip address 192.168.1.1 255.255.255.0 exit interface gigabitethernet 0/0/2 description Connection to S1 ip address 64.100.1.1 255.255.255.248 exit interface gigabitethernet 0/0/0 no shutdown interface gigabitethernet 0/0/1 no shutdown interface gigabitethernet 0/0/2 no shutdown exit ip domain-name ccna-lab.com username admin secret admin1pass line vty 0 15 login local transport input ssh exit crypto key generate rsa general-keys modulus 1024 ip ssh version 2 router ospf 1 router-id 0.0.0.1 exit router ospf 1 network 64.100.1.0 0.0.0.7 area 0 network 198.51.100.0 0.0.0.3 area 0 exit router ospf 1 passive-interface gigabitethernet 0/0/1 passive-interface gigabitethernet 0/0/2 exit router ospf 1 auto-cost reference-bandwidth 1000 exit interface gigabitethernet 0/0/0 ip ospf network point-to-point exit interface gigabitethernet 0/0/0 ip ospf hello-interval 30 exit ip nat inside source static 192.168.1.5 64.100.1.7 interface gigabitethernet 0/0/0 ip nat outside exit interface gigabitethernet 0/0/1 ip nat inside exit ip access-list standard R1-VTY-LIMIT permit host 192.168.1.5 exit line vty 0 15 access-class R1-VTY-LIMIT in exit end copy running-config startup-config