0% found this document useful (0 votes)
13 views13 pages

Ipv6 Lab

The document outlines the configuration steps for a dual-stack lab involving IPv4 and IPv6 across multiple devices (B1, C1, P1, A1). It includes tasks for configuring basic interface settings, IS-IS routing, and BGP settings for each device. Each section details specific commands and configurations necessary for establishing connectivity and routing between the devices.

Uploaded by

itoverthemoon3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views13 pages

Ipv6 Lab

The document outlines the configuration steps for a dual-stack lab involving IPv4 and IPv6 across multiple devices (B1, C1, P1, A1). It includes tasks for configuring basic interface settings, IS-IS routing, and BGP settings for each device. Each section details specific commands and configurations necessary for establishing connectivity and routing between the devices.

Uploaded by

itoverthemoon3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

IPv4/IPv6 Dual-Stack Lab

Task 1: Configure Basic Configurations and Interface Configuration

Here is the configuration for B1:

enable
conf t
hostname B1
no logging console
logging buffered 8192 debugging
no ip domain-lookup
ipv6 unicast-routing
ipv6 cef distributed
no ip source-route
no ipv6 source-route
ip tcp path-mtu-discovery

interface GigabitEthernet1
description P2P Link to C1
ip address 100.68.1.18 255.255.255.252
no ip directed-broadcast
no ip redirects
no ip proxy-arp
ipv6 address 2001:DB8:1:10::1/127
ipv6 nd prefix default no-advertise
ipv6 nd ra suppress all
no shutdown
!

!
interface Loopback 0
description Loopback of B1
ip address 100.68.1.1 255.255.255.255
ipv6 address 2001:DB8:1::1/128
!
end
IPv4/IPv6 Dual-Stack Lab

!
wr

Here is the configuration for C1:

enable
conf t
hostname C1
no logging console
logging buffered 8192 debugging
no ip domain-lookup
ipv6 unicast-routing
ipv6 cef distributed
no ip source-route
no ipv6 source-route
ip tcp path-mtu-discovery

!
interface GigabitEthernet1
description P2P Link to B1
ip address 100.68.1.17 255.255.255.252
no ip directed-broadcast
no ip redirects
no ip proxy-arp
ipv6 address 2001:DB8:1:10::0/127
ipv6 nd prefix default no-advertise
ipv6 nd ra suppress all
no shutdown
!
interface GigabitEthernet2
description P2P Link to P1
ip address 100.68.1.21 255.255.255.252
no ip directed-broadcast
no ip redirects
no ip proxy-arp
ipv6 address 2001:db8:1:11::/127
ipv6 nd prefix default no-advertise
ipv6 nd ra suppress all
no shutdown
!
interface GigabitEthernet3
description P2P Link to A1
ip address 100.68.1.25 255.255.255.252
no ip directed-broadcast
no ip redirects
no ip proxy-arp
ipv6 address 2001:db8:1:12::/127
ipv6 nd prefix default no-advertise
ipv6 nd ra suppress all
no shutdown

!
interface Loopback0
description Loopback of C1
ip address 100.68.1.2 255.255.255.255
ipv6 address 2001:DB8:1::2/128
!
end
IPv4/IPv6 Dual-Stack Lab

!
Wr

Here is the configuration for P1:

enable
conf t
hostname P1
no logging console
logging buffered 8192 debugging
no ip domain-lookup
ipv6 unicast-routing
ipv6 cef distributed
no ip source-route
no ipv6 source-route
ip tcp path-mtu-discovery

!
interface GigabitEthernet1
description P2P Link to C1
ip address 100.68.1.22 255.255.255.252
no ip directed-broadcast
no ip redirects
no ip proxy-arp
ipv6 address 2001:db8:1:11::1/127
ipv6 nd prefix default no-advertise
ipv6 nd ra suppress all
no shutdown
!
interface Loopback 0
description Loopback of P1
ip address 100.68.1.3 255.255.255.255
ipv6 address 2001:DB8:1::3/128
end
!
wr

Here is the configuration for A1:

enable
conf t
hostname A1
no logging console
logging buffered 8192 debugging
no ip domain-lookup
ipv6 unicast-routing
ipv6 cef distributed
no ip source-route
no ipv6 source-route
ip tcp path-mtu-discovery

interface GigabitEthernet3
description P2P Link to C1
ip address 100.68.1.26 255.255.255.252
no ip directed-broadcast
no ip redirects
IPv4/IPv6 Dual-Stack Lab

no ip proxy-arp
ipv6 address 2001:db8:1:12::1/127
ipv6 nd prefix default no-advertise
ipv6 nd ra suppress all
no shutdown

!
interface Loopback 0
description Loopback of A1
ip address 100.68.1.4 255.255.255.255
ipv6 address 2001:DB8:1::4/128
!
end
!
wr

Task 2: Configure IS-IS

 Here is the configuration for B1:


 enable
 conf t
 !
 router isis as10
 net 49.0001.0001.0001.00
 is-type level-2-only
 metric-style wide
 set-overload-bit on-startup wait-for-bgp
 log-adjacency-changes all
 metric 100000
 passive-interface loopback0
 !
 address-family ipv6
 multi-topology
 metric 100000
 set-overload-bit on-startup wait-for-bgp
 !
 interface GigabitEthernet1
 description BackBone link to C1
 ip router isis as10
 isis metric 2
 ipv6 router isis as10
 isis ipv6 metric 2
 isis network point-to-point
 !
 end
 !
Wr
 Here is the configuration for C1:

enable
conf t
!
router isis as10
net 49.0001.0001.0002.00
is-type level-2-only
metric-style wide
IPv4/IPv6 Dual-Stack Lab

set-overload-bit on-startup wait-for-bgp


log-adjacency-changes all
metric 100000
passive-interface loopback0
!
address-family ipv6
multi-topology
metric 100000
set-overload-bit on-startup wait-for-bgp
!
interface GigabitEthernet3
description BackBone link to A1
ip router isis as10
isis metric 2
ipv6 router isis as10
isis ipv6 metric 2
isis network point-to-point
!
interface GigabitEthernet1
description BackBone link to B1
ip router isis as10
isis metric 2
ipv6 router isis as10
isis ipv6 metric 2
isis network point-to-point
!
interface GigabitEthernet2
description BackBone link to P1
ip router isis as10
isis metric 2
ipv6 router isis as10
isis ipv6 metric 2
isis network point-to-point
!
end
!
Wr

 Here is the configuration for P1:

enable
conf t
!
router isis as10
net 49.0001.0001.0003.00
is-type level-2-only
metric-style wide
set-overload-bit on-startup wait-for-bgp
log-adjacency-changes all
metric 100000
passive-interface loopback0
!
address-family ipv6
multi-topology
metric 100000
set-overload-bit on-startup wait-for-bgp
!
interface GigabitEthernet1
IPv4/IPv6 Dual-Stack Lab

description BackBone link to C1


ip router isis as10
isis metric 2
ipv6 router isis as10
isis ipv6 metric 2
isis network point-to-point
!
end
!
wr

 Here is the configuration for A1:

enable
conf t
!
router isis as10
net 49.0001.0001.0004.00
is-type level-2-only
metric-style wide
set-overload-bit on-startup wait-for-bgp
log-adjacency-changes all
metric 100000
passive-interface loopback0
!
address-family ipv6
multi-topology
metric 100000
set-overload-bit on-startup wait-for-bgp
!
interface GigabitEthernet3
description BackBone link to C1
ip router isis as10
isis metric 2
ipv6 router isis as10
isis ipv6 metric 2
isis network point-to-point
!
end
!
wr
!

Task 3: Configure BGP


 Here is the configuration for B1

enable
conf t
!
router bgp 10
bgp deterministic-med
no bgp default ipv4-unicast
!
address-family ipv4
distance bgp 200 200 200
neighbor ibgp-rr peer-group
IPv4/IPv6 Dual-Stack Lab

neighbor ibgp-rr description iBGP with RR


neighbor ibgp-rr remote-as 10
neighbor ibgp-rr update-source loopback0
neighbor ibgp-rr next-hop-self
neighbor ibgp-rr send-community
neighbor 100.68.1.2 peer-group ibgp-rr
neighbor 100.68.1.2 description iBGP with C1
!
address-family ipv6
distance bgp 200 200 200
neighbor ibgp-rr-v6 peer-group
neighbor ibgp-rr-v6 description iBGP with RR
neighbor ibgp-rr-v6 remote-as 10
neighbor ibgp-rr-v6 update-source loopback0
neighbor ibgp-rr-v6 next-hop-self
neighbor ibgp-rr-v6 send-community
neighbor 2001:DB8:1::2 peer-group ibgp-rr-v6
neighbor 2001:DB8:1::2 description iBGP with C1
!
router isis as10
default-information originate
!
address-family ipv6
default-information originate
!

interface gigabitethernet 3
description Link to TR1
ip address 100.121.1.2 255.255.255.252
ipv6 address 2001:18:0:10::1/127
no shutdown
!

router bgp 10
address-family ipv4
neighbor 100.121.1.1 remote-as 121
neighbor 100.121.1.1 description eBGP with TRANSIT 1
!
address-family ipv6
neighbor 2001:18:0:10:: remote-as 121
neighbor 2001:18:0:10:: description eBGP with TRANSIT 1
!
end
!
wr

Fix RIB failure, on B1:

enable
conf t
!
ip prefix-list default-route permit 0.0.0.0/0
!
route-map tag-default permit 10
match ip address prefix-list default-route
set community no-advertise
!
route-map tag-default permit 20
!
IPv4/IPv6 Dual-Stack Lab

ipv6 prefix-list default-v6route permit ::/0


!
route-map tag-v6default permit 10
match ipv6 address prefix-list default-v6route
set community no-advertise
!
route-map tag-v6default permit 20
!
router bgp 10
address-family ipv4
neighbor 100.121.1.1 route-map tag-default in
address-family ipv6
neighbor 2001:18:0:10:: route-map tag-v6default in
!
end
!
wr

 Here is the configuration for C1

enable
conf t
!
router bgp 10
bgp deterministic-med
no bgp default ipv4-unicast
!
address-family ipv4
distance bgp 200 200 200
neighbor ibgp-partial peer-group
neighbor ibgp-partial description Local Routes only
neighbor ibgp-partial remote-as 10
neighbor ibgp-partial update-source loopback0
neighbor ibgp-partial next-hop-self
neighbor ibgp-partial send-community
neighbor ibgp-partial route-reflector-client
neighbor ibgp-partial filter-list 10 out
neighbor ibgp-full peer-group
neighbor ibgp-full description Local Routes only
neighbor ibgp-full remote-as 10
neighbor ibgp-full update-source loopback0
neighbor ibgp-full next-hop-self
neighbor ibgp-full send-community
neighbor ibgp-full route-reflector-client
neighbor 100.68.1.1 peer-group ibgp-full
neighbor 100.68.1.1 description iBGP with B1
neighbor 100.68.1.3 peer-group ibgp-partial
neighbor 100.68.1.3 description iBGP with P1
neighbor 100.68.1.4 peer-group ibgp-partial
neighbor 100.68.1.4 description iBGP with A1
!
address-family ipv6
distance bgp 200 200 200
neighbor ibgp-partialv6 peer-group
neighbor ibgp-partialv6 remote-as 10
neighbor ibgp-partialv6 description Local Routes only
neighbor ibgp-partialv6 update-source Loopback0
neighbor ibgp-partialv6 send-community
IPv4/IPv6 Dual-Stack Lab

neighbor ibgp-partialv6 route-reflector-client


neighbor ibgp-partialv6 next-hop-self
neighbor ibgp-partialv6 filter-list 10 out
neighbor ibgp-fullv6 peer-group
neighbor ibgp-fullv6 remote-as 10
neighbor ibgp-fullv6 description Local Routes only
neighbor ibgp-fullv6 update-source Loopback0
neighbor ibgp-fullv6 send-community
neighbor ibgp-fullv6 route-reflector-client
neighbor ibgp-fullv6 next-hop-self
neighbor 2001:DB8:1::1 peer-group ibgp-fullv6
neighbor 2001:DB8:1::1 description iBGP with B1
neighbor 2001:DB8:1::3 peer-group ibgp-partialv6
neighbor 2001:DB8:1::3 description iBGP with P1
neighbor 2001:DB8:1::4 peer-group ibgp-partialv6
neighbor 2001:DB8:1::4 description iBGP with A1
!
ip as-path access-list 10 permit ^$

router bgp 10
address-family ipv4
network 100.68.1.0 mask 255.255.255.0
address-family ipv6
network 2001:DB8:1::/48

!
ip route 100.68.1.0 255.255.255.0 Null0
ipv6 route 2001:DB8:1::/48 Null0

end
wr

 Here is the configuration for P1

enable
conf t
!
router bgp 10
bgp deterministic-med
no bgp default ipv4-unicast
!
address-family ipv4
distance bgp 200 200 200
neighbor ibgp-rr peer-group
neighbor ibgp-rr description iBGP with RR
neighbor ibgp-rr remote-as 10
neighbor ibgp-rr update-source loopback0
neighbor ibgp-rr next-hop-self
neighbor ibgp-rr send-community
neighbor 100.68.1.2 peer-group ibgp-rr
neighbor 100.68.1.2 description iBGP with C1

address-family ipv6
distance bgp 200 200 200
neighbor ibgp-rr-v6 peer-group
neighbor ibgp-rr-v6 description iBGP with RR
neighbor ibgp-rr-v6 remote-as 10
neighbor ibgp-rr-v6 update-source loopback0
IPv4/IPv6 Dual-Stack Lab

neighbor ibgp-rr-v6 next-hop-self


neighbor ibgp-rr-v6 send-community
neighbor 2001:DB8:1::2 peer-group ibgp-rr-v6
neighbor 2001:DB8:1::2 description iBGP with C1
!
ip route 0.0.0.0 0.0.0.0 null0
ipv6 route ::/0 null0
!
end
!
wr

 Here is the configuration for A1

enable
conf t
!
router bgp 10
bgp deterministic-med
no bgp default ipv4-unicast
!
address-family ipv4
distance bgp 200 200 200
neighbor ibgp-rr peer-group
neighbor ibgp-rr description iBGP with RR
neighbor ibgp-rr remote-as 10
neighbor ibgp-rr update-source loopback0
neighbor ibgp-rr next-hop-self
neighbor ibgp-rr send-community
neighbor 100.68.1.2 peer-group ibgp-rr
neighbor 100.68.1.2 description iBGP with C1

address-family ipv6
distance bgp 200 200 200
neighbor ibgp-rr-v6 peer-group
neighbor ibgp-rr-v6 description iBGP with RR
neighbor ibgp-rr-v6 remote-as 10
neighbor ibgp-rr-v6 update-source loopback0
neighbor ibgp-rr-v6 next-hop-self
neighbor ibgp-rr-v6 send-community
neighbor 2001:DB8:1::2 peer-group ibgp-rr-v6
neighbor 2001:DB8:1::2 description iBGP with C1
!
ip route 100.68.1.64 255.255.255.192 Null0
ipv6 route 2001:DB8:1:4000::/52 Null0
!
router bgp 10
address-family ipv4
network 100.68.1.64 mask 255.255.255.192
address-family ipv6
network 2001:DB8:1:4000::/52
end
!
wr

Task 4: Configure Static Customer Connection


IPv4/IPv6 Dual-Stack Lab

 Here is the configuration for A1

enable
conf t

interface gigabitethernet 6
description P2P Link to Cust1
ip address 100.68.1.33 255.255.255.252
no ip directed-broadcast
no ip redirects
no ip proxy-arp
ipv6 address 2001:DB8:1:20::0/127
ipv6 nd prefix default no-advertise
ipv6 nd ra suppress all
no shutdown
!

no ip route 100.68.1.64 255.255.255.192 null0


!
no ipv6 route 2001:DB8:1:4000::/52 null0
!

ip route 100.68.1.64 255.255.255.192 100.68.1.34


!
ipv6 route 2001:DB8:1:4000::/52 2001:DB8:1:20::1
!

end
!
wr

 Here is the configuration for Cust1

enable
conf t
hostname Cust1
no logging console
logging buffered 8192 debugging
no ip domain-lookup
ipv6 unicast-routing
ipv6 cef distributed
no ip source-route
no ipv6 source-route
ip tcp path-mtu-discovery
!
interface GigabitEthernet6
description P2P Link to A1
ip address 100.68.1.34 255.255.255.252
no ip directed-broadcast
no ip redirects
no ip proxy-arp
ipv6 address 2001:db8:1:20::1/127
ipv6 nd prefix default no-advertise
ipv6 nd ra suppress all
no shutdown
!
interface Loopback0
IPv4/IPv6 Dual-Stack Lab

description Address anchor for Customer 1


ip address 100.68.1.64 255.255.255.255
ipv6 address 2001:DB8:1:4000::0/128
!
ip route 0.0.0.0 0.0.0.0 100.68.1.33
ip route 100.68.1.64 255.255.255.192 Null0
!
ipv6 route ::/0 2001:DB8:1:20::
ipv6 route 2001:DB8:1:4000::/52 Null0
!

end
!
wr

Task 5: Configure DHCPv6-PDS

 Here is the configuration for A1

enable
conf t

interface gigabitethernet 6
description P2P Link to Cust1
no ipv6 address 2001:DB8:1:20::0/127
no ipv6 nd ra suppress all
!
no ipv6 route 2001:DB8:1:4000::/52 2001:DB8:1:20::1

ipv6 local pool dhcpv6-pool1 2001:DB8:1:C000::/52 60


!
ipv6 dhcp pool DHCPv6
prefix-delegation pool dhcpv6-pool1 lifetime 1800 600
dns-server 2001:DB8:100::241
domain-name lab.net
!

ipv6 route 2001:DB8:1:C000::/52 null0


!
router bgp 10
address-family ipv6
network 2001:DB8:1:C000::/52
!

interface gigabitethernet 6
description P2P Link to Cust1
ipv6 enable
ipv6 dhcp server DHCPv6 rapid-commit
!

end
!
wr

 Here is the configuration for Cust1


IPv4/IPv6 Dual-Stack Lab

enable
conf t
interface gigabitethernet 6
description P2P Link to AS10
no ipv6 address 2001:DB8:1:20::1/127
no ipv6 nd ra suppress all
!
no ipv6 route 2001:DB8:1:4000::/52 Null0
no ipv6 route ::/0 2001:DB8:1:20::
!

no interface loopback 0

interface gigabitethernet 6
description P2P Link to AS10
ipv6 address autoconfig default
ipv6 dhcp client pd PDLAB rapid-commit
!

interface gigabitethernet 5
description Local LAN
ipv6 address PDLAB ::1:0:0:0:1/64
no shutdown
!

interface Loopback0
description Customer Router Loopback
ip address 100.68.1.64 255.255.255.255
ipv6 address PDLAB ::2:0:0:0:1/64
no shutdown
!
end
!
wr

You might also like