通信人家园
标题: 华为交换机配置示例 [查看完整版帖子] [打印本页]
时间: 2017-4-20 17:08
作者: zg8817
标题: 华为交换机配置示例
华为S2000交换机配置示例
硬件构成:
2403H一台、光模板一块(位于1/1口)
配置要求:
交换机名称:bangongwang
通过上行端口1/1,同时通过VLAN 300、400、500、600,
管理VLAN 10
管理IP:10.0.0.88 网关:10.0.0.1 子网掩码:255.255.255.0
Eth 0/1 对应VLAN300 (直接接用户端电脑)
Eth 0/2 对应VLAN400 (直接接用户端电脑)
Eth 0/3 对应VLAN 500600 (级联一台交换机)
交换机远程控制密码为:admin1234
配置过程:
通过配置连接线与电脑连接,创建超级终端,还原默认值,打开超级终端
<Quidway>sys
[Quidway]sysname bangongwang 交换机命名
[bangongwang]vlan 10 建立VLAN
[bangongwang-vlan10]vlan 300
[bangongwang-vlan300]vlan 400
[bangongwang-vlan400]vlan 500
[bangongwang-vlan500]vlan 600
[bangongwang-vlan600]quit
[bangongwang]
[bangongwang]inter vlan 10 建立管理地址、路由
[bangongwang-Vlan-interface10]ip add10.0.0.88 255.255.255.0
[bangongwang-Vlan-interface10]quit
[bangongwang]ip rout 0.0.0.0 0.0.0.010.0.0.1
[bangongwang]
[bangongwang]inter eth 1/1 配置上行口数据
[bangongwang-Ethernet1/1]port link trunk
[bangongwang-Ethernet1/1]port trunk pervlan 10 300 400 500 600
[bangongwang-Ethernet1/1]undo po trunk pervlan 1
[bangongwang-Ethernet1/1]quit
[bangongwang]
[bangongwang]inter eth 0/1 配置1-4口数据
[bangongwang-Ethernet0/1]port access vlan300
[bangongwang-Ethernet0/1]inter eth 0/2
[bangongwang-Ethernet0/2]port access vlan400
[bangongwang-Ethernet0/2]inter eth 0/3
[bangongwang-Ethernet0/3]port link trunk
[bangongwang-Ethernet0/3]port trunk pervlan 500 600
[bangongwang-Ethernet0/3]undo port trunkper vlan 1
[bangongwang-Ethernet0/3]quit
[bangongwang]
[bangongwang]super pass cip admin1234 设置登陆密码
[bangongwang]user vty 0 4
[bangongwang-ui-vty0-4]set auth pass cipadmin1234
[bangongwang-ui-vty0-4]quit
[bangongwang]
[bangongwang]quit
<bangongwang>save 保存配置
This will save the configuration in theflash memory.
The switch configurations will be writtento flash.
Are you sure?[Y/N]:Y
通信人家园 (https://www.txrjy.com/) |
Powered by C114 |