企业内——局域网——内网排错思路及方法

发布时间:2020-07-05 04:01:08 作者:me王飛
来源:网络 阅读:1062


企业内——局域网——内网排错思路及方法


首先遇到局域网链路故障从外部设备进行排错:
PC机——>线路——>交换机
进入PC机界面
PC0

企业内——局域网——内网排错思路及方法


PC1

企业内——局域网——内网排错思路及方法



经过检查发现子网划分不对:改为相同子网网段。
子网掩码都改为:255.255.255.0



下面开始检查交换机
switch0

企业内——局域网——内网排错思路及方法

在用户界面查看当前运行配置:


SW1#show running-config                                     


spanning-tree mode pvst
!
interface FastEthernet0/1
!
interface FastEthernet0/23
 switchport trunk allowed vlan 1-9,11-1005
 switchport mode trunk
!


经总结以上配置得出以下信息:
连接计算机的1口未配置vlan 10 access 模式
23端口未允许vlan10通过


经过配置:
interface FastEthernet0/1
 switchport access vlan 10
 switchport mode access


interface FastEthernet0/23
 switchport mode trunk


继续查看下一个
switch 1

企业内——局域网——内网排错思路及方法


spanning-tree mode rapid-pvst
!
interface FastEthernet0/22
 channel-protocol lacp
 channel-group 1 mode passive
!
interface FastEthernet0/23
 switchport trunk allowed vlan 1-9,11-1005
!
interface FastEthernet0/24
 channel-protocol lacp
 channel-group 1 mode passive


interface Port-channel 1
 spanning-tree guard root


经总结以上配置得出以下信息:
生成树模式为pvst
连接 switch 0 的23端口trunk模式不让 vlan 10通过
端口22/24运行聚合链路模式 lacp  端口模式为被动
接口端口通道1 生成树根保护
此交换机配置根保护,题目要求 switch 2 作为根交换机


为了不做重复性工作我决定先对switch 2 进行查看再做配置


switch 2

企业内——局域网——内网排错思路及方法


spanning-tree mode pvst
spanning-tree vlan 10 priority 0
!
interface FastEthernet0/1
 shutdown


interface FastEthernet0/22
channel-protocol pagp
 channel-group 2 mode auto
 switchport mode trunk


interface FastEthernet0/24
channel-protocol pagp
 channel-group 2 mode auto
 switchport mode trunk


interface Port-channel 2
 switchport mode trunk


经总结以上配置得出以下信息:
没有VLAN 10
生成树模式 PVST
vlan 10 的优先级为 0 (数越小优先级越高)
连接PC端口1被关闭
22/24端口配置为聚合链路PAGP(思科专有)模式
通道组 2 自动模式  开启 trunk 模式
接口端口通道2设置为trunk 模式


经对比switch 1 和 switch 2 得出以下问题:
一、22/24聚合链路模式不同导致数据无法正常传输;
二、要求switch3作为根交换机但是switch2设置了根保护



下面开始配置:
首先:
一、将switch3的端口1打开
二、将switch2的根保护关闭
三、通道组设置为同通道组,同时改为一组
四、将聚合链路都设置为trunk并开启


更改后配置:
switch 1
spanning-tree mode pvst
!
interface FastEthernet0/22
 channel-protocol lacp
 channel-group 1 mode active
 switchport mode trunk
!

interface FastEthernet0/23
!
interface FastEthernet0/24
 channel-protocol lacp
 channel-group 1 mode active
 switchport mode trunk

!


interface Port-channel 1
 switchport mode trunk

!


switch3
spanning-tree mode pvst
spanning-tree vlan 10 priority 0
!
interface FastEthernet0/1
 switchport access vlan 10
 switchport mode access


interface FastEthernet0/22
 channel-protocol lacp
 channel-group 1 mode active
 switchport mode trunk

!
interface FastEthernet0/23
!
interface FastEthernet0/24
 channel-protocol lacp
 channel-group 1 mode active
 switchport mode trunk


interface Port-channel 1
 switchport mode trunk


========================================================================
连接测试:

企业内——局域网——内网排错思路及方法

根测试
switch3
SW3#show spanning-tree
VLAN0010
  Spanning tree enabled protocol ieee
  Root ID    Priority    10
             Address     0009.7C27.2B0A
             This bridge is the root
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec


  Bridge ID  Priority    10  (priority 0 sys-id-ext 10)
             Address     0009.7C27.2B0A
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20


Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1            Desg FWD 19        128.1    P2p
Fa0/24           Desg FWD 19        128.24   P2p
Fa0/22           Desg FWD 19        128.22   P2p
Po1              Desg FWD 9         128.28   Shr


显示这个交换机是根(switch3)
完成。



推荐阅读:
  1. 企业内网信息安全实践-记ChinaUnix技术交流
  2. Office 365 排错:Exchange Online Active Sync异常排错方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

排错 思路 局域网

上一篇:使用xmodem恢复cisco3550交换机的ios

下一篇:如何區分A段與B段架構師的差異性和互補性

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》