1. <tt id="5hhch"><source id="5hhch"></source></tt>
    1. <xmp id="5hhch"></xmp>

  2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

    <rp id="5hhch"></rp>
        <dfn id="5hhch"></dfn>

      1. 三層交換機與路由器對接上網教程

        時間:2024-07-08 17:03:47 網絡技術 我要投稿
        • 相關推薦

        三層交換機與路由器對接上網教程

          交換機作為網關,實現跨網段轉發。同時作為DHCP服務器分配IP。路由器做NAT轉換,使用戶可以上外網。下面是小編帶來的配置過程:

          1、配置連接用戶的接口和對應的VLANIF接口

          system-view

          [Huawei]vlan batch 2 3

          [Huawei]interface g0/0/2

          [Huawei-GigabitEthernet0/0/2]portlink-type access

          [Huawei-GigabitEthernet0/0/2]portdefault vlan 2

          [Huawei-GigabitEthernet0/0/2]quit

          [Huawei]int g0/0/3

          [Huawei-GigabitEthernet0/0/3]portlink-type access

          [Huawei-GigabitEthernet0/0/3]portdefault vlan 3

          [Huawei-GigabitEthernet0/0/3]q

          [Huawei]int Vlanif 2

          [Huawei-Vlanif2]ip address192.168.1.1 24

          [Huawei-Vlanif2]quit

          [Huawei]int vlanif 3

          [Huawei-Vlanif3]ip address192.168.2.1 24

          [Huawei-Vlanif3]quit

          2、配置連接路由器的接口和對應的VLANIF接口

          [Huawei]vlan 100

          [Huawei-vlan100]int g0/0/1

          [Huawei-GigabitEthernet0/0/1]portlink-type access

          [Huawei-port-group-default]portdefault vlan 100

          [Huawei-port-group-default]quit

          [Huawei]int Vlanif 100

          [Huawei-Vlanif100]ip address192.168.100.2 24

          [Huawei-Vlanif100]quit

          3、配置缺省路由(下一跳地址為路由器內網口地址)

          [Huawei]iproute-static 0.0.0.0 0.0.0.0 192.168.100.1

          4、配置DHCP服務

          [Huawei]dhcp enable

          [Huawei]

          [Huawei]int vlanif 2

          [Huawei-Vlanif2]dhcp selectinterface

          [Huawei-Vlanif2]dhcp serverdns-list 202.102.128.68 114.114.114.114

          [Huawei-Vlanif2]quit

          [Huawei]int vlanif 3

          [Huawei-Vlanif3]dhcp selectinterface

          [Huawei-Vlanif3]dhcp serverdns-list 202.102.128.68 114.114.114.114

          [Huawei-Vlanif3]quit

          路由器配置(共4步)

          1、配置連接交換機的接口對應的IP地址

          sys

          [Huawei]int g0/0/1

          [Huawei-GigabitEthernet0/0/1]ipaddress 192.168.100.1 24

          [Huawei-GigabitEthernet0/0/1]quit

          2、配置連接公網的接口對應的.IP地址

          [Huawei]int g0/0/2

          [Huawei-GigabitEthernet0/0/2]ipaddress 222.134.95.58 30

          [Huawei-GigabitEthernet0/0/2]q

          3、配置缺省路由和回程路由(路由器訪問內網段192.168.0.0,接口為連接路由器的VLANIF地址)

          [Huawei]ip route-static 0.0.0.00.0.0.0 222.134.95.57

          [Huawei]ip route-static192.168.0.0 255.255.0.0 192.168.100.2

          4、配置NAT轉換

          [Huawei]acl number 2001

          [Huawei-acl-basic-2001]rule 5permit source 192.168.0.0 0.0.255.255

          [Huawei-acl-basic-2001]quit

          [Huawei]int g0/0/2

          [Huawei-GigabitEthernet0/0/2]natoutbound 2001

          [Huawei-GigabitEthernet0/0/2]quit

        【三層交換機與路由器對接上網教程】相關文章:

        三層交換機與路由器有什么區別06-18

        思科路由器撥號上網配置教程06-07

        思科三層交換機配置08-21

        三層交換機詳細測試08-19

        三層交換機配置及命令解釋01-23

        家用路由器設置教程09-17

        華為三層交換機配置命令08-29

        fast路由器設置教程10-25

        思科三層交換機配置命令大全09-25

        思科三層交換機配置實例及命令10-24

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码

        1. <tt id="5hhch"><source id="5hhch"></source></tt>
          1. <xmp id="5hhch"></xmp>

        2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

          <rp id="5hhch"></rp>
              <dfn id="5hhch"></dfn>