summaryrefslogtreecommitdiff
path: root/docs/appendix/examples/ospf-unnumbered.rxt
diff options
context:
space:
mode:
authorRuben Herold <ruben@insecure.pw>2019-05-30 23:40:24 +0200
committerRuben Herold <ruben@insecure.pw>2019-05-30 23:40:24 +0200
commit30241609507c462a107e3b7fde8057f87dedfb0c (patch)
tree366b2a432cfbae16766d5164e7b64e69472aa336 /docs/appendix/examples/ospf-unnumbered.rxt
parent5a5e6c2140c2a43d90ff61ac116a677597346eb7 (diff)
downloadvyos-documentation-30241609507c462a107e3b7fde8057f87dedfb0c.tar.gz
vyos-documentation-30241609507c462a107e3b7fde8057f87dedfb0c.zip
Add authentication for more security
Diffstat (limited to 'docs/appendix/examples/ospf-unnumbered.rxt')
-rw-r--r--docs/appendix/examples/ospf-unnumbered.rxt7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/appendix/examples/ospf-unnumbered.rxt b/docs/appendix/examples/ospf-unnumbered.rxt
index f312a533..0238177e 100644
--- a/docs/appendix/examples/ospf-unnumbered.rxt
+++ b/docs/appendix/examples/ospf-unnumbered.rxt
@@ -14,10 +14,13 @@ Configuration
set interfaces ethernet eth0 address '10.0.0.1/24'
set interfaces ethernet eth1 address '192.168.0.1/32'
+ set interfaces ethernet eth1 ip ospf authentication md5 key-id 1 md5-key 'yourpassword'
set interfaces ethernet eth1 ip ospf network 'point-to-point'
set interfaces ethernet eth2 address '192.168.0.1/32'
+ set interfaces ethernet eth2 ip ospf authentication md5 key-id 1 md5-key 'yourpassword'
set interfaces ethernet eth2 ip ospf network 'point-to-point'
set interfaces loopback lo address '192.168.0.1/32'
+ set protocols ospf area 0.0.0.0 authentication 'md5'
set protocols ospf area 0.0.0.0 network '192.168.0.1/32'
set protocols ospf parameters router-id '192.168.0.1'
set protocols ospf redistribute connected
@@ -28,10 +31,13 @@ Configuration
set interfaces ethernet eth0 address '10.0.0.2/24'
set interfaces ethernet eth1 address '192.168.0.2/32'
+ set interfaces ethernet eth1 ip ospf authentication md5 key-id 1 md5-key 'yourpassword'
set interfaces ethernet eth1 ip ospf network 'point-to-point'
set interfaces ethernet eth2 address '192.168.0.2/32'
+ set interfaces ethernet eth2 ip ospf authentication md5 key-id 1 md5-key 'yourpassword'
set interfaces ethernet eth2 ip ospf network 'point-to-point'
set interfaces loopback lo address '192.168.0.2/32'
+ set protocols ospf area 0.0.0.0 authentication 'md5'
set protocols ospf area 0.0.0.0 network '192.168.0.2/32'
set protocols ospf parameters router-id '192.168.0.2'
set protocols ospf redistribute connected
@@ -117,4 +123,3 @@ Results
* via 192.168.0.1, eth2 onlink, 00:29:03
vyos@vyos:~$
-