网络设备配置信息逐行解释


网络设备

Cisco显示当前设备上正在运行的配置

show running-config

H3C显示当前设备上正在运行的配置

display current-configuration

H3C查看密码相关的配置信息

display password-control

H3C对口令进行加密

service password-encryption

show running-config

show running-config 命令在Cisco设备上会显示当前设备上所有接口和全局配置的详细列表。

!
version 15.0
 no service pad
 service timestamps debug datetime msec
 service timestamps log datetime msec
 no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no logging console
enable secret 5 $1$aBcD$fghIJkl
!
no aaa new-model
authentication login auth
 authorization exec default-group dot1x
 authentication order [if-supported dot1x first]

!
ip domain-name example.com
ip name-server 192.168.1.1
!
cisco 2811 (CPU @ 200Mhz, 256MB RAM)
Processor board ID JABXXXXXX
!
uptime is 2 hours 12 minutes
!
Standby Router uptime is 2 hours 12 minutes
!
Standby Router is not available
!
Current configuration : 2947 bytes
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 ip address 192.168.1.2 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 router-id 192.168.1.2
 log-adjacency-changes
!
ip classless
!
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
!
line con 0
 stopbits 1
line vty 0 4
 login
 transport input all
line vty 5 15
 login
 transport input all
!
scheduler max-task-count 1000
!
end

以下是一些关键配置项的解释:

  • version 15.0:指定设备运行的IOS(Internetwork Operating System)版本。
  • no service pad:禁用PAD(X.29)服务。
  • service timestamps:启用时间戳服务,用于调试和日志记录。
  • no service password-encryption:禁用密码加密服务。
  • hostname Router:设置设备的主机名为Router。
  • enable secret:设置加密的启用密码。
  • no logging console:禁用控制台日志记录。
  • authentication:配置认证相关的设置。
  • ip domain-name:设置DNS域名。
  • ip name-server:指定DNS服务器地址。
  • cisco 2811:显示设备的型号和一些硬件信息。
  • uptime:显示设备自上次启动以来的运行时间。
  • interface:定义接口配置,如FastEthernet0/0和FastEthernet0/1。
  • no ip address:指定接口没有分配IP地址。
  • duplex auto:设置接口的双工模式为自动。
  • speed auto:设置接口的速率为自动。
  • shutdown:关闭接口。
  • ip address:为接口分配IP地址和子网掩码。
  • router ospf:配置OSPF(开放最短路径优先)路由协议。
  • ip classless:启用无类路由。
  • no ip http server:禁用HTTP服务。
  • ip route:定义默认路由。
  • line:定义控制台和VTY(远程登录)行的配置。
  • login:要求在登录时输入用户名和密码。
  • transport input all:允许所有类型的输入传输。
  • scheduler max-task-count:设置调度器最大任务数。

display current-configuration

display current-configuration 是 H3C 设备上的命令,用于显示当前设备上正在运行的配置。

#
sysname Router
#
domain default enable system
#
local-user admin
 password simple $1$Ggh$c2.B7kQ9q1zMjFt
 service-type telnet terminal
 level 3
#
interface Vlan-interface1
 ip address 192.168.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
 port link-mode route
 ip address 10.0.0.1 255.255.255.0
#
qos car
 car priority normal 64 64 64 1
 car priority critical 512 512 512 1
#
route-static
 ip-route-static 0.0.0.0 0.0.0.0 192.168.1.1 preference 60
#
user-identity default
#
radius-server
#
dot1x
#
aaa
#
firewall
#
ipsec
#
l2vpn
#
mpls
#
end

以下是一些关键配置项的解释:

  • sysname Router:设置设备的系统名称为 Router。
  • domain default enable system:启用默认的系统域。
  • local-user admin:定义一个本地用户 admin。
  • password simple:设置用户 admin 的密码,后面跟着的是加密后的密码字符串。
  • service-type telnet terminal:允许用户 admin 通过 Telnet 访问终端。
  • level 3:设置用户 admin 的权限等级为 3。
  • interface Vlan-interface1:定义一个虚拟局域网接口 Vlan-interface1。
  • ip address:为接口分配 IP 地址和子网掩码。
  • port link-mode route:设置接口的链路模式为路由模式。
  • qos car:定义服务质量(QoS)的承诺访问速率(CAR)规则。
  • route-static:定义静态路由。
  • ip-route-static:指定默认网关的 IP 地址和路由偏好值。
  • user-identity default:定义默认的用户身份验证设置。
  • radius-serverdot1xaaafirewallipsecl2vpnmpls:这些是网络服务或安全功能的配置部分,可能包含相关的服务器地址、身份验证设置、访问控制列表等。

往者不可谏,来者犹可追。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值