Solution
Solution
Solution
The goal is practicing with the basic commands of OSPF and standard ACLs. You must do the next
configurations:
Check that you can ping between hosts in the same subnet:
Note that you cant ping between hosts in different subnets because the routers dont have any entry in
their routing table.
2. Enable OSPF in all interfaces both R1 and R2 (area 0) with only one subcommand in the OSPF
configuration.
R1:
Router#configure terminal
Router (config)#router ospf 1
Router (config-router)#network 10.0.0.0 0.255.255.255 area 0
Router (config-router)#end
R2:
Router#configure terminal
Router (config)#router ospf 1
Router (config-router)#network 10.0.0.0 0.255.255.255 area 0
Router (config-router)#end
Check that the neighboring relationships have been created between R1 and R2.
R1:
Router#show ip ospf neighbor
R2:
Router#show ip ospf neighbor
Check that, after configuring OSPF, you can ping between hosts in different subnets.
2. Configure ACL on the right routers, interfaces and directions based on these requirements:
Using an outbound ACL on R1s G0/0, permit packets from S1 and deny all other packets.
Using an outbound ACL on R1s G0/1, permit packets from S2 and deny all other packets.
R1:
Router#configure terminal
Router (config)#access-list 1 permit 10.2.2.1
Router (config)#access-list 2 permit 10.2.2.2
Router (config)#interface G0/0
Router (config-if)#ip access-group 1 out
Router (config-if)#interface G0/1
Router (config-if)#ip access-group 2 out
Router (config-if)#end