interface Loopback1
ip address 10.40.0.1 255.255.0.0
!
interface Serial1/0
ip address 172.16.4.2 255.255.255.0
!
router bgp 65002
no synchronization
bgp log-neighbor-changes
network 10.20.0.0 mask 255.255.0.0
network 10.40.0.0 mask 255.255.0.0
neighbor 172.16.4.1 remote-as 4837
no auto-summary
!
结果验证:
CEA# 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/24 is subnetted, 2 subnets
B 172.16.4.0 [20/0] via 172.16.3.1, 00:06:50
C 172.16.3.0 is directly connected, Serial1/1
10.0.0.0/16 is subnetted, 3 subnets
C 10.10.0.0 is directly connected, Loopback0
B 10.20.0.0 [20/0] via 172.16.3.1, 00:06:50
B 10.40.0.0 [20/0] via 172.16.3.1, 00:06:50
CEA#
CEA#ping ip
Target IP address: 10.40.0.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]: 10
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.40.0.1, timeout is 10 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1400/2528/4192 ms
CEA#
CEC# 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-
ia - IS-IS inter area, * - candidate default, U - per-user static ro
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C 192.168.10.0/24 is directly connected, Loopback0
172.16.0.0/30 is subnetted, 2 subnets
C 172.16.5.0 is directly connected, Serial1/1
B 172.16.5.4 [20/0] via 172.16.5.1, 00:09:20
B 192.168.100.0/24 [20/0] via 172.16.5.1, 00:09:20
CEC#
CEC#ping ip
Target IP address: 192.168.100.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]: 10
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.1, timeout is 10 seconds:
!!!!.
Success rate is 80 percent (4/5), round-trip min/avg/max = 1256/1972/3144 ms
CEC#
Comment:
终于在我的小本上实现了BGP/MPLS VPN,算是先僵化吧,当然还要继续固化,最后才有可能优化。
编辑特别推荐:
成本速度成关键解析 四种宽带接入技术
常用TCP端口作用及其操作建议
统一通信将成为IP语音未来发展趋势
提高企业网络可靠性的捷径
防御攻击策略之保持领先黑客一步
网络安全八个潜规则