实训二十四 三层交换机OSPF动态路由Word文档下载推荐.docx
《实训二十四 三层交换机OSPF动态路由Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《实训二十四 三层交换机OSPF动态路由Word文档下载推荐.docx(18页珍藏版)》请在冰豆网上搜索。
交换机
VLAN
端口成员
交换机A
10
1~8
20
9~16
100
24
交换机B
30
40
101
2、交换机A与B通过得24口级联。
3、配置交换机A与B各VLAN虚拟接口得IP地址分别如下表所示:
VLAN10
VLAN20
VLAN30
VLAN40
VLAN100
VLAN101
192、168、10、1
192、168、20、1
192、168、30、1
192、168、40、1
192、168、100、1
192、168、100、2
4、PC1PC4得网络设置为:
设备
IP地址
gateway
Mask
PC1
192、168、10、101
255、255、255、0
PC2
192、168、20、101
PC3
192、168、30、101
PC4
192、168、40、101
5、验证:
●没有OSPF路由协议之前:
PC1与PC2,PC3与PC4可以互通。
PC1、PC2与PC3、PC4不通。
●配置OSPF路由协议之后:
四台PC之间都可以互通。
●若实训结果与理论相符,则本实训完成。
六、实训步骤
第一步:
交换机全部恢复出厂设置,配置交换机得VLAN信息
交换机A:
DCRS565052CTA#conf
DCRS565052CTA(Config)#vlan10
DCRS565052CTA(ConfigVlan10)#switchportinterfaceethernet0/0/18
SettheportEthernet0/0/1accessvlan10successfully
SettheportEthernet0/0/2accessvlan10successfully
SettheportEthernet0/0/3accessvlan10successfully
SettheportEthernet0/0/4accessvlan10successfully
SettheportEthernet0/0/5accessvlan10successfully
SettheportEthernet0/0/6accessvlan10successfully
SettheportEthernet0/0/7accessvlan10successfully
SettheportEthernet0/0/8accessvlan10successfully
DCRS565052CTA(ConfigVlan10)#exit
DCRS565052CTA(Config)#vlan20
DCRS565052CTA(ConfigVlan20)#switchportinterfaceethernet0/0/916
SettheportEthernet0/0/9accessvlan20successfully
SettheportEthernet0/0/10accessvlan20successfully
SettheportEthernet0/0/11accessvlan20successfully
SettheportEthernet0/0/12accessvlan20successfully
SettheportEthernet0/0/13accessvlan20successfully
SettheportEthernet0/0/14accessvlan20successfully
SettheportEthernet0/0/15accessvlan20successfully
SettheportEthernet0/0/16accessvlan20successfully
DCRS565052CTA(ConfigVlan20)#exit
DCRS565052CTA(Config)#vlan100
DCRS565052CTA(ConfigVlan100)#switchportinterfaceethernet0/0/24
SettheportEthernet0/0/24accessvlan100successfully
DCRS565052CTA(ConfigVlan100)#exit
DCRS565052CTA(Config)#
验证配置:
DCRS565052CTA#showvlan
VLANNameTypeMediaPorts
1defaultStaticENETEthernet0/0/17Ethernet0/0/18
Ethernet0/0/19Ethernet0/0/20
Ethernet0/0/21Ethernet0/0/22
Ethernet0/0/23Ethernet0/0/25
Ethernet0/0/26Ethernet0/0/27
Ethernet0/0/28
10VLAN0010StaticENETEthernet0/0/1Ethernet0/0/2
Ethernet0/0/3Ethernet0/0/4
Ethernet0/0/5Ethernet0/0/6
Ethernet0/0/7Ethernet0/0/8
20VLAN0020StaticENETEthernet0/0/9Ethernet0/0/10
Ethernet0/0/11Ethernet0/0/12
Ethernet0/0/13Ethernet0/0/14
Ethernet0/0/15Ethernet0/0/16
100VLAN0100StaticENETEthernet0/0/24
DCRS565052CTA#
交换机B:
DCRS565052CTB(Config)#vlan30
DCRS565052CTB(ConfigVlan30)#switchportinterfaceethernet0/0/18
SettheportEthernet0/0/1accessvlan30successfully
SettheportEthernet0/0/2accessvlan30successfully
SettheportEthernet0/0/3accessvlan30successfully
SettheportEthernet0/0/4accessvlan30successfully
SettheportEthernet0/0/5accessvlan30successfully
SettheportEthernet0/0/6accessvlan30successfully
SettheportEthernet0/0/7accessvlan30successfully
SettheportEthernet0/0/8accessvlan30successfully
DCRS565052CTB(ConfigVlan30)#exit
DCRS565052CTB(Config)#vlan40
DCRS565052CTB(ConfigVlan40)#switchportinterfaceethernet0/0/916
SettheportEthernet0/0/9accessvlan40successfully
SettheportEthernet0/0/10accessvlan40successfully
SettheportEthernet0/0/11accessvlan40successfully
SettheportEthernet0/0/12accessvlan40successfully
SettheportEthernet0/0/13accessvlan40successfully
SettheportEthernet0/0/14accessvlan40successfully
SettheportEthernet0/0/15accessvlan40successfully
SettheportEthernet0/0/16accessvlan40successfully
DCRS565052CTB(ConfigVlan40)#exit
DCRS565052CTB(Config)#vlan101
DCRS565052CTB(ConfigVlan101)#switchportinterfaceethernet0/0/24
SettheportEthernet0/0/24accessvlan101successfully
DCRS565052CTB(ConfigVlan101)#exit
DCRS565052CTB(Config)#
DCRS565052CTB#showvlan
Ethernet0/0/15