- A+
所属分类:思科设备
ospf:要求设备和设备两两之间运行才行
bgp:可以跨设备之间进行传递(R2 可以不运行)
如果都使用ospf 中间的设备都有大量的路由条目 。
速度快慢=== 转发延迟 (经过每一次路由器停留时间 查表-- 转发)
router bgp 100 //自治系统编号 == 本地编号 一台设备只能启动一个编号 (真实工作 编号运营商分配)
1 2 |
R1(config-router)#neighbor 200.1.1.2 remote-as 100 //指定对端的gbp设备 对端的地址200.1.1.2 对端的编号也是100 R1(config-router)#network 1.1.1.0 mask 255.255.255.0 //宣告网段 |
R1 :
MPLS VPN --多协议标签交换技术
LFIB ---标签转发信息库
R1:
1 2 3 4 5 6 7 8 9 10 11 |
interface FastEthernet0/0 ip address 100.1.1.1 255.255.255.0 speed auto duplex auto ! interface FastEthernet0/1 ip address 200.1.1.1 255.255.255.0 speed auto duplex auto ! router ospf 1 network 100.1.1.0 0.0.0.255 area 0 network 200.1.1.0 0.0.0.255 area 0 |
R2:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
interface Loopback1 ip address 5.5.5.5 255.255.255.0 ! interface FastEthernet0/0 ip address 100.1.1.2 255.255.255.0 speed auto duplex auto ! router ospf 1 network 100.1.1.0 0.0.0.255 area 0 ! router bgp 100 bgp log-neighbor-changes network 5.5.5.0 mask 255.255.255.0 neighbor 200.1.1.2 remote-as 100 ! |
R3:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
interface Loopback1 ip address 6.6.6.6 255.255.255.0 ! interface FastEthernet0/0 no ip address shutdown speed auto duplex auto ! interface FastEthernet0/1 ip address 200.1.1.2 255.255.255.0 speed auto duplex auto ! router ospf 1 network 200.1.1.0 0.0.0.255 area 0 ! router bgp 100 bgp log-neighbor-changes network 6.6.6.0 mask 255.255.255.0 neighbor 100.1.1.2 remote-as 100 |
R2 ping R3
1 2 3 4 5 6 |
R2#ping 6.6.6.6 source 100.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds: Packet sent with a source address of 100.1.1.2 UUUUU Success rate is 0 percent (0/5) |
R1 ping R2
1 2 3 |
R1#ping 5.5.5.5 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) |
- 我的微信
- 这是我的微信扫一扫
-
- 我的微信公众号
- 我的微信公众号扫一扫
-