VyOS 的 commit、save、show configuration
- 基础
- 入门
- 7 分钟
- 3 个步骤
- VyOS
VyOS 的三层持久化:候选 / 运行 / 启动。练习 commit + save 的节奏并导出配置。
免费 · 无需安装 · 无需注册
场景
VyOS 维护三层配置: - 候选 —— 在配置 shell 中、commit 之前的内容。 - 运行 —— commit 已应用的内容;内核 + FRR 看到的就是它。 - 启动 —— /config/config.boot;重启时加载的内容。 commit 把候选写入运行;save 把运行写入启动。要让变更在 重启后保留,两者都需要。
拓扑
1 × 路由器 · VyOS
vyos-r1— 路由器
你将完成的任务
在配置 shell 中暂存
set system host-name vyos-edge并 commit。用
save把运行配置持久化到启动配置。用
show configuration导出运行配置。
同主题的更多实验
- Break and fix —— 你的第一次故障排查入门 · 10 分钟
- 配置模式 —— 你的第一次配置更改入门 · 10 分钟
- EXOS 故障与修复 — 端口被禁用入门 · 8 分钟
- EXOS 配置 — 创建 VLAN、加端口、给 IP入门 · 10 分钟
- 你的第一台 ExtremeXOS 交换机 — 以 VLAN 为中心的查看入门 · 8 分钟
- EXOS ping 与 traceroute入门 · 5 分钟
本实验的其他语言版本
VyOS commit, save, show configurationVyOS commit, save, show configurationVyOS commit, save, show configurationVyOS commit, save, show configurationVyOS commit, save, show configurationVyOS commit, save, show configurationVyOS commit, save, show configurationVyOS の commit、save、show configurationVyOS commit, save, show configurationVyOS commit, save, show configurationVyOS commit, save, show configurationVyOS commit, save, show configuration