《2022年2022年华为s交换机vlan设置》由会员分享,可在线阅读,更多相关《2022年2022年华为s交换机vlan设置(11页珍藏版)》请在金锄头文库上搜索。
1、华为 s5700交换机 vlan设置现有一台华为s5700 交换机 和普通 交换机 数台,以及tp-link 路由器一台。1.tp-link 路由器连接外网。2.s5700 交换机划分vlan。3.普通交换机接vlan 和 pc 端。网络拓扑图如下:配置说明:s5700 默认有 vlan1 所有端口都在vlan1 里面。vlanif1配置路由器网段ip 用于连接路由器。三层交换机要配置一条指向路由器的静态路由。路由器要配置nat 对应个 vlanip 。路由器要配置路由到各个vlan 网段。1.s5700 交换机 web管理 ip 和用户配置。使用 Console 线缆将计算机连接至交换机的C
2、onsole 口。在计算机上打开终端仿真软件,新建连接, 设置连接的端口以及通信参数。计算机终端的通信参数配置要和交换机Console 口的缺省配置保持一致,交换机Console 口的缺省配置如下:传输速率: 9600 数据位: 8 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 11 页 - - - - - - - - - 校验方式:无停止位: 1 流控方式:无按 Enter 键,直到仿真终端出现如下显示,提示用户配置验证密码。Please configure the
3、login password (6-16) Enter Password:123456789 Confirm Password:123456789 配置交换机的管理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 pioneer2015 local-user admin privilege level 15 local-user admin service-type
4、http ftp local-user admin ftp-directory flash: quit quit save 使用网线将计算机与交换机的ETH口相连 , 配置计算机上的IP。在尚未使用的IP 地址范围内选择IP 地址,如 10.255.4.50 。打开一个 Web浏览器窗口。在地址栏中输入10.255.4.50 ,即交换机 IP 地址,然后按Enter 键。系统将显示登录界面。2.s5700vlan划分和设置。console 登陆交换机,按enter 键输入密码: 123456789。设置端口的接入方式和所属的vlan system-view interfaceGigabitEt
5、hernet 0/0/1 port link-type access quit interfaceGigabitEthernet 0/0/2 port link-type access port default vlan 2 quit interfaceGigabitEthernet 0/0/3 port link-type access port default vlan 3 quit 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 11 页 - - - - - - -
6、 - - interfaceGigabitEthernet 0/0/4 port link-type access port default vlan 4 quit interfaceGigabitEthernet 0/0/5 port link-type access port default vlan 5 quit interfaceGigabitEthernet 0/0/6 port link-type access port default vlan 6 quit interfaceGigabitEthernet 0/0/7 port link-type access port def
7、ault vlan 7 quit interfaceGigabitEthernet 0/0/8 port link-type access port default vlan 8 quit interfaceGigabitEthernet 0/0/9 port link-type access port default vlan 9 quit interfaceGigabitEthernet 0/0/10 port link-type access port default vlan 10 quit interfaceGigabitEthernet 0/0/11 port link-type
8、access port default vlan 11 quit interfaceGigabitEthernet 0/0/12 port link-type access port default vlan 12 quit interfaceGigabitEthernet 0/0/13 port link-type access port default vlan 13 quit interfaceGigabitEthernet 0/0/14 port link-type access port default vlan 14 quit 名师资料总结 - - -精品资料欢迎下载 - - -
9、- - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 11 页 - - - - - - - - - interfaceGigabitEthernet 0/0/15 port link-type access port default vlan 15 quit interfaceGigabitEthernet 0/0/16 port link-type access port default vlan 16 quit interfaceGigabitEthernet 0/0/17 port link-type access port
10、 default vlan 17 quit interfaceGigabitEthernet 0/0/18 port link-type access port default vlan 18 quit interfaceGigabitEthernet 0/0/19 port link-type access port default vlan 19 quit interfaceGigabitEthernet 0/0/20 port link-type access port default vlan 20 quit interfaceGigabitEthernet 0/0/21 port l
11、ink-type access port default vlan 21 quit interfaceGigabitEthernet 0/0/22 port link-type access port default vlan 22 quit interfaceGigabitEthernet 0/0/23 port link-type access port default vlan 23 quit interfaceGigabitEthernet 0/0/24 port link-type access port default vlan 24 quit quit save reboot 添
12、加 vlan 和端口名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 11 页 - - - - - - - - - system-view vlan 2 portGigabitEthernet 0/0/2 vlan 3 portGigabitEthernet 0/0/3 vlan 4 portGigabitEthernet 0/0/4 vlan 5 portGigabitEthernet 0/0/5 vlan 6 portGigabitEthernet 0/0/6 vlan
13、 7 portGigabitEthernet 0/0/7 vlan 8 portGigabitEthernet 0/0/8 vlan 9 portGigabitEthernet 0/0/9 vlan 10 portGigabitEthernet 0/0/10 vlan 11 portGigabitEthernet 0/0/11 vlan 12 portGigabitEthernet 0/0/12 vlan 13 portGigabitEthernet 0/0/13 vlan 14 portGigabitEthernet 0/0/14 vlan 15 portGigabitEthernet 0/
14、0/15 vlan 16 portGigabitEthernet 0/0/16 vlan 17 portGigabitEthernet 0/0/17 vlan 18 portGigabitEthernet 0/0/18 vlan 19 portGigabitEthernet 0/0/19 vlan 20 portGigabitEthernet 0/0/20 vlan 21 portGigabitEthernet 0/0/21 vlan 22 portGigabitEthernet 0/0/22 vlan 23 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - -
15、 - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 11 页 - - - - - - - - - portGigabitEthernet 0/0/23 vlan 24 portGigabitEthernet 0/0/24 quit quit save 启用 dhcp system-view dhcp enable quit save 配置 vlanif接口 ip system-view interfacevlanif 1 ip address 10.255.40.30 24 quit interfacevlanif 2 ip address 10.255.2
16、.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 3 ip address 10.255.3.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 4 ip address 10.255.5.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif
17、5 ip address 10.255.6.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 6 ip address 10.255.7.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 7 ip address 10.255.8.1 24 dhcp select interface 名师资料总结 - - -精品资料欢迎下载 - - - - - - - -
18、- - - - - - - - - - 名师精心整理 - - - - - - - 第 6 页,共 11 页 - - - - - - - - - dhcp server dns-list 114.114.114.114 quit interfacevlanif 8 ip address 10.255.9.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 9 ip address 10.255.10.1 24 dhcp select interface dhcp server d
19、ns-list 114.114.114.114 quit interfacevlanif 10 ip address 10.255.11.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 11 ip address 10.255.12.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 12 ip address 10.255.13.1 24 dhcp sel
20、ect interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 13 ip address 10.255.14.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 14 ip address 10.255.15.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 15 ip addr
21、ess 10.255.16.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 16 ip address 10.255.17.1 24 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 7 页,共 11 页 - - - - - - - - - dhcp select interface dhcp server dns-list 114.114.114.114 quit
22、 interfacevlanif 17 ip address 10.255.18.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 18 ip address 10.255.19.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit interfacevlanif 19 ip address 10.255.20.1 24 dhcp select interface dhcp server dn
23、s-list 114.114.114.114 quit interfacevlanif 20 ip address 10.255.21.1 24 dhcp select interface dhcp server dns-list 114.114.114.114 quit quit save 配置静态路由到路由器system-view ip route-static 0.0.0.0 0.0.0.0 10.255.40.1 quit save 3. 路由器设置。用默认 ip192.168.1.1 用户名 admin密码 admin 登陆路由器。选择接口设置 -wan 口设置,根据自己的情况选择联
24、网方式。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 8 页,共 11 页 - - - - - - - - - 选择接口设置 -lan 口设置,设置ip 为 10.255.40.1 掩码 255.255.255.0 。选择接口设置 -lan 口设置 -dhcp 服务,启用dhcp。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 9 页,共 11 页 - - - - - -
25、 - - - 选择传输控制 -转发规则 -多网段 NAT ,网段地址设置各个vlan 配置的 ip。选择传输控制 -路由设置,新增路由到各个vlan 口,下一跳地址为vlan1 ip。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 10 页,共 11 页 - - - - - - - - - 这些设置完成后,各个vlan 之间能平通,各vlan 能平通 vlan1,各 vlan 能 ping 通路由器,各 vlan 能 ping 通 。vlan 划分完成。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 11 页,共 11 页 - - - - - - - - -