mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
vrf: static: T2450: adjust to new CLI syntax
This commit is contained in:
parent
0fa792f936
commit
0ae01b4a1c
@ -114,7 +114,7 @@ Vyos configuration
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
set protocols static interface-route 10.0.0.4/32 next-hop-interface vti1
|
||||
set protocols static route 10.0.0.4/32 interface vti1
|
||||
|
||||
- Configure your BGP settings
|
||||
|
||||
|
||||
@ -129,8 +129,8 @@ Vyos configuration
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
set protocols static interface-route 10.0.0.4/32 next-hop-interface vti1
|
||||
set protocols static interface-route 10.0.0.5/32 next-hop-interface vti2
|
||||
set protocols static route 10.0.0.4/32 interface vti1
|
||||
set protocols static route 10.0.0.5/32 interface vti2
|
||||
|
||||
- Configure your BGP settings
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ DHCP Server
|
||||
set protocols ospf area 0 network '192.168.3.0/24'
|
||||
set protocols ospf area 0 network '10.0.2.0/24'
|
||||
set protocols ospf parameters router-id '192.168.3.3'
|
||||
set protocols static interface-route 10.0.1.2/32 next-hop-interface tun100
|
||||
set protocols static route 10.0.1.2/32 interface tun100
|
||||
set service dhcp-server shared-network-name asdf authoritative
|
||||
set service dhcp-server shared-network-name asdf subnet 192.168.3.0/24 range 0 start '192.168.3.30'
|
||||
set service dhcp-server shared-network-name asdf subnet 192.168.3.0/24 range 0 stop '192.168.3.40'
|
||||
@ -70,7 +70,7 @@ DHCP Relay
|
||||
set protocols ospf area 0 network '192.168.0.0/24'
|
||||
set protocols ospf area 0 network '10.100.100.0/24'
|
||||
set protocols ospf parameters router-id '10.100.100.1'
|
||||
set protocols static interface-route 192.168.3.3/32 next-hop-interface tun100
|
||||
set protocols static route 192.168.3.3/32 interface tun100
|
||||
set service dhcp-relay interface 'eth0'
|
||||
set service dhcp-relay interface 'tun100'
|
||||
set service dhcp-relay server '192.168.3.3'
|
||||
|
||||
@ -35,7 +35,7 @@ tunnel information page.
|
||||
set interfaces tunnel tun0 mtu '1472'
|
||||
set interfaces tunnel tun0 multicast 'disable'
|
||||
set interfaces tunnel tun0 remote-ip Server_IPv4_from_Tunnelbroker # This is the IP of the Tunnelbroker server
|
||||
set protocols static interface-route6 ::/0 next-hop-interface tun0 # Tell all traffic to go over this tunnel
|
||||
set protocols static route6 ::/0 interface tun0 # Tell all traffic to go over this tunnel
|
||||
commit
|
||||
|
||||
If your WAN connection is over PPPoE, you may need to set the MTU on the above
|
||||
|
||||
@ -159,13 +159,13 @@ Local Configuration:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
set protocols static interface-route 10.1.0.0/16 next-hop-interface vtun1
|
||||
set protocols static route 10.1.0.0/16 interface vtun1
|
||||
|
||||
Remote Configuration:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
set protocols static interface-route 10.0.0.0/16 next-hop-interface vtun1
|
||||
set protocols static route 10.0.0.0/16 interface vtun1
|
||||
|
||||
Firewall policy can also be applied to the tunnel interface for `local`, `in`,
|
||||
and `out` directions and function identically to ethernet interfaces.
|
||||
@ -253,7 +253,7 @@ internally, so we need to create a route to the 10.23.0.0/20 network ourselves:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
set protocols static interface-route 10.23.0.0/20 next-hop-interface vtun10
|
||||
set protocols static route 10.23.0.0/20 interface vtun10
|
||||
|
||||
Generate X.509 Certificate and Keys
|
||||
-----------------------------------
|
||||
|
||||
@ -130,7 +130,7 @@ PPPoE options
|
||||
|
||||
.. note:: In all modes except 'none', all default routes using this interface
|
||||
will be removed when the interface is torn down - even manually installed
|
||||
static interface-routes.
|
||||
static routes.
|
||||
|
||||
.. cfgcmd:: set interfaces pppoe <interface> idle-timeout <time>
|
||||
|
||||
@ -251,7 +251,7 @@ Requirements:
|
||||
default gateway you receive from your DSL ISP to the routing table if you
|
||||
have no other WAN connections. If you wish to use a dual WAN connection,
|
||||
change the ``default-route`` option to ``force``. You could also install
|
||||
a static interface-route and set the ``default-route`` option to ``none``.
|
||||
a static route and set the ``default-route`` option to ``none``.
|
||||
* With the ``name-server`` option set to ``none``, VyOS will ignore the
|
||||
nameservers your ISP sens you and thus you can fully rely on the ones you
|
||||
have configured statically.
|
||||
|
||||
@ -78,7 +78,7 @@ one.
|
||||
set interfaces wireguard wg01 peer to-wg02 port '12345'
|
||||
set interfaces wireguard wg01 peer to-wg02 pubkey 'XMrlPykaxhdAAiSjhtPlvi30NVkvLQliQuKP7AI7CyI='
|
||||
set interfaces wireguard wg01 port '12345'
|
||||
set protocols static interface-route 10.2.0.0/24 next-hop-interface wg01
|
||||
set protocols static route 10.2.0.0/24 interface wg01
|
||||
|
||||
The last step is to define an interface route for 10.2.0.0/24 to get
|
||||
through the WireGuard interface `wg01`. Multiple IPs or networks can be
|
||||
@ -113,7 +113,7 @@ the public key, which needs to be shared with the peer.
|
||||
set interfaces wireguard wg01 peer to-wg02 port '12345'
|
||||
set interfaces wireguard wg01 peer to-wg02 pubkey 'u41jO3OF73Gq1WARMMFG7tOfk7+r8o8AzPxJ1FZRhzk='
|
||||
set interfaces wireguard wg01 port '12345'
|
||||
set protocols static interface-route 10.1.0.0/24 next-hop-interface wg01
|
||||
set protocols static route 10.1.0.0/24 interface wg01
|
||||
|
||||
Assure that your firewall rules allow the traffic, in which case you
|
||||
have a working VPN using WireGuard
|
||||
|
||||
@ -63,19 +63,19 @@ Static Routes
|
||||
Interface Routes
|
||||
================
|
||||
|
||||
.. cfgcmd:: set protocols static interface-route <subnet> next-hop-interface
|
||||
.. cfgcmd:: set protocols static route <subnet> interface
|
||||
<interface>
|
||||
|
||||
Allows you to configure the next-hop interface for an interface-based IPv4
|
||||
static route. `<interface>` will be the next-hop interface where trafic is
|
||||
routed for the given `<subnet>`.
|
||||
|
||||
.. cfgcmd:: set protocols static interface-route <subnet> next-hop-interface
|
||||
.. cfgcmd:: set protocols static route <subnet> interface
|
||||
<interface> disable
|
||||
|
||||
Disables interface-based IPv4 static route.
|
||||
|
||||
.. cfgcmd:: set protocols static interface-route <subnet> next-hop-interface
|
||||
.. cfgcmd:: set protocols static route <subnet> interface
|
||||
<interface> distance <distance>
|
||||
|
||||
Defines next-hop distance for this route, routes with smaller administrative
|
||||
@ -83,19 +83,19 @@ Interface Routes
|
||||
|
||||
Range is 1 to 255, default is 1.
|
||||
|
||||
.. cfgcmd:: set protocols static interface-route6 <subnet> next-hop-interface
|
||||
.. cfgcmd:: set protocols static route6 <subnet> interface
|
||||
<interface>
|
||||
|
||||
Allows you to configure the next-hop interface for an interface-based IPv6
|
||||
static route. `<interface>` will be the next-hop interface where trafic is
|
||||
routed for the given `<subnet>`.
|
||||
|
||||
.. cfgcmd:: set protocols static interface-route6 <subnet> next-hop-interface
|
||||
.. cfgcmd:: set protocols static route6 <subnet> interface
|
||||
<interface> disable
|
||||
|
||||
Disables interface-based IPv6 static route.
|
||||
|
||||
.. cfgcmd:: set protocols static interface-route6 <subnet> next-hop-interface
|
||||
.. cfgcmd:: set protocols static route6 <subnet> interface
|
||||
<interface> distance <distance>
|
||||
|
||||
Defines next-hop distance for this route, routes with smaller administrative
|
||||
|
||||
@ -119,7 +119,7 @@ Leaking
|
||||
"""""""
|
||||
|
||||
.. cfgcmd:: set protocols vrf <name> static route <subnet> next-hop <address>
|
||||
next-hop-vrf <default | vrf-name>
|
||||
vrf <default | vrf-name>
|
||||
|
||||
Use this command if you have shared services or routes that should be shared
|
||||
between multiple VRF instances. This will add an IPv4 route to VRF `<name>`
|
||||
@ -127,7 +127,7 @@ Leaking
|
||||
a different VRF or leak it into the default VRF.
|
||||
|
||||
.. cfgcmd:: set protocols vrf <name> static route6 <subnet> next-hop <address>
|
||||
next-hop-vrf <default | vrf-name>
|
||||
vrf <default | vrf-name>
|
||||
|
||||
Use this command if you have shared services or routes that should be shared
|
||||
between multiple VRF instances. This will add an IPv6 route to VRF `<name>`
|
||||
@ -138,40 +138,40 @@ Leaking
|
||||
Interface Routes
|
||||
""""""""""""""""
|
||||
|
||||
.. cfgcmd:: set protocols vrf <name> static interface-route <subnet>
|
||||
next-hop-interface <interface>
|
||||
.. cfgcmd:: set protocols vrf <name> static route <subnet>
|
||||
interface <interface>
|
||||
|
||||
Allows you to configure the next-hop interface for an interface-based IPv4
|
||||
static route. `<interface>` will be the next-hop interface where trafic is
|
||||
routed for the given `<subnet>`.
|
||||
|
||||
.. cfgcmd:: set protocols vrf <name> static interface-route <subnet>
|
||||
next-hop-interface <interface> disable
|
||||
.. cfgcmd:: set protocols vrf <name> static route <subnet>
|
||||
interface <interface> disable
|
||||
|
||||
Disables interface-based IPv4 static route.
|
||||
|
||||
.. cfgcmd:: set protocols vrf <name> static interface-route <subnet>
|
||||
next-hop-interface <interface> distance <distance>
|
||||
.. cfgcmd:: set protocols vrf <name> static route <subnet>
|
||||
interface <interface> distance <distance>
|
||||
|
||||
Defines next-hop distance for this route, routes with smaller administrative
|
||||
distance are elected prior those with a higher distance.
|
||||
|
||||
Range is 1 to 255, default is 1.
|
||||
|
||||
.. cfgcmd:: set protocols vrf <name> static interface-route6 <subnet>
|
||||
next-hop-interface <interface>
|
||||
.. cfgcmd:: set protocols vrf <name> static route6 <subnet>
|
||||
interface <interface>
|
||||
|
||||
Allows you to configure the next-hop interface for an interface-based IPv6
|
||||
static route. `<interface>` will be the next-hop interface where trafic is
|
||||
routed for the given `<subnet>`.
|
||||
|
||||
.. cfgcmd:: set protocols vrf <name> static interface-route6 <subnet>
|
||||
next-hop-interface <interface> disable
|
||||
.. cfgcmd:: set protocols vrf <name> static route6 <subnet>
|
||||
interface <interface> disable
|
||||
|
||||
Disables interface-based IPv6 static route.
|
||||
|
||||
.. cfgcmd:: set protocols vrf <name> static interface-route6 <subnet>
|
||||
next-hop-interface <interface> distance <distance>
|
||||
.. cfgcmd:: set protocols vrf <name> static route6 <subnet>
|
||||
interface <interface> distance <distance>
|
||||
|
||||
Defines next-hop distance for this route, routes with smaller administrative
|
||||
distance are elected prior those with a higher distance.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user