32122323 发表于 2016-12-27 09:14:15

华为S5700交换机详细配置

工作中很多时候需要自己动手配置公司新买的交换机,做通数据才能使用,下面给出了详细的配置步骤。登录交换机后
查看交换机的初始状态
<Quidway>sdis version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (S5700 V200R003C00SPC300)
Copyright (C) 2000-2013 HUAWEI TECH CO., LTD
Quidway S5700-48TP-SI-AC Routing Switch uptime is 60 weeks, 6 days, 0 hour, 20 minutes

CX22EMGEA 0(Master) : uptime is 60 weeks, 6 days, 0 hour, 19 minutes
256M bytes DDR Memory
32M bytes FLASH
Pcb      Version :VER C
BasicBOOTROMVersion :221 Compiled at Jun 24 2013, 17:56:55
CPLD   Version : 6
Software Version : VRP (R) Software, Version 5.130 (V200R003C00SPC300)

<Quidway>sy
dis vlan
The total number of VLANs is: 1
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------

VIDType    Ports
--------------------------------------------------------------------------------
1    commonUT:GE0/0/1(D)      GE0/0/2(D)      GE0/0/3(D)      GE0/0/4(D)
                GE0/0/5(D)      GE0/0/6(D)      GE0/0/7(D)      GE0/0/8(D)
                GE0/0/9(D)      GE0/0/10(D)   GE0/0/11(D)   GE0/0/12(D)
                GE0/0/13(D)   GE0/0/14(D)   GE0/0/15(D)   GE0/0/16(D)
                GE0/0/17(D)   GE0/0/18(D)   GE0/0/19(D)   GE0/0/20(D)
                GE0/0/21(D)   GE0/0/22(D)   GE0/0/23(D)   GE0/0/24(D)
                GE0/0/25(D)   GE0/0/26(D)   GE0/0/27(D)   GE0/0/28(D)
                GE0/0/29(D)   GE0/0/30(D)   GE0/0/31(D)   GE0/0/32(D)
                GE0/0/33(D)   GE0/0/34(D)   GE0/0/35(D)   GE0/0/36(D)
                GE0/0/37(D)   GE0/0/38(D)   GE0/0/39(D)   GE0/0/40(D)
                GE0/0/41(D)   GE0/0/42(D)   GE0/0/43(D)   GE0/0/44(D)
                GE0/0/45(D)   GE0/0/46(D)   GE0/0/47(D)   GE0/0/48(D)
                GE0/0/49(D)   GE0/0/50(D)   GE0/0/51(D)   GE0/0/52(D)

VIDStatusProperty      MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1    enabledefault       enabledisable    VLAN 0001

下面开始配置
删除vlan1
undo interface Vlanif 1
Info: This operation may take a few seconds. Please wait for a moment...succeeded.


创建交换机的网段vlan
vlan 80


进入vlan80创建接口 ip   x.x.80.x为交换机IP
interface Vlanif 80
ip address x.x.80.x 24

特权模式下 ,进入 aaa 模式,,创建了 一个 账号bier,密码为123.0
aaa

local-user bier password cipher 123.0 privilege level 3
Info: Add a new user.

认证 账号,密码登录模式
user-interface vty 0 4
authentication-mode aaa

退出保存配置
q
q
<Quidway>save
The current configuration will be written to the device.
Are you sure to continue?y


透传数据
<Quidway>sy
Enter system view, return user view with Ctrl+Z.
ip route-static 0.0.0.0 0.0.0.0 27.155.80.1 (网关)

interface GigabitEthernet 0/0/52
port link-type trunk
port trunk allow-pass vlan 80
q
q
<Quidway>save
<Quidway>telnet 127.0.0.1


新版本的交换机还是不能远程的话就开启远程命令
开启telnet远程
<Quidway>telnet server enable
<Quidway>sy
aaa
local-user bier service-type telnet
user-interface vty 0 4
protocol inbound all
authentication-mode aaa
q
q
<Quidway>save

telnet测试
<Quidway>telnet 127.0.0.1

配置完毕


页: [1]
查看完整版本: 华为S5700交换机详细配置