Anda di halaman 1dari 9

Frist Lest Create assign IPv4/IPv6 address

TT-P
int f0/0
ip add 172.16.20.9 255.255.255.252
no sh
exit
int f0/1
ip add 172.16.20.5 255.255.255.252
no sh
exit
int loop0
ip add 1.1.1.1 255.255.255.255

exit

TT-PE1
ipv6 uni
int f0/0
ip add 172.16.20.10 255.255.255.252
no sh
exit
int s1/1
ip add 172.16.20.2 255.255.255.252

ipv6 add 2001:db8:1:1::2/64


ipv6 add fe80::1 link-local
no sh
exit
int loop 0
ip add 2.2.2.2 255.255.255.255
exit
TT-PE2
ipv6 uni
int f0/1
ip add 172.16.20.6 255.255.255.252
no sh
int s1/1
ip add 172.16.20.14 255.255.255.252

ipv6 add 2001:db8:2:1::2/64


ipv6 add fe80::3 link-local
no sh
int loop 0
ip add 3.3.3.3 255.255.255.255
CNI
ipv6 uni
int s1/1
ipv6 add 2001:db8:1:1::1/64
ipv6 add fe80::11 link-local
no sh
int loop 0
ipv6 add 2001:db8:3:3::3/64
int f0/0
ipv6 address 2001:db8:1:2::1/64
NO SHUT
EXIT
DO WR

SITE
ipv6 uni
int s1/1
ipv6 add 2001:db8:2:1::1/64
ipv6 add fe80::33 link-local
no sh
int loop 0
ipv6 add 2001:db8:3:3::2/64

int f0/0
ipv6 address 2001:db8:2:2::1/64

no shut

exit

Second Lets Have IGP between P1,PE1,PE2 , I will use OSPFv2


TT-P
router ospf 100
int f0/0
ip ospf 100 area 0
int f0/1
ip ospf 100 area 0
int loop 0
ip ospf 100 area 0
TT-PE1
router ospf 100
int f0/0
ip ospf 100 area 0
int loop 0
ip ospf 100 area 0
TT-PE2
router ospf 100
int f0/1
ip ospf 100 area 0
int loop 0
ip ospf 100 area 0

Third lets create mpls connectivity between PE1 & PE2


PE1
router bgp 123
no bgp def ipv4
nei 3.3.3.3 remote-as 123
nei 3.3.3.3 update loop0
add ipv6
nei 3.3.3.3 act

TT-PE2
router bgp 123
no bgp def ipv4
nei 2.2.2.2 remote-as 123
nei 2.2.2.2 update loop0
add ipv6
nei 2.2.2.2 act
TT-P
mpls label prot ldp
mpls label range 500 599
mpls ldp router-id loop0 f
int f0/0
mpls ip
int f0/1
mpls ip

TT-PE1
mpls label prot ldp
mpls label range 100 199
mpls ldp router-id loop0 f
int f0/0
mpls ip
TT-PE2
mpls label prot ldp
mpls label range 200 299
mpls ldp router-id loop0 f
int f0/1
mpls ip
Fourth lets create connection between CE-1-A & CE-1-B through MPLS
TT-PE1
router bgp 123
add ipv6
network 2001:db8:1:1::/64
nei 3.3.3.3 send-label
TT-PE2
router bgp 123
add ipv6
network 2001:db8:2:1::/64
nei 2.2.2.2 send-label

NOW we configure CE1 CE2 using BGP with PE1 PE2( we can use static
route or IGP instead)
CNI
router bgp 1
bgp router-id 9.9.9.9
no bgp def ipv4
nei 2001:db8:1:1::2 remote-as 123
add ipv6
network 2001:db8:3:3::/64
network 2001:db8:1:2::/64
nei 2001:db8:1:1::2 act

TT-PE1
router bgp 123
no bgp def ipv4
nei 2001:db8:1:1::1 remote-as 1
add ipv6
nei 2001:db8:1:1::1 act
SITE
router bgp 2
bgp router-id 99.99.99.99
no bgp def ipv4
nei 2001:db8:2:1::2 remote-as 123
add ipv6
network 2001:db8:3:3::/64
network 2001:db8:2:2::/64
nei 2001:db8:2:1::2 act
TT-PE2
router bgp 123
no bgp def ipv4
nei 2001:db8:2:1::1 remote-as 2
add ipv6
nei 2001:db8:2:1::1 act

6vpe
Frist Lest Create assign IPv4/IPv6 address
TT-P
int f0/0
ip add 172.16.20.9 255.255.255.252
no sh
exit
int f0/1
ip add 172.16.20.5 255.255.255.252
no sh
exit
int loop0
ip add 1.1.1.1 255.255.255.255

exit

TT-PE1
ipv6 uni
int f0/0
ip add 172.16.20.10 255.255.255.252
no sh
exit
int s1/1
ip add 172.16.20.2 255.255.255.252

ipv6 add 2001:db8:1:1::2/64


ipv6 add fe80::1 link-local
no sh
exit
int loop 0
ip add 2.2.2.2 255.255.255.255
exit
TT-PE2
ipv6 uni
int f0/1
ip add 172.16.20.6 255.255.255.252
no sh
int s1/1
ip add 172.16.20.14 255.255.255.252

ipv6 add 2001:db8:2:1::2/64


ipv6 add fe80::3 link-local
no sh
int loop 0
ip add 3.3.3.3 255.255.255.255
CNI
ipv6 uni
int s1/1
ipv6 add 2001:db8:1:1::1/64
ipv6 add fe80::11 link-local
no sh
int loop 0
ipv6 add 2001:db8:3:3::3/64
int f0/0
ipv6 address 2001:db8:1:2::1/64
NO SHUT
EXIT

SITE
ipv6 uni
int s1/1
ipv6 add 2001:db8:2:1::1/64
ipv6 add fe80::33 link-local
no sh
int loop 0
ipv6 add 2001:db8:3:3::2/64

int f0/0
ipv6 address 2001:db8:2:2::1/64

no shut

exit

Second Lets Have IGP between P1,PE1,PE2 , I will use OSPFv2


TT-P
router ospf 100
int f0/0
ip ospf 100 area 0
int f0/1
ip ospf 100 area 0
int loop 0
ip ospf 100 area 0
TT-PE1
router ospf 100
int f0/0
ip ospf 100 area 0
int loop 0
ip ospf 100 area 0
TT-PE2
router ospf 100
int f0/1
ip ospf 100 area 0
int loop 0
ip ospf 100 area 0

Third lets create mpls connectivity between PE1 & PE2


PE1
router bgp 123
no bgp def ipv4
nei 3.3.3.3 remote-as 123
nei 3.3.3.3 update loop0
add ipv6
nei 3.3.3.3 act

TT-PE2
router bgp 123
no bgp def ipv4
nei 2.2.2.2 remote-as 123
nei 2.2.2.2 update loop0
add ipv6
nei 2.2.2.2 act
TT-P
mpls label prot ldp
mpls label range 500 599
mpls ldp router-id loop0 f
int f0/0
mpls ip
int f0/1
mpls ip

TT-PE1
mpls label prot ldp
mpls label range 100 199
mpls ldp router-id loop0 f
int f0/0
mpls ip
TT-PE2
mpls label prot ldp
mpls label range 200 299
mpls ldp router-id loop0 f
int f0/1
mpls ip

Fourth lets create connection between CE-1-A & CE-1-B through MPLS
using vrf for ipv6
I will make Both CE in same AS# so we will need later to add as-override
Then we configure CE1 CE2 using BGP with PE1 PE2

PE1
vrf definition cbtme
rd 1:1
add ipv6
route-target both 3:3
add ipv4
route-target both 3:3
int s1/1
vrf forwarding cbtme
ip add 172.16.20.2 255.255.255.252
ipv6 add 2001:db8:1:1::2/64
ipv6 add fe80::1 link-local
PE2
vrf definition cbtme
rd 1:2
add ipv6
route-target both 3:3
add ipv4
route-target both 3:3
int s1/1
vrf forwarding cbtme
ip add 172.16.20.14 255.255.255.252

ipv6 add 2001:db8:2:1::2/64


ipv6 add fe80::3 link-local
cni
router bgp 1
bgp router-id 9.9.9.9
no bgp def ipv4
nei 2001:db8:1:1::2 remote-as 123
add ipv6
network 2001:db8:3:3::/64
network 2001:db8:1:2::/64
nei 2001:db8:1:1::2 act
PE1
router bgp 123
no bgp def ipv4
add ipv6 vrf cbtme
nei 2001:db8:1:1::1 remote-as 1
nei 2001:db8:1:1::1 as-override
exit
site1
router bgp 1
bgp router-id 99.99.99.99
no bgp def ipv4
nei 2001:db8:2:1::2 remote-as 123
add ipv6
network 2001:db8:3:3::/64
network 2001:db8:2:2::/64
nei 2001:db8:2:1::2 act
PE2
router bgp 123
no bgp def ipv4
add ipv6 vrf cbtme
nei 2001:db8:2:1::1 remote-as 1
nei 2001:db8:2:1::1 as-override

exit

Anda mungkin juga menyukai