summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/_static/images/cloud-azure-01.pngbin0 -> 90521 bytes
-rw-r--r--docs/_static/images/cloud-azure-02.pngbin0 -> 56507 bytes
-rw-r--r--docs/_static/images/cloud-azure-03.pngbin0 -> 47364 bytes
-rw-r--r--docs/_static/images/cloud-azure-04.pngbin0 -> 87475 bytes
-rw-r--r--docs/_static/images/cloud-azure-05.pngbin0 -> 77301 bytes
-rw-r--r--docs/_static/images/cloud-azure-06.pngbin0 -> 57830 bytes
-rw-r--r--docs/appendix/vyos-on-clouds.rst53
-rw-r--r--docs/services/console-server.rst188
-rw-r--r--docs/services/index.rst1
-rw-r--r--docs/system/serial-console.rst10
10 files changed, 238 insertions, 14 deletions
diff --git a/docs/_static/images/cloud-azure-01.png b/docs/_static/images/cloud-azure-01.png
new file mode 100644
index 00000000..2c7b1adb
--- /dev/null
+++ b/docs/_static/images/cloud-azure-01.png
Binary files differ
diff --git a/docs/_static/images/cloud-azure-02.png b/docs/_static/images/cloud-azure-02.png
new file mode 100644
index 00000000..286b8689
--- /dev/null
+++ b/docs/_static/images/cloud-azure-02.png
Binary files differ
diff --git a/docs/_static/images/cloud-azure-03.png b/docs/_static/images/cloud-azure-03.png
new file mode 100644
index 00000000..4661a1fb
--- /dev/null
+++ b/docs/_static/images/cloud-azure-03.png
Binary files differ
diff --git a/docs/_static/images/cloud-azure-04.png b/docs/_static/images/cloud-azure-04.png
new file mode 100644
index 00000000..af12d337
--- /dev/null
+++ b/docs/_static/images/cloud-azure-04.png
Binary files differ
diff --git a/docs/_static/images/cloud-azure-05.png b/docs/_static/images/cloud-azure-05.png
new file mode 100644
index 00000000..c5a32d2e
--- /dev/null
+++ b/docs/_static/images/cloud-azure-05.png
Binary files differ
diff --git a/docs/_static/images/cloud-azure-06.png b/docs/_static/images/cloud-azure-06.png
new file mode 100644
index 00000000..1cc7cbf1
--- /dev/null
+++ b/docs/_static/images/cloud-azure-06.png
Binary files differ
diff --git a/docs/appendix/vyos-on-clouds.rst b/docs/appendix/vyos-on-clouds.rst
index 8c0f5dea..d69b2e1b 100644
--- a/docs/appendix/vyos-on-clouds.rst
+++ b/docs/appendix/vyos-on-clouds.rst
@@ -1,10 +1,13 @@
.. _vyos-on-clouds:
Running on Clouds
-######################
+#################
Amazon AWS
-*****************
+**********
+
+Deploy VM
+---------
Deploy VyOS on Amazon :abbr:`AWS (Amazon Web Services)`
@@ -55,14 +58,56 @@ References
https://console.aws.amazon.com/
Azure
-*****************
+*****
+
+Deploy VM
+---------
+
+Deploy VyOS on Azure.
+
+1. Go to the Azure services and Click to **Add new Virtual machine**
+
+2. Choose vm name, resource group, region and click **Browse all public and private images**
+
+.. figure:: /_static/images/cloud-azure-01.png
+
+3. On the marketplace search ``VyOS``
+
+.. figure:: /_static/images/cloud-azure-02.png
+
+4. Generate new SSH key pair or use existing.
+
+.. figure:: /_static/images/cloud-azure-03.png
+
+5. Define network, subnet, Public IP. Or it will be created by default.
+
+.. figure:: /_static/images/cloud-azure-04.png
+
+6. Click ``Review + create``. After fiew second your deployment will be complete
+
+.. figure:: /_static/images/cloud-azure-05.png
+
+7. Click to your new vm and find out your Public IP address.
+
+.. figure:: /_static/images/cloud-azure-06.png
+
+8. Connect to the instance by SSH key.
+
+ .. code-block:: none
+
+ ssh -i ~/.ssh/vyos_azure vyos@203.0.113.3
+ vyos@vyos-doc-r1:~$
+
References
----------
https://azure.microsoft.com
Google Cloud Platform
-*****************
+*********************
+
+Deploy VM
+---------
To deploy VyOS on GCP (Google Cloud Platform)
diff --git a/docs/services/console-server.rst b/docs/services/console-server.rst
new file mode 100644
index 00000000..17d1d4d5
--- /dev/null
+++ b/docs/services/console-server.rst
@@ -0,0 +1,188 @@
+.. _console_server:
+
+##############
+Console Server
+##############
+
+Starting of with VyOS 1.3 (equuleus) we added support for running VyOS as an
+Out-of-Band Management device which provides remote access by means of SSH to
+directly attached serial interfaces.
+
+Serial interfaces can be any interface which is directly connected to the CPU
+or chipset (mostly known as a ttyS interface in Linux) or any other USB to
+serial converter (Prolific PL2303 or FTDI FT232/FT4232 based chips).
+
+If you happened to use a Cisco NM-16A - Sixteen Port Async Network Module or
+NM-32A - Thirty-two Port Async Network Module - this is your VyOS replacement.
+
+Setup
+=====
+
+In the past serial interface have been defined as ttySx and ttyUSBx where x was
+an instance number of the serial interface. It was discovered that from system
+boot to system boot the mapping of USB based serial interfaces will differ,
+depending which driver was loaded first by the operating system. This will become
+rather painful if you not only have serial interfaces for a console server
+connected but in addition also a serial backed :ref:`wwan-interface`.
+
+To overcome this issue and the fact that in almost 50% of all cheap USB to serial
+converters there is no serial number programmed, the USB to serial interface is
+now directly identified by the USB root bridge and bus it connects to. This
+somehow mimics the new network interface definitions we see in recend Linux
+distributions.
+
+For additional details you can refer to https://phabricator.vyos.net/T2490.
+
+.. opcmd:: show system usb
+
+ Retrieve a tree like representation of all connected USB devices.
+
+ .. note:: If a device is unplugged and re-plugged it will receive a new
+ Port, Dev, If identification.
+
+ .. code-block:: none
+
+ vyos@vyos:~$ show system usb
+ /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
+ |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
+ |__ Port 3: Dev 4, If 0, Class=Vendor Specific Class, Driver=qcserial, 480M
+ |__ Port 3: Dev 4, If 2, Class=Vendor Specific Class, Driver=qcserial, 480M
+ |__ Port 3: Dev 4, If 3, Class=Vendor Specific Class, Driver=qcserial, 480M
+ |__ Port 3: Dev 4, If 8, Class=Vendor Specific Class, Driver=qmi_wwan, 480M
+ /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
+ /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
+ |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
+ |__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
+ |__ Port 4: Dev 5, If 2, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 5, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 5, If 3, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 5, If 1, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 3: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
+ |__ Port 3: Dev 6, If 0, Class=Hub, Driver=hub/4p, 480M
+ |__ Port 4: Dev 8, If 2, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 8, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 8, If 3, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 8, If 1, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 7, If 3, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 7, If 1, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 7, If 2, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+ |__ Port 4: Dev 7, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
+
+
+.. opcmd:: show system usb
+
+ Retrieve a list and description of all connected USB serial devices. The device name
+ displayed, e.g. `usb0b2.4p1.0` can be directly used when accessing the serial console
+ as console-server device.
+
+ .. code-block:: none
+
+ vyos@vyos$ show system usb serial
+ Device Model Vendor
+ ------ ------ ------
+ usb0b1.3p1.0 MC7710 Sierra Wireless, Inc.
+ usb0b1.3p1.2 MC7710 Sierra Wireless, Inc.
+ usb0b1.3p1.3 MC7710 Sierra Wireless, Inc.
+ usb0b1p1.0 USB-Serial_Controller_D Prolific Technology, Inc.
+ usb0b2.3.3.4p1.0 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.3.3.4p1.1 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.3.3.4p1.2 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.3.3.4p1.3 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.3.4p1.0 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.3.4p1.1 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.3.4p1.2 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.3.4p1.3 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.4p1.0 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.4p1.1 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.4p1.2 Quad_RS232-HS Future Technology Devices International, Ltd
+ usb0b2.4p1.3 Quad_RS232-HS Future Technology Devices International, Ltd
+
+
+Configuration
+=============
+
+Between computers, the most common configuration used was "8N1": eight bit
+characters, with one start bit, one stop bit, and no parity bit. Thus 10 Baud
+times are used to send a single character, and so dividing the signalling
+bit-rate by ten results in the overall transmission speed in characters per
+second. This is also the default setting if none of those options are defined.
+
+.. cfgcmd:: set service console-server <device> data-bits [7 | 8]
+
+ Configure either seven or eight data bits. This defaults to eight data
+ bits if left unconfigured.
+
+.. cfgcmd:: set service console-server <device> description <string>
+
+ A user friendly description identifying the connected peripheral.
+
+.. cfgcmd:: set service console-server <device> parity [even | odd | none]
+
+ Set the parity option for the console. If unset this will default to none.
+
+.. cfgcmd:: set service console-server <device> stop-bits [1 | 2]
+
+ Configure either one or two stop bits. This defaults to one stop bits if
+ left unconfigured.
+
+.. cfgcmd:: set service console-server <device> speed [ 300 | 1200 | 2400 | 4800 | 9600 | 19200 | 38400 | 57600 | 115200 ]
+
+ .. note:: USB to serial converters will handle most of their work in software
+ so you should be carefull with the selected baudrate as some times they
+ can't cope with the expected speed.
+
+Remote Access
+-------------
+
+Each individual configured console-server device can be directly exposed to
+the outside world. A user can directly connect via SSH to the configured
+port.
+
+.. cfgcmd:: set service console-server <device> ssh port <port>
+
+ Accept SSH connections for the given `<device>` on TCP port `<port>`.
+ After successfull authentication the user will be directly dropped to
+ the connected serial device.
+
+ .. hint:: Multiple users can connect to the same serial device but only
+ one is allowed to write to the console port.
+
+Operation
+=========
+
+.. opcmd:: show console-server ports
+
+ Show configured serial ports and their respective interface configuration.
+
+ .. code-block:: none
+
+ vyos@vyos:~$ show console-server ports
+ usb0b2.4p1.0 on /dev/serial/by-bus/usb0b2.4p1.0@ at 9600n
+
+.. opcmd:: show console-server user
+
+ Show currently connected users.
+
+ .. code-block::
+
+ vyos@vyos:~$ show console-server user
+ usb0b2.4p1.0 up vyos@localhost
+
+
+.. opcmd:: connect console-server <device>
+
+ Locally connect to serial port identified by `<device>`.
+
+ .. code-block:: none
+
+ vyos@vyos-r1:~$ connect console-server usb0b2.4p1.0
+ [Enter `^Ec?' for help]
+ [-- MOTD -- VyOS Console Server]
+
+ vyos-r2 login:
+
+ .. hint:: Multiple users can connect to the same serial device but only
+ one is allowed to write to the console port.
+
+ .. hint:: The sequence ``^Ec?`` translates to: ``Ctrl+E c ?``. To quit
+ the session use: ``Ctrl+E c .``
diff --git a/docs/services/index.rst b/docs/services/index.rst
index cc6b96ae..76520b52 100644
--- a/docs/services/index.rst
+++ b/docs/services/index.rst
@@ -10,6 +10,7 @@ This chapter describes the available system/network services provided by VyOS.
:maxdepth: 1
conntrack
+ console-server
dhcp
dns-forwarding
dynamic-dns
diff --git a/docs/system/serial-console.rst b/docs/system/serial-console.rst
index d65d65fe..4a750ada 100644
--- a/docs/system/serial-console.rst
+++ b/docs/system/serial-console.rst
@@ -41,13 +41,3 @@ Major upgrades to the installed distribution may also require console access.
.. note:: If you use a USB to serial converter please note that most of them
use software emulation without flow control, thus you should start with a
common baud rate of 9600 as otherwise you could get
-
-###############
-Network Console
-###############
-
-TBD.
-
-.. cfgcmd:: set system console network <netconXX>
-
- ... and many more commands ... \ No newline at end of file