DCR系列路由器是神州数码推出的企业级网络路由解决方案,适用于各种规模的企业网络环境。DCR系列路由器支持多种网络协议,提供高性能的路由和交换能力,具备强大的安全特性和可扩展性,适用于多种应用场景,包括企业网、数据中心和广域网等。

设备基本信息查看命令
show version:显示路由器的软件和硬件版本信息。show system:显示系统信息,包括运行时间、CPU使用率、内存使用情况等。show interface:显示接口状态和配置信息。show ip interface brief:显示所有接口的简要信息,包括IP地址、状态等。
示例:
DCR> show version
DCR> show system
配置管理命令
copy running-config startup-config:保存当前配置到启动配置。copy startup-config running-config:将启动配置加载到当前配置。show running-config:显示当前运行的配置。show startup-config:显示启动配置。
示例:
DCR> copy running-config startup-config
DCR> show running-config
用户管理命令
username <name> password <password>:创建新用户并设置密码。no username <name>:删除用户。show users:显示当前在线用户。
示例:
DCR(config)# username admin password admin123
DCR(config)# no username guest
IP 地址配置
interface <interface>:进入接口配置模式。ip address <ip> <subnet>:配置接口IP地址。no ip address:删除接口IP地址。
示例:
DCR(config)# interface gigabitethernet 0/0
DCR(config-if)# ip address 192.168.1.1 255.255.255.0
路由配置
ip route <destination> <mask> <next-hop>:配置静态路由。no ip route <destination>:删除静态路由。show ip route:显示路由表。
示例:
DCR(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.254
DCR> show ip route
DHCP 配置
ip dhcp pool <name>:创建DHCP地址池。network <network> <mask>:定义地址池的网络范围。default-router <ip>:设置默认网关。dns-server <ip>:设置DNS服务器。
示例:
DCR(config)# ip dhcp pool LAN
DCR(dhcp-config)# network 192.168.1.0 255.255.255.0
DCR(dhcp-config)# default-router 192.168.1.1
DCR(dhcp-config)# dns-server 8.8.8.8
访问控制列表(ACL)
access-list <number> permit <protocol> <source> <destination>:创建访问控制列表条目。no access-list <number>:删除访问控制列表。show access-lists:显示所有访问控制列表。
示例:
DCR(config)# access-list 10 permit ip 192.168.1.0 0.0.0.255 any
DCR(config)# no access-list 10
防火墙配置
firewall enable:启用防火墙功能。firewall rule <name>:创建防火墙规则。firewall rule <name> action <permit|deny>:设置规则动作。
示例:
DCR(config)# firewall enable
DCR(config)# firewall rule BLOCK_HTTP
DCR(config-firewall)# action deny
DCR(config-firewall)# match protocol tcp port 80
VPN 配置
crypto isakmp policy <number>:配置ISAKMP策略。crypto ipsec transform-set <name>:配置IPsec转换集。crypto map <name> <seq> ipsec-isakmp:配置加密映射。
示例:
DCR(config)# crypto isakmp policy 1
DCR(config-isakmp)# authentication pre-share
DCR(config)# crypto ipsec transform-set VPN-SET esp-aes esp-sha-hmac
DCR(config)# crypto map VPN-MAP 10 ipsec-isakmp
高可用性配置
standby <group> ip <ip>:配置HSRP虚拟IP地址。standby <group> priority <priority>:设置HSRP优先级。standby <group> preempt:启用抢占功能。
示例:
DCR(config)# interface gigabitethernet 0/1
DCR(config-if)# standby 1 ip 192.168.1.254
DCR(config-if)# standby 1 priority 110
DCR(config-if)# standby 1 preempt
实时监控命令
show processes:显示当前运行的进程及其资源使用情况。show logs:显示系统日志。show cpu:显示CPU使用情况。
示例:
DCR> show processes
DCR> show logs
DCR> show cpu
故障排除命令
ping <ip>:发送ICMP回显请求以测试网络连通性。traceroute <ip>:跟踪数据包到目标地址的路径。debug <feature>:启用调试功能以捕获详细信息。
示例:
DCR> ping 8.8.8.8
DCR> traceroute 8.8.8.8
DCR# debug ip packet