华为---IPV6综合实验

实验要求:
1.实现IPV4(PC1与PC2) 与ipv6(PC3 与PC4)之间的互通
2.使用不同协议建立互通(ospf   IS-IS   bgp  )

华为---IPV6综合实验_第1张图片

 

命令配置 :
[r1]ipv6
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.254 24
[r1-GigabitEthernet0/0/2]ipv6 enable 
[r1-GigabitEthernet0/0/2]ipv6 add 2000::1 64
[r1-GigabitEthernet0/0/2]ip add 12.1.1.1 24
[r1-GigabitEthernet0/0/0]ipv6 enable 
[r1-GigabitEthernet0/0/0]ipv6 add 2001::254 64

[r2]ipv6
[r2]int g0/0/1
[r2-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[r2-GigabitEthernet0/0/1]ipv6 enable 
[r2-GigabitEthernet0/0/2]ipv6 add 2000::1 64
[r2-GigabitEthernet0/0/2]ip add 12.1.1.2 24
[r2-GigabitEthernet0/0/1]ipv6 enable 
[r2-GigabitEthernet0/0/1]ipv6 add 2001::254 64

实验:
 一:实现IPV6之间的互通:

[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]net 192.168.1.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]net 12.1.1.0  0.0.0.255

[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]net 12.1.1.0 0.0.0.255
[r2-ospf-1-area-0.0.0.0]net 192.168.2.0 0.0.0.255

(IPV4 之间通过ospf可以实现互通,而IPV6因为没有路由无法互通)
IPV6之间互通方法:
(双栈)
(1)写入静态路由:
[r1]ipv6 route-static 2002:: 64 2000::2
[r2]ipv6 route-static 2001:: 64 2000::1
IPV6 之间分别可以实现互通

(2)写入ospfv3:
接口下分别使能ospfv3:
[r1-ospfv3-1]router-id 1.1.1.1
[r1-ospfv3-1]q
[r1]int g0/0/2
[r1-GigabitEthernet0/0/2]ospfv3 1 area 0
[r1-GigabitEthernet0/0/2]int g0/0/0
[r1-GigabitEthernet0/0/0]ospfv3 1 area 0

[r2-ospfv3-1]router-id 2.2.2.2
[r2-ospfv3-1]q
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ospfv3 1 area 0
[r2-GigabitEthernet0/0/1]int g0/0/2
[r2-GigabitEthernet0/0/2]ospfv3 1 area 0

实验:
二 使用ISIS互通:

[r1]isis
[r1-isis-1]network-entity 49.0001.0000.0000.0001.00    
[r1-isis-1]ipv6 enable topology standard     //:表示支持IPV6
[r1-isis-1]int g0/0/1    
[r1-GigabitEthernet0/0/1]isis enable 
[r1-GigabitEthernet0/0/1]int g0/0/2
[r1-GigabitEthernet0/0/2]isis enable
[r1-GigabitEthernet0/0/2]int g0/0/0
[r1-GigabitEthernet0/0/0]isis enable
[r1]int g0/0/0    
[r1-GigabitEthernet0/0/0]isis ipv6 enable
[r1-GigabitEthernet0/0/0]int g0/0/2
[r1-GigabitEthernet0/0/2]isis ipv6 enable

[r2]isis    
[r2-isis-1]network-entity 49.0001.0000.0000.0002.00
[r2-isis-1]ipv6 enable topology standard 
[r2-isis-1]int g0/0/0    
[r2-GigabitEthernet0/0/0]isis enable 
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]isis enable
[r2-GigabitEthernet0/0/1]int g0/0/2
[r2-GigabitEthernet0/0/2]isis enable
[r2]int g0/0/1    
[r2-GigabitEthernet0/0/1]isis ipv6 enable
[r2-GigabitEthernet0/0/1]int g0/0/2
[r2-GigabitEthernet0/0/2]isis ipv6 enable
(双栈)
IPV4 与ipv6之间的业务互通

实验三:

使用bgp协议完成设备互通:
(IPV4)
[r1]int g0/0/1    
[r1-GigabitEthernet0/0/1]undo isis enable 
[r1-GigabitEthernet0/0/1]int g0/0/0
[r1-GigabitEthernet0/0/0]undo isis enable
[r1-GigabitEthernet0/0/0]undo isis ipv6 enable 
[r1-GigabitEthernet0/0/0]q
[r1]int LoopBack 0
[r1-LoopBack0]ip add 1.1.1.1 24    
[r1-LoopBack0]isis enable     
[r1-LoopBack0]ipv6 enable 
[r1-LoopBack0]ipv6 add 1::1 64    
[r1-LoopBack0]isis ipv6 enable

[r2]int g0/0/0    
[r2-GigabitEthernet0/0/0]undo isis enable 
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]undo isis enable
[r2-GigabitEthernet0/0/1]undo isis ipv6 enable
[r2-GigabitEthernet0/0/1]q
[r2]int LoopBack 0
[r2-LoopBack0]ip add 2.2.2.2 24    
[r2-LoopBack0]isis enable     
[r2-LoopBack0]ipv6 enable 
[r2-LoopBack0]ipv6 add 2::2 64
[r2-LoopBack0]isis ipv6 enable

[r1]bgp 12    
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 2.2.2.2 as 12    
[r1-bgp]peer 2.2.2.2 connect-interface  LoopBack 0
[r1-bgp]net 192.168.1.0 24

[r2]bgp 12    
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 1.1.1.1 as 12
[r2-bgp]peer 1.1.1.1 connect-interface  LoopBack 0
[r2-bgp]net 192.168.2.0 24
(ipv6 )
[r1-bgp]peer 2::2 as 12    
[r1-bgp]peer 2::2 connect-interface LoopBack 0
[r1-bgp]ipv6-family     
[r1-bgp-af-ipv6]peer 2::2 enable
[r1-bgp-af-ipv6]network 2001:: 64 
[r1-bgp-af-ipv6]q

[r2-bgp]peer 1::1 as 12
[r2-bgp]peer 1::1 connect-interface LoopBack 0
[r2-bgp]ipv6-family 
[r2-bgp-af-ipv6]peer 1::1 enable
[r2-bgp-af-ipv6]network 2002 :: 64 
[r2-bgp-af-ipv6]q
 

你可能感兴趣的:(网络安全,网络)