zoukankan      html  css  js  c++  java
  • 实验三

    PC端配置:配置ip地址 配置网关

    交换机(左)配置:①创建VLAN

                                                    system-view

                                                    vlan 10

                                                    vlan 20

    ②配置PC端接口

                                                    interface gi 1/0/1

                                                    port link-type access

                                                    port access vlan 10

                                                    interface gi 1/0/2

                                                    port link-type access

                                                    port access vlan 10

                                                    interface gi 1/0/3

                                                    port link-type access

                                                    port access vlan 20

                                                     interface gi 1/0/4

                                                    port link-type access

                                                    port access vlan 20

     

    ③配置交换机接口

                                                    interface gi 1/0/48

                                                    port link-type trunk

                                                    port trunk permit vlan 10 20

    交换机(右)配置:①创建VLAN

                                                    system-view

                                                    vlan 10

                                                    vlan 20

    ②配置PC端接口:              

                                                    interface gi 1/0/1

                                                    port link-type access

                                                    port access vlan 10

                                                     interface gi 1/0/2

                                                    port link-type access

                                                    port access vlan 20

                                                 

    ③配置交换机接口

                                                    interface gi 1/0/48

                                                    port link-type trunk

                                                    port trunk permit vlan 10 20

    交换机(中间)配置:                  

                                                    interface gi 1/0/1

                                                    port link-type trunk

                                                    port trunk permit vlan 10 20

                                                   interface gi 1/0/2

                                                    port link-type trunk

                                                    port trunk permit vlan 10 20

                                                    interface gi 1/0/48

                                                    port link-type trunk

                                                    port trunk permit vlan 10 20

    路由器配置:                            

                                                   interface gi 0/0.10

                                                   vlan-type dotlq vid 10

                                                   ip add 192.168.10.254 24

                                                   interface gi 0/0.20

                                                   vlan-type dotlq vid 20

                                                   ip add 192.168.20.254 24

  • 相关阅读:
    LeetCode数据库178
    LeetCode数据库181
    LeetCode数据库177
    LeetCode数据库176
    HNOI2003 消防局的设立
    HNOI2001 产品加工
    Luogu P1020 关路灯
    NOIP2004 虫食算
    SP2713 GSS4-Can you answer these queries IV
    APIO2008 免费道路
  • 原文地址:https://www.cnblogs.com/mreleshaw/p/10916626.html
Copyright © 2011-2022 走看看