IPv6: Configuring Route Filtering RIPng:
R1----fa0/0-------------------fa0/0-----R2
2001:12::1----------------------2001:12::2
·
R1’s Loopback0: 2001:1::1
·
R2’s loopback0: 2001:2::2
·
R2’s loopback1: 2001:22::22
R1(config)#ipv6
router rip RIPng
R1(config-if)#do
show run int fa0/0
Building configuration...
Current configuration :
137 bytes
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address 2001:12::1/64
ipv6 enable
ipv6 rip RIPng enable
end
R1(config-if)#do
show run int loop0
Building configuration...
Current configuration : 92
bytes
!
interface Loopback0
no ip address
ipv6 address 2001:1::1/64
ipv6 rip RIPng enable
end
R1(config-if)#
R2(config)#ipv6 router rip RIPng
R2#show run int fa0/0
Building configuration...
Current configuration : 137 bytes
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address
2001:12::2/64
ipv6 enable
ipv6 rip
RIPng enable
end
R2#show run int loop0
Building configuration...
Current configuration : 92 bytes
!
interface Loopback0
no ip address
ipv6 address
2001:2::2/64
ipv6 rip
RIPng enable
end
R2#
R2(config-if)#do show run int loop1
Building configuration...
Current configuration : 94 bytes
!
interface Loopback1
no ip address
ipv6 address
2001:22::22/64
ipv6 rip
RIPng enable
end
R2(config-if)#
R1(config-rtr)#do show ipv6 rou
IPv6 Routing Table - 8 entries
Codes: C - Connected, L - Local, S - Static, R -
RIP, B - BGP
U -
Per-user Static route
I1 -
ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O -
OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 -
OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C
2001:1::/64 [0/0]
via ::,
Loopback0
L
2001:1::1/128 [0/0]
via ::,
Loopback0
R 2001:2::/64 [120/2]
via
FE80::C001:25FF:FE30:0, FastEthernet0/0
C
2001:12::/64 [0/0]
via ::,
FastEthernet0/0
L
2001:12::1/128 [0/0]
via ::,
FastEthernet0/0
R 2001:22::/64 [120/2]
via
FE80::C001:25FF:FE30:0, FastEthernet0/0
L FE80::/10
[0/0]
via ::,
Null0
L FF00::/8
[0/0]
via ::,
Null0
R1(config-rtr)#
R2(config-if)#do show ipv6 route
IPv6 Routing Table - 9 entries
Codes: C - Connected, L - Local, S - Static, R -
RIP, B - BGP
U -
Per-user Static route
I1 -
ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O -
OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 -
OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
R 2001:1::/64 [120/2]
via
FE80::C000:25FF:FE30:0, FastEthernet0/0
C
2001:2::/64 [0/0]
via ::, Loopback0
L
2001:2::2/128 [0/0]
via ::,
Loopback0
C
2001:12::/64 [0/0]
via ::,
FastEthernet0/0
L
2001:12::2/128 [0/0]
via ::,
FastEthernet0/0
C
2001:22::/64 [0/0]
via ::,
Loopback1
L
2001:22::22/128 [0/0]
via ::,
Loopback1
L FE80::/10
[0/0]
via ::,
Null0
L FF00::/8
[0/0]
via ::,
Null0
R2(config-if)#
Observations:
·
RIPng
is configured between R1 and R2
·
R1
has advertised its loopback0 2001:1::1 into RIPng
·
R2
has advertised its loopback0 2001:2::2 into RIPng
·
R2
has advertised its loopback1 2001:22::22 into RIPng
·
Now, let me filter 2001:22::22 route from R1:
R1(config)#ipv6 router rip RIPng
R1(config-rtr)# distribute-list prefix-list LOOP-R2 in fastEthernet
0/0 R1(config)#ipv6 prefix-list LOOP-R2 permit 2001:2::2/64
R1(config)#
R1(config-rtr)#do show ipv6 route
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R -
RIP, B - BGP
U -
Per-user Static route
I1 -
ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O -
OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 -
OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C
2001:1::/64 [0/0]
via ::,
Loopback0
L
2001:1::1/128 [0/0]
via ::,
Loopback0
R 2001:2::/64 [120/2]
via
FE80::C001:25FF:FE30:0, FastEthernet0/0
C
2001:12::/64 [0/0]
via ::,
FastEthernet0/0
L
2001:12::1/128 [0/0]
via ::,
FastEthernet0/0
L FE80::/10
[0/0]
via ::,
Null0
L FF00::/8
[0/0]
via ::,
Null0
R1(config-rtr)#
Observation:
·
2001:22::22
route is filtered from R1 now.
·
Prefix-list
just matched the route that is allowed, i.e. permit 2001:2::2
·
Let
me configure the same thing in a different way, by changing the prefix-list
R1(config-rtr)#no ipv6 prefix-list LOOP-R2 seq 5
permit 2001:2::/64
R1(config)#ipv6 prefix-list LOOP-R2 seq 5 deny
2001:22::/64
R1(config)#ipv6 prefix-list LOOP-R2 seq 10 permit
::/0 le 128
R1(config)#
Observation:
·
I
have denied the route 2001:22::/64 and permitted everything else
·
Let
me check the routing table of R1 if its working
R1(config)#do show ipv6 route
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R -
RIP, B - BGP
U -
Per-user Static route
I1 -
ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O -
OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 -
OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C
2001:1::/64 [0/0]
via ::,
Loopback0
L 2001:1::1/128
[0/0]
via ::,
Loopback0
R 2001:2::/64 [120/2]
via
FE80::C001:25FF:FE30:0, FastEthernet0/0
C
2001:12::/64 [0/0]
via ::,
FastEthernet0/0
L
2001:12::1/128 [0/0]
via ::,
FastEthernet0/0
L FE80::/10
[0/0]
via ::,
Null0
L FF00::/8
[0/0]
via ::,
Null0
R1(config)#
Observation:
·
2001:22::22
route is filtered from R1 now.
No comments:
Post a Comment