R1,R2,R3--------------


Router(config)#hostname R1


Enable Secret Password:

Router(config)#enable secret class

Configure a password of cisco :R1,R2,R3

R3(config)#line console 0
R3(config-line)#password cisco
R3(config-line)#login

Configure a password of cisco for vty connections. R1,R2,R3

R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login


Enable OSPF using process ID 1 on all routers for all networks:

R2(config)#router ospf 1
R2(config-router)#network 192.168.20.0 0.0.0.255 area 0
R2(config-router)#network 10.1.1.0 0.0.0.3 area 0
R2(config-router)#network 10.2.2.0 0.0.0.3 area 0


R1(config)#router ospf 1
R1(config-router)#network 192.168.10.0 0.0.0.255 area 0
R1(config-router)#network 192.168.11.0 0.0.0.255 area 0
R1(config-router)#network 10.1.1.0 0.0.0.3 area 0
R2(config-router)#network 209.165.200.0 0.0.0.3 area 0


R1(config)#router ospf 1
R1(config-router)#network 192.168.10.0 0.0.0.255 area 0
R1(config-router)#network 192.168.11.0 0.0.0.255 area 0
R1(config-router)#network 10.1.1.0 0.0.0.3 area 0

Configure a loopback interface on R2.

R2(config)#interface lo 0
R2(config-if)#ip address 209.165.200.225 255.255.255.224
R2(config-if)#no shutdown


Configure IP addresses for the VLAN 1 interface on each switch.
Switch 1:

Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.10.2 255.255.255.0

Switch 2:

Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.11.2 255.255.255.0

Switch 3:

Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.30.2 255.255.255.0



Configure each switch with the appropriate default gateway.

Switch 1:
Switch(config)#ip default-gateway 192.168.10.1

Switch 2:
Switch(config)#ip default-gateway 192.168.11.1

Switch 3:
Switch(config)#ip default-gateway 192.168.30.1




Task 2: Configuring a Standard ACL


R1(config)#ip access-list standard std-1
R1(config-std-nacl)#deny 192.168.11.0 0.0.0.255


R1(config)#interface fastEthernet 1/0
R1(config-if)#ip access-group std-1 in



Task 4:

R2(config)#ip access-list standard task-4
R2(config-std-nacl)#permit 10.2.2.0 0.0.0.3
R2(config-std-nacl)#permit 192.168.30.0 0.0.0.255
R2(config-std-nacl)#deny any

R2(config)#line vty 0 4
R2(config-line)#access-class task-4 in



R1#telnet 10.1.1.2

Labels:

0 Responses so far.