diff options
author | Kim <kim.sidney@gmail.com> | 2019-03-05 21:37:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 21:37:25 +0100 |
commit | f4456860eda554395ff96dfd66946722611bae4e (patch) | |
tree | 35e7d2dc808c048450b43cfc685ee82eee823197 /docs/interfaces/vlan.rst | |
parent | 56b851b9fd9e9637545adedc85342f2a65f922c5 (diff) | |
parent | e6fa2569332c15a61f3c99ba0fe639696836d3bd (diff) | |
download | vyos-documentation-f4456860eda554395ff96dfd66946722611bae4e.tar.gz vyos-documentation-f4456860eda554395ff96dfd66946722611bae4e.zip |
Merge pull request #10 from kmpm/features/split-interfaces
Split network-interfaces into multiple files
Diffstat (limited to 'docs/interfaces/vlan.rst')
-rw-r--r-- | docs/interfaces/vlan.rst | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/interfaces/vlan.rst b/docs/interfaces/vlan.rst new file mode 100644 index 00000000..76fadd3c --- /dev/null +++ b/docs/interfaces/vlan.rst @@ -0,0 +1,47 @@ +VLAN Sub-Interfaces (802.1Q) +---------------------------- +.. _interfaces-vlan: + +802.1Q VLAN interfaces are represented as virtual sub-interfaces in VyOS. The +term used for this is `vif`. Configuration of a tagged sub-interface is +accomplished using the configuration command +`set interfaces ethernet <name> vif <vlan-id>`. + +.. code-block:: sh + + set interfaces ethernet eth1 vif 100 description 'VLAN 100' + set interfaces ethernet eth1 vif 100 address '192.168.100.1/24' + set interfaces ethernet eth1 vif 100 address '2001:db8:100::1/64' + +Resulting in: + +.. code-block:: sh + + ethernet eth1 { + address 192.168.100.1/24 + address 2001:db8:100::1/64 + description INSIDE + duplex auto + hw-id 00:0c:29:44:3b:19 + smp_affinity auto + speed auto + vif 100 { + address 192.168.100.1/24 + description "VLAN 100" + } + } + +VLAN interfaces are shown as `<name>.<vlan-id>`, e.g. `eth1.100`: + +.. code-block:: sh + + vyos@vyos:~$ show interfaces + Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down + Interface IP Address S/L Description + --------- ---------- --- ----------- + eth0 172.16.51.129/24 u/u OUTSIDE + eth1 192.168.0.1/24 u/u INSIDE + eth1.100 192.168.100.1/24 u/u VLAN 100 + lo 127.0.0.1/8 u/u + ::1/128 + |