summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuuta Liang <yuuta@yuuta.moe>2023-11-06 07:50:04 +0800
committerYuuta Liang <yuuta@yuuta.moe>2023-11-06 07:50:04 +0800
commit0948ddd15a49eed3ff73d09412819095d590b3a1 (patch)
tree3e56b6464168b12ae3f94b2693ba3efbd65d7a4e
parent59cb71bd995424d151236785b82cc36745443d73 (diff)
downloadkb-0948ddd15a49eed3ff73d09412819095d590b3a1.tar
kb-0948ddd15a49eed3ff73d09412819095d590b3a1.tar.gz
kb-0948ddd15a49eed3ff73d09412819095d590b3a1.tar.bz2
kb-0948ddd15a49eed3ff73d09412819095d590b3a1.zip
Vyatta
-rw-r--r--docs/sysadmin/networking/software/vyatta.md52
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/sysadmin/networking/software/vyatta.md b/docs/sysadmin/networking/software/vyatta.md
index d71295b..188cc87 100644
--- a/docs/sysadmin/networking/software/vyatta.md
+++ b/docs/sysadmin/networking/software/vyatta.md
@@ -1 +1,53 @@
# Vyatta
+
+This doc will be focused on VyOS / EdgeOS.
+
+## Basic Usage
+
+Default is operational mode, allowing you to run `show` commands:
+
+```shell
+% show arp
+% show dhcp leases
+```
+
+Use `configure` to enter configuration mode:
+
+```shell
+% configure
+% show # show conf
+% run # run in operational mode
+```
+
+The configuration is like a tree:
+
+```
+interfaces {
+ ethernet eth0 {
+ address 169.254.0.1/24
+ }
+}
+
+protocols {
+ static {
+ ...
+ }
+}
+...
+```
+
+In configuration mode:
+
+```shell
+% top # Go back to top
+% edit interfaces # Go to sub menu
+% show # Show configuration from the current level
+% set x y z val # Set x.y.z to val
+% delete x y z # Unset x.y.z
+% rename x y z to x y n # Move x.y.z to x.y.n
+% commit # Apply current configuration, but do not persist
+% commit-confirm minutes # Apply current configuration, and reboot if no
+`confirm` within X minutes
+% save # Save the current applied configuration, so it applies during next boot
+% exit
+```