Mstp+Vrrp 实验资料讲解.docx
《Mstp+Vrrp 实验资料讲解.docx》由会员分享,可在线阅读,更多相关《Mstp+Vrrp 实验资料讲解.docx(12页珍藏版)》请在冰豆网上搜索。
Mstp+Vrrp实验资料讲解
Mstp+Vrrp实验
Mstp+Vrrp双核心网络架构:
在这个双核心的网络架构中所应用到的技术:
1、Mstp,在交换机层开启Mstp,创建实例instance一个实例就是一棵树,使用Mstp来实现数据分流和备份链路;
2、Mstp+VrrpVrrp是虚拟路由冗余协议,Vrrp下的IP是虚拟网关,而VLAN下的地址是虚拟路由器的物理地址,用户所获取到的网关使Vrrp下的虚拟网关地址;
3、Dhcp动态分配地址,设置在两台核心中,两个地址池要分别排除对面的地址;
4、浮动路由,在双核心出接口写默认,一条主,一条加管理距离;
5、端口聚合,在双核心之间用若干条线互连,把这些端口加入到聚合端口,打trunk,来作为Vrrp的心跳线;
6、ACL访问控制列表、NAT网络地址转换,设置在出口路由器中,允许哪些用户上网,创建NAT地址转换池,允许上网的网段调入overload即可。
接下来是我在做这个实验的过程:
首先是写好配置模板,写模板的好处是,理清思路,配置有条理,出了问题先看看模板有没有问题,缺少什么等
接入层交换机的配置模板:
conft
spanning-tree
spanning-treemodemstp(开启多生成树Mstp)
vlan2
vlan3
vlan4
vlan5
vlan6
vlan7
exit
intrangef0/1-5
spanning-treeportfast(速端口,用户断网和恢复网路切换速度快)
spanning-treebpduguardenable(防自环)
swaccvlan2
intrangef0/6-10
spanning-treeportfast
spanning-treebpduguardenable
swaccvlan3
intrangef0/11-12
spanning-treeportfast
spanning-treebpduguardenable
swaccvlan4
intrangef0/13-14
spanning-treeportfast
spanning-treebpduguardenable
swaccvlan5
intrangef0/15-16
spanning-treeportfast
spanning-treebpduguardenable
swaccvlan6
intrangef0/17-18
spanning-treeportfast
spanning-treebpduguardenable
swaccvlan7
exit
intgi0/25(上联口)
swmodetrunk
intgi0/26
swmodetrunk
exit
spanning-treemstconf(创建多生成树实例)
instance1vlan3,5,7
instance2vlan2,4,6
exit
write
核心1配置模板:
conft
iprouting
intgi0/25(下联口trunk)
swmodetrunk
exit
spanning-tree
spanning-treemodemstp(开启Mstp)
vlan2
vlan3
vlan4
vlan5
vlan6
vlan7
exit
intvlan2
ipadd10.0.2.253255.255.255.0(虚拟路由器的物理地址)
vrrp2ip10.0.2.254(用户的虚拟网关,用户实际获取到的网关)
exit
intvlan3
ipadd10.0.3.253255.255.255.0
vrrp3ip10.0.3.254
vrrp3pr110(Vrrp虚拟路由器的优先级,默认100,0—255,255最高)
exit
intvlan4
ipadd10.0.4.253255.255.255.0
vrrp4ip10.0.4.254
exit
intvlan5
ipadd10.0.5.253255.255.255.0
vrrp5ip10.0.5.254
vrrp5pr110
exit
intvlan6
ipadd10.0.6.253255.255.255.0
vrrp6ip10.0.6.254
exit
intvlan7
ipadd10.0.7.253255.255.255.0
vrrp7ip10.0.7.254
vrrp7pr110
exit
spanning-treemstconf(创建Mstpinstance实例,修改实例优先级)
instance1vlan3,5,7
instance2vlan2,4,6
exit
spanning-treemst1p4096
spanning-treemst2p8192
servicedhcp(开启并创建Dhcp地址池)
ipdhcppoolvlan2
network10.0.2.0255.255.255.0
dns8.8.8.8
default-router10.0.2.254
exit
ipdhcpex10.0.2.10010.0.2.254
ipdhcppoolvlan3
network10.0.3.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.3.254
exit
ipdhcpex10.0.3.10010.0.3.254
ipdhcppoolvlan4
network10.0.4.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.4.254
exit
ipdhcpex10.0.4.10010.0.4.254
ipdhcppoolvlan5
network10.0.5.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.5.254
exit
ipdhcpex10.0.5.10010.0.5.254
ipdhcppoolvlan6
network10.0.6.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.6.254
exit
ipdhcpex10.0.6.10010.0.6.254
ipdhcppoolvlan7
network10.0.7.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.7.254
exit
ipdhcpex10.0.7.10010.0.7.254
intrangef0/1-2(创建端口聚合)
port-group1
intaggregateport1(聚合端口1打trunk)
swmodetrunk
exit
intf0/3
spanning-treebpdufilterenable(不向上一层发送BPDU桥协议数据单元报文)
exit
intf0/3
nosw
ipadd10.0.8.1255.255.255.252
noshut
iproute0.0.0.00.0.0.010.0.8.2
iproute0.0.0.00.0.0.010.0.8.6100(浮动路由)
exit
write
核心2配置模板:
conft
iprouting(下联口trunk)
intgi0/25
swmodetrunk
exit
spanning-tree
spanning-treemodemstp
vlan2
vlan3
vlan4
vlan5
vlan6
vlan7
exit
intvlan2
ipadd10.0.2.252255.255.255.0
vrrp2ip10.0.2.254
vrrp2p110
exit
intvlan3
ipadd10.0.3.252255.255.255.0
vrrp3ip10.0.3.254
exit
intvlan4
ipadd10.0.4.252255.255.255.0
vrrp4ip10.0.4.254
vrrp4p110
exit
intvlan5
ipadd10.0.5.252255.255.255.0
vrrp5ip10.0.5.254
exit
intvlan6
ipadd10.0.6.252255.255.255.0
vrrp6ip10.0.6.254
vrrp6p110
exit
intvlan7
ipadd10.0.7.252255.255.255.0
vrrp7ip10.0.7.254
exit
spanning-treemstconf
instance1vlan3,5,7
instance2vlan2,4,6
exit
spanning-treemst1p8192
spanning-treemst2p4096
servicedhcp
ipdhcppoolvlan2
network10.0.2.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.2.254
exit
ipdhcpex10.0.2.110.0.2.99
ipdhcpex10.0.2.25210.0.2.254
ipdhcppoolvlan3
network10.0.3.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.3.254
exit
ipdhcpex10.0.3.110.0.3.99
ipdhcpex10.0.3.25210.0.3.254
ipdhcppoolvlan4
network10.0.4.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.3.254
exit
ipdhcpex10.0.4.110.0.4.99
ipdhcpex10.0.4.25210.0.4.254
ipdhcppoolvlan5
network10.0.5.0255.255.255.0
lease0120
dns8.8.8.8
default-router10.0.5.254
exit
ipdhcpex10.0.5.110.0.5.99
ipdhcpex10.0.5.25210.0.5.254
ipdhcppoolvlan