00 - 初始化
1、路由器交换机 初始化:
en
conf t
no ip domain lo
lin con 0
logg s
exec-t 0 0
exit
ntp server 1.1.1.9 //设置 ntp 服务器为 1.1.1.1
ip domain name nsa2024.wsc //设置域名为 nsa2024.wsc
enable secret QT!6@6Urd
username admin secret sM@N3XfqWE
clock timezone CST +8 //设置时区为 东八区# 生成 ssh 密钥crypto key gen rsa mo 2048 lab ssh.key
ip ssh v 2
lin vty 0 15
login local
transport input ssh
exit# 配置 ssh 端口为 2222ip ssh port 2222 rotary 1ip access-list extended sshdeny tcp any any eq 22permit ip any anyexitline vty 0 15rotary 1 exitline vty 0 15access-class ssh inexitlin con 0login localexitdo wr me
·仅允许通过管理端口进行访问:
ip access-list extended denydeny tcp any any eq 22deny tcp any any eq 2222permit ip any anyexitdo show ip interfaces br //查看所有接口int ra G0/1-G0/... //进入除了 G0/0 外的所有接口ip access-group deny in
2、防火墙 初始化:
enable password QT!6@6Urdusername admin password sM@N3XfqWEdomain-name nsa2024.wscclock timezone cst +8ntp server 1.1.1.9scrypto key generate rsa label ssh.key modulus 2048
3、在 EDGE-RT-01 配置 NTP Server:
ntp master 1