该实验没有搞定 ; ( 没有搞定 : (
; ( 做个记录。最近工作不顺利,天下到处横行骗子,心情甚是低落 ; (
MPLS 多层交换 (IP+ATM)
fec lable ldp
步骤:
1,配置接口和IGP(interior Gateway Protocols)
@1,cisco启用CEF(Cisco Express Forwarding)三层交换 (命
令ip cef)
@2,配置loopback接口以确定route ID。
@3,配置IGP(启用OSPF,命令router ospf1)
@4,接口上启用标记交换,命令:TAP-SWITCH IP
2,定义×××
@1,确定VRF名字以区别其他***,命令IP VRF vrf-name
@2,配置必须的VRF子模式里的RD,即路由辨别符(ROUTE
Distinguisher)
@3,关联VRF和相应的接口,命令IP VRF FORWARDING vrf-name
3,配置PE到PE的路由会话
4,配置PE到CE的路由会话
5,配置P路由器
5,配置CE路由器
实验:
图:
图片:
R1
/ \
R2-----R3
| |
R4 R5
Router1 S1/0 <----> Router2 S1/0
Router1 S1/1 <----> Router3 S1/0
Router2 S1/1 <----> Router3 S1/1
Router2 S1/2 <----> Router4 S1/0
Router3 S1/2 <----> Router5 S1/0
对于R1:
en
conf t
no ip domain-lookup
ip classless
ip subnet-zero
hostname R1-P
service timestamps debug uptime
service timestamps log uptime
ip http server
ip cef
ip pim bidir-enable
协议无关路由的支持
int loop0
ip addr 202.98.4.1 255.255.255.255
int s1/0
ip addr 10.1.1.1 255.255.255.252
no shut
int s1/1
ip addr 10.1.1.3 255.255.255.252
no shut
exit
以上为配置接口
router ospf 100
log-adjacency-changes
日志方式显示邻接关系的变化
redistribute connected subnets
发布直连网段
redistribute static subnets
发布静态网段
network 10.1.1.1 0.0.0.0 area 0
net 10.1.1.3 0.0.0.0 area 0
exit
int s1/0
ip ospf cost 20
tag-switching mtu 1500
启用标签交换,且最大的传输单元为1500字节
tag-switching ip
no shut
int s1/1
ip ospf cost 20
tag-switching mtu 1500
tag-switching ip
no shut
exi
对于R2:
en
conf t
no ip domain-lookup
ip classless
ip subnet-zero
hostname R2-PE1
service timestamps debug uptime
service timestamps log uptime
ip http server
ip vrf ***a
配置vrf名字为***a
rd 1:100
route-target export 200:1
route-target import 200:1
exi
以上为配置***
int loop0
ip addr 202.98.4.2 255.255.255.255
int s1/0
ip vrf forwarding ***a
接口加入名为***a的vrf,其他接口不用加入***a,因为只有此口连接p
路由
ip addr 10.1.1.2 255.255.255.252
tag-switching ip
no shut
exit
int s1/1
ip addr 10.1.1.15 255.255.255.252
tag-switching ip
no shut
int s1/2
ip addr 172.16.1.1 255.255.255.242
tag-switching ip
no shut
router ospf 100
log-adjacency-changes
redistribute connected metric-type 1 subnets
redistribute static metric-type 1 subnets
net 10.1.1.0 0.0.0.255 area 0
net 202.98.4.0 0.0.0.255 area 0
exit
router bgp 100
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 202.98.4.2 remote-as 100
neighbor 202.98.4.2 update-source loopback0
neighbor 202.98.4.2 version 4
neighbor 202.98.4.2 activate
address-family ipv4 vrf ***a
redistribute connected
redistribute static
no auto-summary
no synchronization
exit-address-family
exi
ip route vrf ***a 192.168.3.0 255.255.255.0 172.16.1.2
end
. . . . . . . . . . . . . . .
未完待续. . . . . . . . . . . . . . . .
该实验之前有诸多不懂之处,ospf bgp ,视频上的命令内容我觉得有写地方有问题,实验也没有真是的做,只是说了命令.
而且近来我由于公司的某些我无能为力的原因,让我心情甚是悲哀,几近欲哭无泪,年初定下的plan A也因此要夭折,为了让他顺利10月出胎,我的plan A必须修改,我必须先把网络安全的课程看完,加完plan A的催化剂,年底进入plan A+状态.
在此,我仅为那些做事情没有道德底线的人默哀.
环境可以影响一个人的行为,但真正选择作出什么样的事情,选择做一个什么样子的人,坏境是改变不了的.正如功夫熊猫2.
所以,坏人,你可以说是环境影响的他,但真正作出什么的选择,还是他自己的选择,况且,我们所说的环境没有那么的绝.
希望每一个中华人,在面对正义与邪恶的时候,勇敢的站在正义的一方,而不是深陷恶性循环不能自拔,到头在却偏要说是环境逼迫你.
那么,在未来你因天灾人祸而缺胳膊少腿的时候,不要只是怀疑命运的不公,而要回想一下自己到底做过多少丧尽天良的ang脏勾当.
想起了一句话,天生万物以养人,人无一德以报天.
我想说:世界如此美丽,人心却甚过ang脏.
转载于:https://blog.51cto.com/wugai/667746