日韩免费精品视频,91精品视频在线免费观看,91香焦国产线观看看免费,中文国产成人精品久久下载

熱門服務(wù)中心 English

返回頂部

產(chǎn)品新聞

華為s5700交換機(jī)vlan配置

日期:2015-09-02 點擊:     關(guān)鍵詞:華為s5700交換機(jī),華為s5700交換機(jī)配置

2015-09-02

  華為s5700交換機(jī)vlan配置方法:現(xiàn)有一臺華為s5700交換機(jī)和普通交換機(jī)數(shù)臺,以及tp-link路由器一臺。

  1.tp-link路由器連接外網(wǎng)。

  2.s5700交換機(jī)劃分vlan。

  3.普通交換機(jī)接vlan和pc端。

  網(wǎng)絡(luò)拓?fù)鋱D如下:
        網(wǎng)絡(luò)拓?fù)鋱D

  配置說明:

  s5700默認(rèn)有vlan1所有端口都在vlan1里面。

  vlanif1配置路由器網(wǎng)段ip用于連接路由器。

  三層交換機(jī)要配置一條指向路由器的靜態(tài)路由。

  路由器要配置nat對應(yīng)個vlan ip。

  路由器要配置路由到各個vlan網(wǎng)段。

  1.s5700交換機(jī)web管理ip和用戶配置。

  使用Console線纜將計算機(jī)連接至交換機(jī)的Console口。

  在計算機(jī)上打開終端仿真軟件,新建連接,設(shè)置連接的端口以及通信參數(shù)。計算機(jī)終端的通信參數(shù)配置要和交換機(jī)Console口的缺省配置保持一致,交換機(jī)Console口的缺省配置如下:

  傳輸速率:9600

  數(shù)據(jù)位:8

  校驗方式:無

  停止位:1

  流控方式:無

  按Enter鍵,直到仿真終端出現(xiàn)如下顯示,提示用戶配置驗證密碼。

  Please configure the login password (6-16)

  Enter Password:123456789

  Confirm Password:123456789

  配置交換機(jī)的管理IP。

  system-view

  interface meth 0/0/1

  ip address 10.255.4.100 24

  quit

  quit

  save

  配置web登陸用戶信息。

  system-view

  aaa

  local-user admin password cipher pioneer@2015

  local-user admin privilege level 15

  local-user admin service-type http ftp

  local-user admin ftp-directory flash:

  quit

  quit

  save

  使用網(wǎng)線將計算機(jī)與交換機(jī)的ETH口相連,配置計算機(jī)上的IP。在尚未使用的IP地址范圍內(nèi)選擇IP地址,如10.255.4.50。

  打開一個Web瀏覽器窗口。在地址欄中輸入10.255.4.50,即交換機(jī)IP地址,然后按Enter鍵。系統(tǒng)將顯示登錄界面。

  2.s5700vlan劃分和設(shè)置。

  console登陸交換機(jī),按enter鍵輸入密碼:123456789。

  設(shè)置端口的接入方式和所屬的vlan

  system-view

  interface GigabitEthernet 0/0/1

  port link-type access

  quit

  interface GigabitEthernet 0/0/2

  port link-type access

  port default vlan 2

  quit

  interface GigabitEthernet 0/0/3

  port link-type access

  port default vlan 3

  quit

  interface GigabitEthernet 0/0/4

  port link-type access

  port default vlan 4

  quit

  interface GigabitEthernet 0/0/5

  port link-type access

  port default vlan 5

  quit

  interface GigabitEthernet 0/0/6

  port link-type access

  port default vlan 6

  quit

  interface GigabitEthernet 0/0/7

  port link-type access

  port default vlan 7

  quit

  interface GigabitEthernet 0/0/8

  port link-type access

  port default vlan 8

  quit

  interface GigabitEthernet 0/0/9

  port link-type access

  port default vlan 9

  quit

  interface GigabitEthernet 0/0/10

  port link-type access

  port default vlan 10

  quit

  interface GigabitEthernet 0/0/11

  port link-type access

  port default vlan 11

  quit

  interface GigabitEthernet 0/0/12

  port link-type access

  port default vlan 12

  quit

  interface GigabitEthernet 0/0/13

  port link-type access

  port default vlan 13

  quit

  interface GigabitEthernet 0/0/14

  port link-type access

  port default vlan 14

  quit

  interface GigabitEthernet 0/0/15

  port link-type access

  port default vlan 15

  quit

  interface GigabitEthernet 0/0/16

  port link-type access

  port default vlan 16

  quit

  interface GigabitEthernet 0/0/17

  port link-type access

  port default vlan 17

  quit

  interface GigabitEthernet 0/0/18

  port link-type access

  port default vlan 18

  quit

  interface GigabitEthernet 0/0/19

  port link-type access

  port default vlan 19

  quit

  interface GigabitEthernet 0/0/20

  port link-type access

  port default vlan 20

  quit

  interface GigabitEthernet 0/0/21

  port link-type access

  port default vlan 21

  quit

  interface GigabitEthernet 0/0/22

  port link-type access

  port default vlan 22

  quit

  interface GigabitEthernet 0/0/23

  port link-type access

  port default vlan 23

  quit

  interface GigabitEthernet 0/0/24

  port link-type access

  port default vlan 24

  quit

  quit

  save

  reboot

  添加vlan和端口

  system-view

  vlan 2

  port GigabitEthernet 0/0/2

  vlan 3

  port GigabitEthernet 0/0/3

  vlan 4

  port GigabitEthernet 0/0/4

  vlan 5

  port GigabitEthernet 0/0/5

  vlan 6

  port GigabitEthernet 0/0/6

  vlan 7

  port GigabitEthernet 0/0/7

  vlan 8

  port GigabitEthernet 0/0/8

  vlan 9

  port GigabitEthernet 0/0/9

  vlan 10

  port GigabitEthernet 0/0/10

  vlan 11

  port GigabitEthernet 0/0/11

  vlan 12

  port GigabitEthernet 0/0/12

  vlan 13

  port GigabitEthernet 0/0/13

  vlan 14

  port GigabitEthernet 0/0/14

  vlan 15

  port GigabitEthernet 0/0/15

  vlan 16

  port GigabitEthernet 0/0/16

  vlan 17

  port GigabitEthernet 0/0/17

  vlan 18

  port GigabitEthernet 0/0/18

  vlan 19

  port GigabitEthernet 0/0/19

  vlan 20

  port GigabitEthernet 0/0/20

  vlan 21

  port GigabitEthernet 0/0/21

  vlan 22

  port GigabitEthernet 0/0/22

  vlan 23

  port GigabitEthernet 0/0/23

  vlan 24

  port GigabitEthernet 0/0/24

  quit

  quit

  save

  啟用dhcp

  system-view

  dhcp enable

  quit

  save

  配置vlanif接口ip

  system-view

  interface vlanif 1

  ip address 10.255.40.30 24

  quit

  interface vlanif 2

  ip address 10.255.2.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 3

  ip address 10.255.3.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 4

  ip address 10.255.5.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 5

  ip address 10.255.6.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 6

  ip address 10.255.7.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 7

  ip address 10.255.8.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 8

  ip address 10.255.9.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 9

  ip address 10.255.10.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 10

  ip address 10.255.11.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 11

  ip address 10.255.12.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 12

  ip address 10.255.13.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 13

  ip address 10.255.14.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 14

  ip address 10.255.15.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 15

  ip address 10.255.16.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 16

  ip address 10.255.17.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 17

  ip address 10.255.18.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 18

  ip address 10.255.19.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 19

  ip address 10.255.20.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  interface vlanif 20

  ip address 10.255.21.1 24

  dhcp select interface

  dhcp server dns-list 114.114.114.114

  quit

  quit

  save

  配置靜態(tài)路由到路由器

  system-view

  ip route-static 0.0.0.0 0.0.0.0 10.255.40.1

  quit

  save

  3.路由器設(shè)置。

  用默認(rèn)ip192.168.1.1 用戶名admin密碼admin登陸路由器。

登錄界面

  選擇接口設(shè)置--wan口設(shè)置,根據(jù)自己的情況選擇聯(lián)網(wǎng)方式。

選擇聯(lián)網(wǎng)方式

  選擇接口設(shè)置--lan口設(shè)置,設(shè)置ip為10.255.40.1掩碼255.255.255.0 。

設(shè)置IP及子網(wǎng)掩碼

  選擇接口設(shè)置--lan口設(shè)置--dhcp服務(wù),啟用dhcp。

啟用dhcp服務(wù)

  選擇傳輸控制--轉(zhuǎn)發(fā)規(guī)則--多網(wǎng)段NAT,網(wǎng)段地址設(shè)置各個vlan配置的ip。

設(shè)置各個vlan配置的IP

  選擇傳輸控制--路由設(shè)置,新增路由到各個vlan口,下一跳地址為vlan1 ip。

路由設(shè)置

  這些設(shè)置完成后,各個vlan之間能平通,各vlan能平通vlan1,各vlan能ping通路由器,各vlan能ping通www.baidu.com 。 vlan劃分完成。

400-0806-056