Rootop 服务器运维与web架构

2024-03-07
发表者 Venus
juniper防火墙面板alarm灯橙色已关闭评论

juniper防火墙面板alarm灯橙色

root> show system alarms 
2 alarms currently active
Alarm time               Class  Description
2024-03-07 00:42:55 UTC  Minor  Autorecovery information needs to be saved
2024-03-07 00:42:53 UTC  Minor  Rescue configuration is not set

root> request system autorecovery state save 
Saving config recovery information
Saving license recovery information
Saving BSD label recovery information

root> request system configuration rescue save 

root> 

root> show system alarms 
No alarms currently active

这样面板上的警报灯就灭了。

2024-03-07
发表者 Venus
juniper关闭自动更新已关闭评论

juniper关闭自动更新

# 控制台经常提示

Auto Image Upgrade: DHCP INET Client Bound interfaces :

Auto Image Upgrade: DHCP INET Client Unbound interfaces : ge-0/0/0.0
ge-0/0/7.0

Auto Image Upgrade: DHCP INET6 Client Bound interfaces :

Auto Image Upgrade: DHCP INET6 Client Unbound interfaces :

这些提示会影响命令的输入,扰乱视线,可以先将其关闭,网络配通以后可以在打开。

# 关闭自动更新
root# delete chassis auto-image-upgrade

# 提交
[edit]
root# commit

# 恢复自动更新
root# set chassis auto-image-upgrade

2024-03-07
发表者 Venus
juniper关闭集群HA已关闭评论

juniper关闭集群HA

在开启了HA集群后,面板上的HA指示灯会亮绿色或者橙色。

# 注意是在命令行模式下
# 查看集群状态(HA)
root> show chassis cluster status

# 关闭集群并重启
root> set chassis cluster disable reboot

# 重启完成后再查看集群状态
root> show chassis cluster status
error: Chassis cluster is not enabled.

# 进入配置模式
root> configure
Entering configuration mode
[edit]

# 恢复出厂设置
root# load factory-default
warning: activating factory configuration

[edit]

# 设置root密码
root# set system root-authentication plain-text-password
New password:
Retype new password:

[edit]

# 提交
root# commit

2024-03-07
发表者 Venus
juniper srx320升级固件已关闭评论

juniper srx320升级固件

在格式化U盘的时候格式选项只有exFAT,没有FAT32格式

这是因为所选的分区大于32GB。在默认的Windows格式化功能选项之中,仅允许在32GB或更低的驱动器上使用FAT32文件系统分区。
Windows系统内置的格式化方法(如磁盘管理、文件资源管理器或DiskPart)不允许将32GB以上的硬盘、U盘或SD卡格式化为FAT32文件系统。
可以使用磁盘精灵格式化

# 插上优盘后console控制台会提示分区名

# 挂载到/mnt
root@% mount -t msdosfs /dev/da1s1 /mnt

# 如果是非fat32会提示错误
mount_msdosfs: /dev/da1s1: Invalid argument

# 加载新固件
root> request system software add /mnt/junos-srxsme-22.4R3.25.tgz no-copy no-validate

# 重启
root> request system reboot


root> show version
Model: srx320
Junos: 22.4R3.25
JUNOS Software Release [22.4R3.25]

2024-02-18
发表者 Venus
ubuntu和centos防火墙放行ip段的所有访问已关闭评论

ubuntu和centos防火墙放行ip段的所有访问

# ubuntu下
# 启用ufw
ufw enable

# 添加指定网段允许所有端口访问
ufw allow from 192.168.60.0/24

# 查看规则,带规则序号。
ufw status numbered

# 开机启动
systemctl enable ufw


# centos下
# 添加富规则,允许指定网段的所有端口访问
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="192.168.60.0/24" accept'

# reload生效
firewall-cmd --reload

# 开机启动
systemctl enable firewalld