电脑网络实验实验四跨交换机实现vlan.pptVIP

  • 3
  • 0
  • 约4.53千字
  • 约 20页
  • 2018-08-10 发布于未知
  • 举报

电脑网络实验实验四跨交换机实现vlan.ppt

实验七 静态路由 实验拓扑 实验名称:静态路由 实验目的:掌握通过静态路由方式实现网络的连通性。 实验步骤 步骤1:在路由器1上配置接口的IP地址 Red-Giant(config)#hostname RA !配置路由器主机名 RA(config)#interface fastethernet 1/0 RA(config-if)#ip address 172.16.1.1 255.255.255.0 RA(config-if)#no shutdown RA(config)#interface serial 1/2 RA(config-if)#ip address 172.16.2.1 255.255.255.0 RA(config-if)#no shutdown 验证测试: RA#show ip interface brief 实验步骤 步骤2:在路由器2上配置接口的IP地址和串口上的时钟频率 Red-Giant(config)#hostname RB !配置路由器主机名 RB(config)#interface fastethernet 1/0 RB(config-if)#ip address 172.16.3.2 255.255.255.0 RB(config-if)#no shutdown RB(config)#interface serial 1/2 RB(config-if)#ip address 172.16.2.2 255.255.255.0 RB(config-if)#clock rate 64000 RB(config-if)#no shutdown 验证测试: RB#show ip interface brief 实验步骤 步骤3:在路由器1上配置静态路由 RA(config)#ip router 172.16.3.0 255.255.255.0 172.16.2.2 验证测试: RA#show ip route 步骤4:在路由器2上配置静态路由 RB(config)#ip router 172.16.1.0 255.255.255.0 172.16.2.1 验证测试: RB#show ip route 步骤5:测试网络的互连互通性 C:\ping 172.16.3.22 !从PC1 ping PC2 结果: C:\ping 172.16.1.11 !从PC2 ping PC1 结果: 动态路由rip 前两步相同 RA(config)# router rip RA(config-router)#network 172.16.0.0 RA# show ip route RB(config)# router rip RB(config-router)#network 172.16.0.0 RB# show ip route ospf RA(config)#router ospf 1 RA(config-router)# #network 172.16.1.1 0.0.0.0 area 0 RA(config-router)# #network 172.16.2.1 0.0.0.0 area 0 # sh ip ospf neighbor RB(config)#router ospf 1 RB(config-router)# #network 172.16.2.2 0.0.0.0 area 0 RB(config-router)# #network 172.16.3.2 0.0.0.0 area 0 # sh ip ospf neighbor 实验四跨交换机实现vlan 步骤1: 在交换机switchA上创建Vlan 10, 将0/5端口划分到vlan 10中。 switchA# configure terminal switchA(conf)# vlan 10 switchA(conf-vlan)name sales switchA(config-vlan)#exit switchA(config)#interface fa 0/5 switchA(config0if)#switchport access vlan 10 (验证测试:验证已创建了Vlan 10,并将0/5端口划分到vlan 10中。 switchA# show vlan id 10) 步骤2: 在交换机switchA上创建Vlan 20, 将0/15端口划分到vlan 20中。 switchA# configure terminal switchA(conf)# vlan 20 switchA(conf-vlan)name technical switchA(config-vlan)#exit sw

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档