mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
Add authentication for more security
This commit is contained in:
parent
5a5e6c2140
commit
3024160950
@ -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:~$
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user