路由综合大实验

在这里插入图片描述

在这里插入图片描述
分析:

在这里插入图片描述
配置:
1.1、公网地址配置
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip address 23.1.1.1 24

[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip address 34.1.1.1 24
[R3-GigabitEthernet0/0/1]int l0
[R3-LoopBack0]ip address 3.3.3.3 24

[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip address 34.1.1.2 24
在这里插入图片描述
1.2 、R1-R2上起RIP
1.2.1、IP地址配置
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.0.1 30
[R1-GigabitEthernet0/0/0]int l0
[R1-LoopBack0]ip address 192.168.1.1 25
[R1-LoopBack0]int l1
[R1-LoopBack1]ip address 192.168.1.129 25

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.0.2 30
[R2-GigabitEthernet0/0/0]int l0
[R2-LoopBack0]ip address 192.168.2.1 25

1.2.2 基础RIP
[R1]rip 1
[R1-rip-1]v 2
[R1-rip-1]undo summary
[R1-rip-1]network 192.168.1.0
[R1-rip-1]network 192.168.0.0

[R2]rip 1
[R2-rip-1]v 2
[R2-rip-1]undo summary
[R2-rip-1]network 192.168.0.0
[R2-rip-1]network 192.168.2.0

在这里插入图片描述
1.2.3 汇总
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.0
在这里插入图片描述

1.2.4 缺省
[R2-rip-1]default-route originate
在这里插入图片描述
1.2.5 防环
[R1]ip route-static 192.168.1.0 24 NULL 0

1.3NAT
[R2]ip route-static 0.0.0.0 24 23.1.1.2
[R4]ip route-static 0.0.0.0 24 34.1.1.1
[R2]acl 2000
[R2-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]nat outbound 2000

2、V6
2.1左边
2.1.1配置V6IP地址
R1:
Interface Physical Protocol
GigabitEthernet0/0/0 up up
[IPv6 Address] 2002:1701:101:1::1
LoopBack0 up up(s)
[IPv6 Address] 2002:1701:101::1
LoopBack1 up up(s)
[IPv6 Address] 2002:1701:101:0:8000::1

R2:
Interface Physical Protocol
GigabitEthernet0/0/0 up up
[IPv6 Address] 2002:1701:101:1::2
LoopBack0 up up(s)
[IPv6 Address] 2002:1701:101:2::1

2.1.2配置一个ripng
[R1]ripng 1
[R1-ripng-1]q
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ripng 1 enable
[R1-GigabitEthernet0/0/0]int l0
[R1-LoopBack0]ripng 1 enable
[R1-LoopBack0]int l1
[R1-LoopBack1]ripng 1 enable

[R2]ripng 1
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ripng 1 enable
[R2-GigabitEthernet0/0/0]int l0
[R2-LoopBack0]ripng 1 enable
在这里插入图片描述
汇总:
[R1-GigabitEthernet0/0/0]ripng summary-address 2002:1701:101:: 64
缺省:
[R2-GigabitEthernet0/0/0]ripng default-route only
防环
[R1]ipv6 route-static 2002:1701:101:: 64 NULL 0

2.1.4 6to4
[R2]int Tunnel 0/0/0
[R2-Tunnel0/0/0]ipv6 enable
[R2-Tunnel0/0/0]ipv6 address 2002:1701:0101:3::1 64
[R2-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 6to4
[R2-Tunnel0/0/0]source 23.1.1.1

R2向外的路由
[R2]ipv6 route-static 2002:: 16 tunnel0/0/0

2.2右边
2.2.1配置右边的IP地址
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]ipv6 enable
[R4-GigabitEthernet0/0/1]ipv6 address 2002:2201:0102:1::1 64
[R4-GigabitEthernet0/0/1]int l0
[R4-LoopBack0]ipv6 enable
[R4-LoopBack0]ipv6 address 2002:2201:0102::1 64

[R5]ipv6
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ipv6 enable
[R5-GigabitEthernet0/0/0]ipv6 address 2002:2201:0102:1::2 64
[R5-GigabitEthernet0/0/0]int g0/0/1
[R5-GigabitEthernet0/0/1]ipv6 enable
[R5-GigabitEthernet0/0/1]ipv6 address 2001:2201:0102:8001::1 64
[R5]int l0
[R5-LoopBack0] ipv6 address 2002:2201:102:8000::1 64

[R6]ipv6
[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ipv6 enable
[R6-GigabitEthernet0/0/0]ipv6 address 2002:2201:0102:8001::2 64
[R6-GigabitEthernet0/0/0]int g0/0/1
[R6-GigabitEthernet0/0/1]ipv6 enable
[R6-GigabitEthernet0/0/1]ipv6 address 2002:2201:0102:8003::1 64
[R6]int l0
[R6-LoopBack0]ipv6 enable
[R6-LoopBack0]ipv6 address 2002:2201:0102:8002::1 64

R7:
GigabitEthernet0/0/0 up up
[IPv6 Address] 2002:2201:102:8003::2
GigabitEthernet0/0/1 up up
[IPv6 Address] 2002:2201:102:8005::1
LoopBack0 up up(s)
[IPv6 Address] 2002:2201:102:8004::1

R8:
GigabitEthernet0/0/0 up up
[IPv6 Address] 2002:2201:102:8005::2
LoopBack0 up up(s)
[IPv6 Address] 2002:2201:102:8006::1

2.2.2起OSPF协议
[R5]ospfv3 1
[R5-ospfv3-1]router-id 5.5.5.5
[R5-ospfv3-1]int l0
[R5-LoopBack0] ospfv3 1 area 0
[R5-LoopBack0]int g0/0/1
[R5-GigabitEthernet0/0/1]ospfv3 1 area 0

[R6]ospfv3 1
[R6-ospfv3-1]router-id 6.6.6.6
[R6-ospfv3-1]int g0/0/1
[R6-GigabitEthernet0/0/1]ospfv3 1 area 0
[R6-GigabitEthernet0/0/1]int g0/0/0
[R6-GigabitEthernet0/0/0]ospfv3 1 area 0
[R6-GigabitEthernet0/0/0]int l0
[R6-LoopBack0]ospfv3 1 area 0

[R7]ospfv3 1
[R7-ospfv3-1]router-id 7.7.7.7
[R7-ospfv3-1]int g0/0/0
[R7-GigabitEthernet0/0/0]ospfv3 1 area 0
[R7-GigabitEthernet0/0/0]int g0/0/1
[R7-GigabitEthernet0/0/1]ospfv3 1 area 0
[R7-GigabitEthernet0/0/1]int l0
[R7-LoopBack0]ospfv3 1 area 0

[R8]ospfv3 1
[R8-ospfv3-1]router-id 8.8.8.8
[R8-ospfv3-1]int g0/0/0
[R8-GigabitEthernet0/0/0]ospfv3 1 area 0
[R8-GigabitEthernet0/0/0]int l0
[R8-LoopBack0]ospfv3 1 area 0
在这里插入图片描述
2.3.1BGP 的基本配置
bgp 1
router-id 4.4.4.4
peer 2002:2201:102:1::2 as-number 2

ipv4-family unicast
undo synchronization

ipv6-family unicast
undo synchronization
network 2002:: 16
peer 2002:2201:102:1::2 enable

在R5、R6、R7、R8建立邻居的时候应该用环回建邻居
所以一要在这四个路由器上添加环回0 的地址为 5::5 、6::6、7::7、8::8过程(略)
算了还是写一下吧应该没有人会仔细看,对了在此表白潘老师简直太帅了!!!
R5:
Int loopback 0
Ipv6 address 5::5 64
R6:
Int loopback 0
Ipv6 address 6::6 64
R7:
Int loopback 0
Ipv6 address 7::7 64
R8:
Int loopback 0
Ipv6 address 8::8 64

R5:
bgp 64512
router-id 5.5.5.5
confederation id 2
peer 6::6 as-number 64512
peer 6::6 connect-interface LoopBack0 5::5
peer 2002:2201:102:1::1 as-number 1

ipv4-family unicast
undo synchronization

ipv6-family unicast
undo synchronization
network 2002:2201:102:8000:: 49
network 2002:2202:102:8000:: 49
peer 6::6 enable
peer 6::6 next-hop-local
peer 2002:2201:102:1::1 enable

R6:
bgp 64512
router-id 6.6.6.6
confederation id 2
peer 5::5 as-number 64512
peer 5::5 connect-interface LoopBack0 6::6
peer 7::7 as-number 64512
peer 7::7 connect-interface LoopBack0

ipv4-family unicast
undo synchronization

ipv6-family unicast
undo synchronization
peer 5::5 enable
peer 5::5 reflect-client
peer 7::7 enable

R7:
bgp 64512
router-id 7.7.7.7
confederation id 2
confederation peer-as 64513
peer 6::6 as-number 64512
peer 6::6 connect-interface LoopBack0 7::7
peer 8::8 as-number 64513
peer 8::8 ebgp-max-hop 2
peer 8::8 connect-interface LoopBack0 7::7

ipv4-family unicast
undo synchronization

ipv6-family unicast
undo synchronization
peer 6::6 enable
peer 8::8 enable

R8:
bgp 64513
router-id 8.8.8.8
confederation id 2
confederation peer-as 64512
peer 7::7 as-number 64512
peer 7::7 ebgp-max-hop 2
peer 7::7 connect-interface LoopBack0 8::8

ipv4-family unicast
undo synchronization

ipv6-family unicast
undo synchronization
peer 7::7 enable
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
2.3.2 让BGP联通
1)在R4上打6TO4的隧道
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2002:2201:102:2::1/64
tunnel-protocol ipv6-ipv4 6to4
source 34.1.1.2
[R4]ipv6 route-static 2002:: 16 Tunnel 0/0/0
在这里插入图片描述
2)R5上进行汇总传递(BGP两个AS互通)
R5:
Ipv6 route-static 2002:2201:0102:8000:: 49 Null 0
bgp 64512
Ipv6 family
Netwrok 2002:2201:0102:8000:: 49
在这里插入图片描述
在这里插入图片描述
测试R4ping R5环回
在这里插入图片描述

3)AS2学域外的路由
R4:
Bgp 1
Ipv6-family
Network 2002:: 16
在这里插入图片描述
4)解决6不优的问题:
R5:
Bgp 64512
Ipv6-family
Peer 6::6 next-hop-local
在这里插入图片描述
5)解决7学不到的问题IBGP水平分割做反射器
R6:
Bgp 64512
Ipv6-family
Peer 5::5 reflect-client
在这里插入图片描述
在这里插入图片描述
测试:R1pingR8
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值