网络拓扑图如下 要求使用路由协议使三台PC互通,不使用静态路由
R1
[Huawei]int g0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 10.1.12.1 24 [Huawei-GigabitEthernet0/0/0]int g0/0/2 [Huawei-GigabitEthernet0/0/2]ip add 10.1.13.1 24 [Huawei-GigabitEthernet0/0/2]int lo 0 [Huawei-LoopBack0]ip add 1.1.1.1 32 [Huawei-LoopBack0]q [Huawei]rip [Huawei-rip-1]network ?10.0.0.0 [Huawei-rip-1]network 1.0.0.0(以上为配置路由协议使三台路由器之间互通) [Huawei]ipv6 [Huawei]int ?Tunnel 0/0/0 [Huawei-Tunnel0/0/0]ipv6 ?enable ? [Huawei-Tunnel0/0/0]ipv6 address auto link-local(注意要在隧道口配置一个ipv6地址,不然隧道口没法正常开启) [Huawei-Tunnel0/0/0]tunnel-protocol ipv6-ipv4(隧道协议为IPv6到IPv4 把ipv6报文封装在ipv4中) [Huawei-Tunnel0/0/0]source ?1.1.1.1 [Huawei-Tunnel0/0/0]destination 2.2.2.2
[Huawei]int ?Tunnel 0/0/1 [Huawei-Tunnel0/0/1]ipv6 ?enable ? [Huawei-Tunnel0/0/1]ipv6 address auto link-local [Huawei-Tunnel0/0/1]tunnel-protocol ipv6-ipv4 [Huawei-Tunnel0/0/1]source ?1.1.1.1 [Huawei-Tunnel0/0/1]destination 3.3.3.3 [Huawei]int g0/0/1 [Huawei-GigabitEthernet0/0/1]ipv6 enable ? [Huawei-GigabitEthernet0/0/1]ipv6 address 2001:1111::254 64(给PC1配置一个网关) [Huawei-GigabitEthernet0/0/1]q [Huawei]ospfv3 [Huawei-ospfv3-1]router-id 1.1.1.1 [Huawei-ospfv3-1]q [Huawei]int ?Tunnel 0/0/0 [Huawei-Tunnel0/0/0]ospfv3 1 area 0(把隧道口加到ospfv3路由协议中,实现PC间的互访,不必配置大量的静态路由) [Huawei]int ?Tunnel 0/0/1 [Huawei-Tunnel0/0/1]ospfv3 1 area 0 [Huawei]int g0/0/1 [Huawei-GigabitEthernet0/0/1]ospfv3 1 area ?0 [Huawei-GigabitEthernet0/0/1]q
R2跟R3的配置类似
最后用PC之间互ping测试设备的连通性
?
|