一、拓扑图:
![](https://i-blog.csdnimg.cn/blog_migrate/cc79519adf59ad356a4b261ee08def72.png)
二、用静态路由下一跳指向null 0来手动的配置汇总:
1、配置各路由器的IP地址,以及配置BGP协议,并把各路由器直连网络通告进BGP当中。配置完之后我们在R3上查看一下路由表:
1、配置各路由器的IP地址,以及配置BGP协议,并把各路由器直连网络通告进BGP当中。配置完之后我们在R3上查看一下路由表:
R3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
B
172.16.255.0/30 [20/0] via 10.1.255.1, 00:00:06
B
172.16.0.0/24 [20/0] via 10.1.255.1, 00:00:06
B
172.16.1.0/24 [20/0] via 10.1.255.1, 00:00:06
B
172.16.2.0/24 [20/0] via 10.1.255.1, 00:00:06
|