My Countingdown

Tuesday, December 13, 2011

Lab 2. EIGRP - Filtering - ACL




R1#
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
ip address 100.100.100.1 255.255.255.255
!
interface Loopback2
ip address 200.200.200.1 255.255.255.255
!
interface Loopback3
ip address 30.30.30.1 255.255.255.255
!
interface Serial0/0
ip address 12.12.12.1 255.255.255.0
!
router eigrp 10
network 1.1.1.1 0.0.0.0
network 12.12.12.1 0.0.0.0
no auto-summary
!
router ospf 1
log-adjacency-changes
network 30.30.30.1 0.0.0.0 area 0
!
router rip
version 2
network 200.200.200.0

R2#
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 23.23.23.2 255.255.255.0
!
interface Serial0/0
ip address 12.12.12.2 255.255.255.0
!
router eigrp 10
network 2.2.2.2 0.0.0.0
network 12.12.12.2 0.0.0.0
network 23.23.23.2 0.0.0.0
no auto-summary

R3#
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
ip address 10.0.0.1 255.255.255.255
!
interface Loopback2
ip address 10.0.0.2 255.255.255.255
!
interface Loopback3
ip address 10.0.0.3 255.255.255.255
!
interface Loopback4
ip address 10.0.0.4 255.255.255.255
!
interface Loopback5
ip address 10.0.0.5 255.255.255.255
!
interface Loopback6
ip address 10.0.0.6 255.255.255.255
!
interface Loopback7
ip address 10.0.0.7 255.255.255.255
!
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
!
router eigrp 10
network 3.3.3.3 0.0.0.0
network 10.0.0.1 0.0.0.0
network 10.0.0.2 0.0.0.0
network 10.0.0.3 0.0.0.0
network 10.0.0.4 0.0.0.0
network 10.0.0.5 0.0.0.0
network 10.0.0.6 0.0.0.0
network 10.0.0.7 0.0.0.0
network 23.23.23.3 0.0.0.0
no auto-summary

Check routing table in R1

R1(config-if)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

  200.200.200.0/32 is subnetted, 1 subnets
C    200.200.200.1 is directly connected, Loopback2
  1.0.0.0/32 is subnetted, 1 subnets
C    1.1.1.1 is directly connected, Loopback0
  2.0.0.0/32 is subnetted, 1 subnets
D    2.2.2.2 [90/2297856] via 12.12.12.2, 00:01:06, Serial0/0
  100.0.0.0/32 is subnetted, 1 subnets
C    100.100.100.1 is directly connected, Loopback1
  3.0.0.0/32 is subnetted, 1 subnets
D    3.3.3.3 [90/2323456] via 12.12.12.2, 00:01:02, Serial0/0
  23.0.0.0/24 is subnetted, 1 subnets
D    23.23.23.0 [90/2195456] via 12.12.12.2, 00:01:08, Serial0/0
  10.0.0.0/32 is subnetted, 7 subnets
D    10.0.0.2 [90/2323456] via 12.12.12.2, 00:01:05, Serial0/0
D    10.0.0.3 [90/2323456] via 12.12.12.2, 00:01:05, Serial0/0
D    10.0.0.1 [90/2323456] via 12.12.12.2, 00:01:05, Serial0/0
D    10.0.0.6 [90/2323456] via 12.12.12.2, 00:01:05, Serial0/0
D    10.0.0.7 [90/2323456] via 12.12.12.2, 00:01:05, Serial0/0
D    10.0.0.4 [90/2323456] via 12.12.12.2, 00:01:05, Serial0/0
D    10.0.0.5 [90/2323456] via 12.12.12.2, 00:01:05, Serial0/0
  12.0.0.0/24 is subnetted, 1 subnets
C    12.12.12.0 is directly connected, Serial0/0
  30.0.0.0/32 is subnetted, 1 subnets
C    30.30.30.1 is directly connected, Loopback3

Now, we’d like to filter IP loopback 2.2.2.2 can not be accessed by R1

R1(config)#access-list 1 deny 2.2.2.2
R1(config)#access-list 1 permit any
R1(config)#
R1(config)#router eigrp 10
R1(config-router)#distribute-list 1 in s0/0
R1(config-router)#
R1(config-router)#
R1(config-router)#do sh ip route 2.2.2.2
% Network not in table



No comments:

Post a Comment