HCIP-IPV6实验

实验拓扑

HCIP-IPV6实验_第1张图片

实验需求

全网可达

实验思路

配置IP地址

配置路由协议-ospf

配置R2

配置IPV6

配置R2Tunnel

将所有地址引流到Tunnel0/0/0接口

ripng配置

汇总

实验步骤

配置IP地址

以R2为例

[Huawei]sys r2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
Jan 26 2024 17:46:25-08:00 r2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]int g0/0/01
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
Jan 26 2024 17:47:23-08:00 r2 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r2-GigabitEthernet0/0/1]int g00/0/2
[r2-GigabitEthernet0/0/2]ip address 29.1.1.1 24
Jan 26 2024 17:47:44-08:00 r2 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r2-GigabitEthernet0/0/2]q
[r2]int l0
[r2-LoopBack0]ip address 2.2.2.2 32

配置路由协议-ospf

以R3为例

[Huawei]sys r3
[r3]ospfv3 1
[r3-ospfv3-1]router-id 3.3.3.3
[r3-ospfv3-1]q
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ospfv3 1 area 0
[r3-GigabitEthernet0/0/1]int l0
[r3-LoopBack0]ospfv3 1 area 0

配置R2

[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 12.1.1.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]q
[r2-ospf-1]q
[r2]ip route-static 0.0.0.0 0 29.1.1.2
[r2]ospf 1
[r2-ospf-1]default-route-advertise
[r2-ospf-1]q
[r2]acl 2000
[r2-acl-basic-2000]rule permit source any 
[r2-acl-basic-2000]q
[r2]int GigabitEthernet 0/0/2
[r2-GigabitEthernet0/0/2]nat outbound  2000

配置IPV6

以R1为例

[r1]ipv6
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ipv6 enable 
[r1-GigabitEthernet0/0/0]ipv6 address 2002:1d01:0101::1/50
[r1-GigabitEthernet0/0/0]q
[r1]int l0
[r1-LoopBack0]ipv6 enable 
[r1-LoopBack0]ip address 1::1/64

配置R2Tunnel

[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4 
[r2-Tunnel0/0/0]source g0/0/02
[r2-Tunnel0/0/0]ipv6 enable 
[r2-Tunnel0/0/0]ipv6 address 2002:1d01:0101:4000::1/50

将所有地址引流到Tunnel0/0/0接口

r1

[r1]ipv6 route-static :: 0 2002:1d01:0101::2

r2

[r2]ipv6 route-static :: 0 Tunnel 0/0/0

ripng配置

以R10为例

[r10]ripng 1
[r10-ripng-1]q
[r10]int GigabitEthernet 0/0/1
[r10-GigabitEthernet0/0/1]ripng 1 enable 
[r10-GigabitEthernet0/0/1]q
[r10]int l0
[r10-LoopBack0]ipv6 enable 
[r10-LoopBack0]ripng 1 enable 

汇总

以R10为例

[r10]int t0/0/0
[r10-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4 
[r10-Tunnel0/0/0]source g0/0/0
[r10-Tunnel0/0/0]ipv6 enable 
[r10-Tunnel0/0/0]ipv6 address 2002:5b01:0102:4000::1/50
[r10-Tunnel0/0/0]q
[r10]ipv6 route-static :: 0 Tunnel 0/0/0
[r10]int g0/0/1
[r10-GigabitEthernet0/0/1]ripng default-route originate 

你可能感兴趣的:(网络,实验,HCIP,网络)