目录
1 拓扑
2 配置步骤
2.1 配置接口IP
2.2 配置OSPF
2.3 使能LDP
2.3 在VPC上验证
1 拓扑
2 配置步骤
2.1 配置接口IP
LER1
interface LoopBack 0ip address 1.1.1.9 32 quitinterface GigabitEthernet1/0ip address 10.1.1.1 255.255.255.0quitinterface GigabitEthernet2/0ip address 11.1.1.1 255.255.255.0quit
LSR
interface LoopBack 0ip address 2.2.2.9 32 quitinterface GigabitEthernet1/0ip address 10.1.1.2 255.255.255.0quitinterface GigabitEthernet2/0ip address 20.1.1.1 255.255.255.0quit
LER2
interface LoopBack 0ip address 3.3.3.9 32 quitinterface GigabitEthernet1/0ip address 20.1.1.2 255.255.255.0quitinterface GigabitEthernet2/0ip address 21.1.1.1 255.255.255.0quit
VPC1
ip 11.1.1.100/24 11.1.1.1
VPC2
ip 21.1.1.100/24 21.1.1.1
2.2 配置OSPF
LER1
ospf 1area 1network 1.1.1.9 0.0.0.0network 10.1.1.0 0.0.0.255network 11.1.1.0 0.0.0.255quitquit
LSR
ospf 1area 1network 2.2.2.9 0.0.0.0network 10.1.1.0 0.0.0.255network 20.1.1.0 0.0.0.255quitquit
LER2
ospf 1area 1network 3.3.3.9 0.0.0.0network 20.1.1.0 0.0.0.255network 21.1.1.0 0.0.0.255quitquit
查看OSPF 学到的路由
LER1
LSR
LER2
2.3 使能LDP
LER1
mpls lsr-id 1.1.1.9
mpls ldpquitinterface GigabitEthernet1/0mpls enablempls ldp enablequit
LSR
mpls lsr-id 2.2.2.9
mpls ldpquitinterface GigabitEthernet1/0mpls enablempls ldp enablequitinterface GigabitEthernet2/0mpls enable mpls ldp enablequit
LER2
mpls lsr-id 3.3.3.9
mpls ldpquitinterface GigabitEthernet1/0mpls enablempls ldp enablequit
2.4 配置LDP LSP 触发条件
LER1 LSR LER2 配置相同
ip prefix-list ldp index 10 permit 11.1.1.0 24
ip prefix-list ldp index 20 permit 21.1.1.0 24mpls ldplsp-trigger prefix-list ldpquit
查看LDP LSP
LER1
LSR
LER2