Hcielabs v3.0 Lab1 Solution 23rd May 2019
Hcielabs v3.0 Lab1 Solution 23rd May 2019
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
HCIE Lab Exam Paper
I. Exam Description
4. Do not create static route: to achieve the objective of each step except static route creations in
steps 1 and 2 of task 4.1
5. You must not log in to the ISP device.
6. Save the configuration at any time.
1. LAYER 2 and VRRP
S1:
interface Eth-Trunk1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
load-balance src-dst-mac
#
interface GigabitEthernet0/0/23
eth-trunk 1
#
interface GigabitEthernet0/0/24
eth-trunk 1
#
S2:
interface Eth-Trunk1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
load-balance src-dst-mac
#
interface GigabitEthernet0/0/23
eth-trunk 1
#
interface GigabitEthernet0/0/24
eth-trunk 1
#
S1:
interface GigabitEthernet0/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
stp edged-port enable
#
interface GigabitEthernet0/0/3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/12
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
S2:
interface GigabitEthernet0/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
stp edged-port enable
#
interface GigabitEthernet0/0/3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/12
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
S3:
interface Ethernet0/0/3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
S4:
interface Ethernet0/0/3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#
C1:
interface GigabitEthernet0/0/2.10
dot1q termination vid 10
dot1q vrrp vid 10
ip address 10.3.1.1 255.255.255.0
vrrp vrid 10 virtual-ip 10.3.1.254
vrrp vrid 10 priority 120
vrrp vrid 10 preempt-mode timer delay 60
#
interface GigabitEthernet0/0/2.20
dot1q termination vid 20
dot1q vrrp vid 20
ip address 10.3.2.1 255.255.255.0
vrrp vrid 20 virtual-ip 10.3.2.254
#
C2:
#
interface GigabitEthernet0/0/2.10
dot1q termination vid 10
dot1q vrrp vid 10
ip address 10.3.1.2 255.255.255.0
vrrp vrid 10 virtual-ip 10.3.1.254
#
interface GigabitEthernet0/0/2.20
dot1q termination vid 20
dot1q vrrp vid 20
ip address 10.3.2.2 255.255.255.0
vrrp vrid 20 virtual-ip 10.3.2.254
vrrp vrid 20 priority 120
vrrp vrid 20 preempt-mode timer delay 60
#
S3:
interface Ethernet0/0/1
port link-type access
port default vlan 10
stp edged-port enable
#
S4:
interface Ethernet0/0/1
port link-type access
port default vlan 20
stp edged-port enable
#
1.3 MSTP
S1:
vlan batch 10 20
stp mode mst
stp region-configuration
region-name HUAWEI
revision-level 12
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
#
stp instance 10 root primary
stp instance 20 root secondary
#
S2:
vlan batch 10 20
stp mode mst
stp region-configuration
region-name HUAWEI
revision-level 12
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
#
stp instance 10 root secondary
stp instance 20 root primary
#
S3:
vlan batch 10 20
stp mode mst
stp region-configuration
region-name HUAWEI
revision-level 12
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
#
S4:
vlan batch 10 20
stp mode mst
stp region-configuration
region-name HUAWEI
revision-level 12
instance 10 vlan 10
instance 20 vlan 20
active region-configuration
#
S3:
interface Ethernet0/0/1
stp edged-port enable
#
S4:
interface Ethernet0/0/1
stp edged-port enable
#
S1:
interface GigabitEthernet0/0/2
interface GigabitEthernet0/0/2
stp edged-port enable
1.4 WAN
PE1:
interface Ip-Trunk1
ipv6 enable
ip address 10.1.13.1 255.255.255.252
ipv6 address 2000:EAD8:99EF:CC3E:B2AD:9EFF:32DD:1300/127
#
interface Serial0/0/0
link-protocol hdlc
ip-trunk 1
#
interface Serial0/0/1
link-protocol hdlc
ip-trunk 1
#
RR1:
interface Ip-Trunk1
ipv6 enable
ip address 10.1.13.2 255.255.255.252
ipv6 address 2000:EAD8:99EF:CC3E:B2AD:9EFF:32DD:1302/127
#
interface Serial0/0/0
link-protocol hdlc
ip-trunk 1
#
interface Serial0/0/1
link-protocol hdlc
ip-trunk 1
#
PE3:
interface Mp-group0/0/0
ip address 10.2.33.1 255.255.255.252
#
interface Pos4/0/0
link-protocol ppp
ppp mp Mp-group 0/0/0
#
interface Pos6/0/0
link-protocol ppp
ppp mp Mp-group 0/0/0
#
CE3:
interface Mp-group0/0/0
ip address 10.2.33.2 255.255.255.252
#
interface Pos4/0/0
link-protocol ppp
ppp mp Mp-group 0/0/0
#
interface Pos6/0/0
link-protocol ppp
ppp mp Mp-group 0/0/0
#
2. IPv4 IGP
PE1:
interface Ip-Trunk1
ipv6 enable
ip address 10.1.13.1 255.255.255.252
ipv6 address 2000:EAD8:99EF:CC3E:B2AD:9EFF:32DD:1300/127
#
interface Ip-Trunk1
ipv6 enable
ip address 10.1.13.2 255.255.255.252
ipv6 address 2000:EAD8:99EF:CC3E:B2AD:9EFF:32DD:1302/127
#
2.2 OSPF
CE1:
#
ospf 1
silent-interface GigabitEthernet0/0/2.10
silent-interface GigabitEthernet0/0/2.20
area 0.0.0.0
network 10.2.12.1 0.0.0.0
network 10.3.1.0 0.0.0.255
network 10.3.2.0 0.0.0.255
network 172.17.1.1 0.0.0.0
#
CE2:
ospf 1
silent-interface GigabitEthernet0/0/2.10
silent-interface GigabitEthernet0/0/2.20
area 0.0.0.0
network 10.2.12.2 0.0.0.0
network 10.3.1.0 0.0.0.255
network 10.3.2.0 0.0.0.255
network 172.17.1.2 0.0.0.0
#
PE3:
interface GigabitEthernet0/0/0
ip address 10.1.112.1 255.255.255.252
ospf cost 20
ospf network-type p2p
mpls
mpls ldp
#
PE4:
#
interface GigabitEthernet0/0/0
ip address 10.1.112.2 255.255.255.252
ospf cost 20
ospf network-type p2p
mpls
mpls ldp
#
2.3 ISIS
PE1:
interface Ip-Trunk1
ip address 10.1.13.1 255.255.255.252
isis enable 1
isis cost 1500
RR1:
interface Ip-Trunk1
ip address 10.1.13.2 255.255.255.252
isis enable 1
isis circuit-level level-1
isis cost 1500
RR2:
interface GigabitEthernet0/0/0
ip address 10.1.91.1 255.255.255.252
isis enable 1
isis circuit-type p2p
isis cost 50
ospf cost 10
P2:
interface GigabitEthernet0/0/0
ip address 10.1.91.2 255.255.255.252
isis enable 1
isis circuit-type p2p
isis cost 50
ospf cost 10
P1:
isis 1
cost-style wide
timer lsp-generation 1 50 50 level-1
timer lsp-generation 1 50 50 level-2
flash-flood level-1
flash-flood level-2
network-entity 49.0001.74dd.fffe.cc34.00
is-name P1
timer spf 1 100 100
#
3. MPLS VPN
For this section, is better to read all 13 questions for a complete picture of the final requirement, which is an
Inter AS Option C solution 2 with a HUB and SPOKE setup (with dual links at the HUB PEs), above that, path
manipulation and redistributions are requested.
RR2:
ospf 1
preference ase 14
area 0.0.0.0
isis 1
is-level level-2
cost-style wide
network-entity 49.0003.fbd6.a8b4.4da9.00
P2:
ospf 1
preference ase 14
area 0.0.0.0
network 10.1.91.2 0.0.0.0
isis 1
cost-style wide
network-entity 49.0003.fbd6.a8b4.4daa.00
RR1:
isis 1
cost-style wide
network-entity 49.0001.0000.0000.0003.00
is-name RR1
P1:
isis 1
cost-style wide
flash-flood level-1
flash-flood level-2
network-entity 49.0001.74dd.fffe.cc34.00
is-name P1
PE1:
interface Ip-Trunk1
isis enable 1
mpls
mpls ldp
RR1:
interface Ip-Trunk1
isis enable 1
mpls
mpls ldp
Later, configure EBGP and propagate LoO isis routes into BGP on the ASBRs, according to the
requirements:
ASBR1:
bgp 100
isis 1
is-level level-2
cost-style wide
network-entity 49.0002.afcb.bb33.8da5.00
is-name ASBR1
import-route bgp
ASBR2:
#
bgp 100
isis 1
is-level level-2
cost-style wide
network-entity 49.0002.90ae.cef2.fa56.00
is-name ASBR2
import-route bgp
ASBR3:
bgp 200
isis 1
is-level level-2
cost-style wide
network-entity 49.0003.0003.fbd6.a8b4.4da7.00
import-route bgp
ASBR4:
bgp 200
isis 1
is-level level-2
cost-style wide
network-entity 49.0003.fbd6.a8b4.4da8.00
import-route bgp
Then, configure VPN instances according to HUB and SPOKE requirements and associate
corresponding interfaces to the VPNs.
PE3:
ip vpn-instance VPN1
ipv4-family
route-distinguisher 100:13
interface Mp-group0/0/0
PE4:
ip vpn-instance VPN1
ipv4-family
route-distinguisher 100:14
interface GigabitEthernet0/0/1.1
PE1:
ip vpn-instance VPN1_in
ipv4-family
route-distinguisher 100:11
ip vpn-instance VPN1_out
ipv4-family
route-distinguisher 100:12
#
interface GigabitEthernet0/0/1.1
interface GigabitEthernet0/0/1.2
PE2:
ip vpn-instance VPN1_in
ipv4-family
route-distinguisher 100:111
ip vpn-instance VPN1_out
ipv4-family
route-distinguisher 100:122
interface GigabitEthernet0/0/1.1
interface GigabitEthernet0/0/1.2
Later, configure EBGP PE-CE and OSPF PE-CE according to the requirements:
PE3:
default-route-advertise
import-route bgp
area 0.0.0.1
bgp 200
import-route ospf 2
CE3:
ospf 1
area 0.0.0.1
#
PE4:
default-route-advertise
import-route bgp
area 0.0.0.0
bgp 200
import-route ospf 2
CE4:
ip vpn-instance VPN1
ipv4-family
route-distinguisher 100:14
interface GigabitEthernet0/0/1.1
interface LoopBack0
ip binding vpn-instance VPN1
interface LoopBack1
vpn-instance-capability simple
area 0.0.0.0
PE1:
bgp 100
PE2:
bgp 100
#
ipv4-family vpn-instance VPN1_out
CE1:
bgp 65000
CE2:
#
bgp 65000
PE1:
bgp 100
ipv4-family vpnv4
PE2:
bgp 100
ipv4-family vpnv4
RR1:
bgp 100
peer 172.16.1.1 as-number 100
ipv4-family vpnv4
PE3:
bgp 200
ipv4-family vpnv4
PE4:
bgp 200
ipv4-family vpnv4
RR2:
bgp 200
ipv4-family vpnv4
#
Later, configure BGP label capability and exchange as required for Inter AS option C Solution 2
ASBR1:
mpls
lsp-trigger bgp-label-route
apply mpls-label
interface GigabitEthernet0/0/2
mpls
bgp 100
ASBR2:
mpls
lsp-trigger bgp-label-route
apply mpls-label
interface GigabitEthernet0/0/2
bgp 100
ASBR3:
mpls
lsp-trigger bgp-label-route
apply mpls-label
interface GigabitEthernet0/0/2
mpls
bgp 200
ASBR4:
mpls
lsp-trigger bgp-label-route
apply mpls-label
interface GigabitEthernet0/0/2
mpls
bgp 200
Verification commands:
display bgp routing-table label command on each ASBR to check label information
display mpls lsp on each PE to check for the LDP LSP to the peer PE
ASBR1:
#
route-policy PATH permit node 10
apply local-preference 33
bgp 100
ASBR2:
apply local-preference 33
#
route-policy PATH permit node 30
bgp 100
ASBR3:
apply local-preference 33
bgp 200
#
ASBR4:
apply local-preference 33
bgp 200
PE3/PE4:
apply local-preference 55
apply local-preference 55
bgp 200
ipv4-family vpnv4
CE1:
bgp 65000
CE2:
bgp 65000
4. FEATURES
4.1 HA
CE1:
bfd
#
bfd isp bind peer-ip 100.0.1.2 interface GigabitEthernet2/0/1 one-arm-echo
discriminator local 1
min-echo-rx-interval 50
#
ip route-static 0.0.0.0 0.0.0.0 100.0.1.2 track bfd-session isp
#
ip ip-prefix DEFAULT index 5 permit 0.0.0.0 0
#
route-policy DEFAULT permit node 10
if-match ip-prefix DEFAULT
#
bgp 65000
default-route imported
import-route static route-policy DEFAULT
#
CE2:
NOTE: IBGP session and redistribution between CE1 and CE2 ensure the HA scenario when the
CE-PE link fails. For remote PE3 and PE4 to propagate the default route:
PE3:
#
ospf 2 vpn-instance VPN1
default-route-advertise
import-route bgp
area 0.0.0.1
network 10.2.33.0 0.0.0.3
#
PE4:
#
ospf 2 vpn-instance VPN1
default-route-advertise
import-route bgp
area 0.0.0.0
network 10.2.41.0 0.0.0.3
#
4.2 NAT
CE1:
#
acl number 2111
rule 5 deny source 10.3.2.10 0
rule 10 permit source 10.3.0.0 0.0.255.255
#
nat address-group 1 102.0.1.2 102.0.1.6
#
nat alg ftp enable
#
interface GigabitEthernet2/0/1
ip address 100.0.1.1 255.255.255.252
traffic-policy P1 outbound
nat server protocol tcp global 102.0.1.1 www inside 10.3.2.10 8080
nat server protocol tcp global 102.0.1.1 ftp inside 10.3.2.10 ftp
nat outbound 2111 address-group 1
CE2:
#
acl number 2111
rule 5 deny source 10.3.2.10 0
rule 10 permit source 10.3.0.0 0.0.255.255
#
nat address-group 1 102.0.1.2 102.0.1.6
#
nat alg ftp enable
#
interface GigabitEthernet2/0/2
ip address 200.0.2.1 255.255.255.252
traffic-policy P1 outbound
nat server protocol tcp global 102.0.1.1 www inside 10.3.2.10 8080
nat server protocol tcp global 102.0.1.1 ftp inside 10.3.2.10 ftp
nat outbound 2111 address-group 1
#
4.3 QoS
CE1:
#
time-range working_time 08:00 to 18:00 working-day
#
acl number 3111
rule 5 permit tcp destination-port range 6881 6999 time-range working_time
#
traffic classifier C1 operator or
if-match acl 3111
#
traffic behavior B1
car cir 1000 cbs 188000 pbs 313000 green pass yellow pass red discard
#
traffic policy P1
classifier C1 behavior B1
#
#
interface GigabitEthernet2/0/1
traffic-policy P1 outbound
#
CE2:
#
time-range working_time 08:00 to 18:00 working-day
#
acl number 3111
rule 5 permit tcp destination-port range 6881 6999 time-range working_time
#
traffic classifier C1 operator or
if-match acl 3111
#
traffic behavior B1
car cir 1000 cbs 188000 pbs 313000 green pass yellow pass red discard
#
traffic policy P1
classifier C1 behavior B1
#
interface GigabitEthernet2/0/2
traffic-policy P1 outbound
#
5. IPv6
PE1:
isis 1
is-level level-1
cost-style wide
network-entity 49.0001.ea4c.8def.d3e1.00
is-name PE1
#
interface Ip-Trunk1
ipv6 enable
isis enable 1
mpls
mpls ldp
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
isis cost 20
mpls
mpls ldp
PE2:
#
isis 1
is-level level-1
cost-style wide
network-entity 49.0001.ea4c.8def.d3e2.00
is-name PE2
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
isis cost 20
mpls
mpls ldp
interface GigabitEthernet0/0/2
ipv6 enable
isis enable 1
mpls
mpls ldp
RR1:
isis 1
cost-style wide
network-entity 49.0001.0000.0000.0003.00
is-name RR1
ipv6 import-route isis level-2 into level-1 // Apply L2 to L2 route propagation for ISISv6
interface Ip-Trunk1
ipv6 enable
isis enable 1
mpls
mpls ldp
interface GigabitEthernet0/0/0
ipv6 enable
ip address 10.1.34.1 255.255.255.252
isis enable 1
mpls
mpls ldp
interface GigabitEthernet0/0/1
ipv6 enable
isis enable 1
mpls
mpls ldp
P1:
isis 1
cost-style wide
flash-flood level-1
flash-flood level-2
network-entity 49.0001.74dd.fffe.cc34.00
is-name P1
ipv6 import-route isis level-2 into level-1 // Apply L2 to L2 route propagation for ISISv6
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
mpls
mpls ldp
interface GigabitEthernet0/0/1
ipv6 enable
isis enable 1
mpls
mpls ldp
interface GigabitEthernet0/0/2
ipv6 enable
isis enable 1
mpls
mpls ldp
ASBR1:
isis 1
is-level level-2
cost-style wide
network-entity 49.0002.afcb.bb33.8da5.00
is-name ASBR1
import-route bgp
interface GigabitEthernet0/0/0
ipv6 enable
isis cost 50
mpls
mpls ldp
interface GigabitEthernet0/0/1
ipv6 enable
isis enable 1
mpls
mpls ldp
ASBR2:
isis 1
is-level level-2
cost-style wide
network-entity 49.0002.90ae.cef2.fa56.00
is-name ASBR2
import-route bgp
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
isis cost 50
mpls
mpls ldp
interface GigabitEthernet0/0/1
ipv6 enable
isis enable 1
mpls
mpls ldp
pim-ipv6
spt-switch-threshold 1024
interface Ip-Trunk1
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
isis cost 20
pim ipv6 sm
mpls
mpls ldp
PE2:
pim-ipv6
spt-switch-threshold 1024
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
isis cost 20
pim ipv6 sm
mpls
mpls ldp
interface GigabitEthernet0/0/2
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
RR1:
pim-ipv6
spt-switch-threshold 1024
interface Ip-Trunk1
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
interface GigabitEthernet0/0/1
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
P1:
pim-ipv6
spt-switch-threshold 1024
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
interface GigabitEthernet0/0/1
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
interface GigabitEthernet0/0/2
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
ASBR1:
pim-ipv6
c-bsr 2000:EAD8:99EF:CC3E:B2AD:9EFF:32DD:DCA5
spt-switch-threshold 1024
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
isis cost 50
pim ipv6 sm
mpls
mpls ldp
interface GigabitEthernet0/0/1
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
interface LoopBack0
ipv6 enable
isis enable 1
pim ipv6 sm
ASBR2:
#
multicast ipv6 routing-enable
pim-ipv6
c-bsr 2000:EAD8:99EF:CC3E:B2AD:9EFF:32DD:DCA5
spt-switch-threshold 1024
interface GigabitEthernet0/0/0
ipv6 enable
isis enable 1
isis cost 50
pim ipv6 sm
mpls
mpls ldp
interface GigabitEthernet0/0/1
ipv6 enable
isis enable 1
pim ipv6 sm
mpls
mpls ldp
interface LoopBack0
ipv6 enable
isis enable 1
pim ipv6 sm
MLD requirement:
PE1:
interface Ethernet0/0/0
ipv6 enable
mld enable