互换、路由与防火墙手记(1)
华为s3900初始化基础配置以及远程telnet管理配置
Xshell 4 (Build 0138)
Copyright (c) 2002-2014 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
Xshell:\>
Connecting to COM3...
Connected.
通过输入命令后加?可以输出更多帮助
输入一个不完整的命令并按TAB键,就可以补全该命令
[Quidway]interface ?
Aux Aux interface
Ethernet Ethernet interface
GigabitEthernet GigabitEthernet interface
LoopBack LoopBack interface
NULL NULL interface
Vlan-interface VLAN interface
显示当前配置
<Quidway>disp curr confi
#
sysname Quidway
#
radius scheme system
#
domain system
#
vlan 1
#
undo irf-fabric authentication-mode
#
voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000
#
user-interface aux 0 7
user-interface vty 0 4
#
return
vlan 1是自动设置的vlan
创建vlan 20
<Quidway>sy
System View: return to User View with Ctrl+Z.
[Quidway]vlan 20
配置vlan 20
指定交换机ip
[Quidway]interface vlan-interface 20
[Quidway-Vlan-interface20]ip address 192.168.1.254 255.255.255.0
[Quidway-Vlan-interface20]quit
[Quidway]save
The configuration will be written to the device.
Are you sure?[Y/N]y
Please input the file name(*.cfg)(To leave the existing filename
unchanged press the enter key):
Now saving current configuration to the device.
Saving configuration. Please wait...
..
Unit1 save configuration flash:/vrpcfg.cfg successfully
%Apr 2 00:01:00:492 2000 Quidway CFM/3/CFM_LOG:- 1 -Unit1 saved configuration successfully.
[Quidway]disp curr confi
#
sysname Quidway
#
radius scheme system
#
domain system
#
vlan 1
#
vlan 20
#
undo irf-fabric authentication-mode
#
voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000
#
user-interface aux 0 7
user-interface vty 0 4
#
return
<Quidway>sy
System View: return to User View with Ctrl+Z.
显示vlan 20配置情况
[Quidway]disp interface Vlan-interface 20
Vlan-interface20 current state :DOWN
Line protocol current state :DOWN
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000f-e2d3-9fee
Internet Address is 192.168.1.254/24 Primary
Description : Vlan-interface20 Interface
The Maximum Transmit Unit is 1500
[Quidway]disp curr conf
#
sysname Quidway
#
radius scheme system
#
domain system
#
vlan 1
#
vlan 20
#
undo irf-fabric authentication-mode
#
management-vlan 20
#
voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.253 preference 60
#
user-interface aux 0 7
user-interface vty 0 4
#
return
本博客所有内容是原创,如果转载请注明来源
http://blog.****.net/myhaspl/
显示默认vlan及下面的端口名称
[Quidway-Ethernet1/0/1]disp vlan 1
VLAN ID: 1
VLAN Type: static
Route Interface: not configured
Description: VLAN 0001
Name: VLAN 0001
Tagged Ports: none
Untagged Ports:
Ethernet1/0/1 Ethernet1/0/2 Ethernet1/0/3
Ethernet1/0/4 Ethernet1/0/5 Ethernet1/0/6
Ethernet1/0/7 Ethernet1/0/8 Ethernet1/0/9
Ethernet1/0/10 Ethernet1/0/11 Ethernet1/0/12
Ethernet1/0/13 Ethernet1/0/14 Ethernet1/0/15
Ethernet1/0/16 Ethernet1/0/17 Ethernet1/0/18
Ethernet1/0/19 Ethernet1/0/20 Ethernet1/0/21
Ethernet1/0/22 Ethernet1/0/23 Ethernet1/0/24
GigabitEthernet1/1/1 GigabitEthernet1/1/2 GigabitEthernet1/1/3
GigabitEthernet1/1/4
配置vlan20的端口号
[Quidway-vlan20]port Ethernet 1/0/1
[Quidway-vlan20]port Ethernet 1/0/2
[Quidway-vlan20]port Ethernet 1/0/3
[Quidway-vlan20]port Ethernet 1/0/4
[Quidway-vlan20]port Ethernet 1/0/5
[Quidway-vlan20]port Ethernet 1/0/6
测试IP配置成功与否
[Quidway]ping 192.168.1.1
PING 192.168.1.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=29 time=14 ms
Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=29 time=3 ms
Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=29 time=3 ms
Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=29 time=4 ms
--- 192.168.1.1 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 3/6/14 ms
创建telnet用户及相关配置
[Quidway]local-user myhaspl
New local user added.
[Quidway-luser-myhaspl]password ?
cipher Display password with cipher text
simple Display password with plain text
[Quidway-luser-myhaspl]password simple ?
STRING<1-63> Plain password string
[Quidway-luser-myhaspl]password simple 15173258622
[Quidway-luser-myhaspl]service-type telnet
[Quidway-luser-myhaspl]user-interface vty 0
[Quidway-ui-vty0]authentication-mode ?
none Login without checking
password Use terminal interface password
scheme Use RADIUS scheme
本博客所有内容是原创,如果转载请注明来源
http://blog.****.net/myhaspl/
[Quidway-ui-vty0]authentication-mode scheme
通过xshell、putty等telnet客户端登录,交换机显示登录记录
[Quidway-ui-vty0]
%Apr 2 00:44:44:409 2000 Quidway SHELL/5/LOGIN:- 1 - myhaspl(192.168.1.16) in unit1 loginauthentication-mode scheme
[Quidway-ui-vty0]local-user myhaspl
[Quidway-luser-myhaspl]level 3
[Quidway-luser-myhaspl]
%Apr 2 00:45:24:120 2000 Quidway SHELL/5/LOGOUT:- 1 - myhaspl(192.168.1.16) in unit1 logout
[Quidway-luser-myhaspl]
%Apr 2 00:45:38:931 2000 Quidway SHELL/5/LOGIN:- 1 - myhaspl(192.168.1.16) in unit1 login
[Quidway-luser-myhaspl]
%Apr 2 00:46:37:914 2000 Quidway CFM/3/CFM_LOG:- 1 -Unit1 saved configuration successfully.
%Apr 2 00:46:43:609 2000 Quidway SHELL/5/LOGOUT:- 1 - myhaspl(192.168.1.16) in unit1 logout
%Apr 2 00:46:55:392 2000 Quidway SHELL/5/LOGIN:- 1 - myhaspl(192.168.1.16) in unit1 login
版权声明:本文为博主原创文章,未经博主允许不得转载。