华为设备的基本操作
1.更改设备接口类型
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
解决方法一:
[Huawei-GigabitEthernet0/0/2]undo port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan 1
解决方法二:
[Huawei-GigabitEthernet0/0/2] undo port trunk allow-pass vlan 2 to 4094
2.配置环回接口
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 11.11.11.111 32
3.查看接口的信息
[Huawei]display ip interface brief
4.查看设备的路由表
[Huawei]display ip routing-table
5.查看系统当前日期和时钟
[Huawei]display clock
<Huawei>clock timezone BJ add 08:00:00设置所在的时区为北京
<Huawei>clock datetime 10:00:00 2019-5-20修改系统的日期和时间
6.查看系统软件的版本和硬件的信息
<Huawei>display version
7.设备配置保存
<SW1>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
<SW1>display saved-configuration 查看保存的配置
<SW1>display current-configuration 查看设备运行的配置
8.重启设备、
<SW1>reboot 重启
<SW1>reset saved-configuration 清除保存的配置
telnet
三层交换机上怎么配置以太网接口ip?
vlan--给vlan一个地址=这个以太网接口有了地址
[sw1]telnet server enable
[sw1]user-interface vty 0 4
[sw1-ui-vty0-4]protocol inbound telnet (可以不配)
[sw1-ui-vty0-4]user privilege level 3 设置用户级别,3为管理级别,有最高权限
[sw1-ui-vty0-4]authentication-mode aaa 设置用户验证为3A
[sw1]aaa
[sw1-aaa]local-user admin password cipher 123
[sw1-aaa]local-user admin service-type telnet 配置本地登录用户的接入方式为telnet
<sw1>dis sa
#
sysname sw1
#
vlan batch 100
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher #*C>*$C`S!INZPO3JBXBHA!!
local-user admin service-type telnet
#
interface Vlanif1
#
interface Vlanif100
ip address 1.1.1.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
authentication-mode aaa
user privilege level 3
#
return
<sw1>
<sw2>dis sa
#
sysname sw2
#
vlan batch 100
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher #*C>*$C`S!INZPO3JBXBHA!!
local-user admin service-type telnet
#
interface Vlanif1
#
interface Vlanif100
ip address 1.1.1.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
#
来源:CSDN
作者:H_Cisco
链接:https://blog.csdn.net/hdq1745/article/details/104539322