diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-06-05 03:29:34 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-06-05 03:29:34 +0000 |
commit | 0cd0e350cd3c14ca2f61e9ffbfe71e2815d6eaa2 (patch) | |
tree | 7e5daa7dbcc7f300592978354668b19cadec41c5 /etc | |
parent | 59757db68fcd33bf9e10c5e13b619b2b291bdc07 (diff) |
The ldpd(8) sample config was terribly outdated. Passive interfaces,
for example, were removed in 2013 because they don't make sense in ldpd.
ok deraadt
Diffstat (limited to 'etc')
-rw-r--r-- | etc/examples/ldpd.conf | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/etc/examples/ldpd.conf b/etc/examples/ldpd.conf index ea5fda7974a..b08b4f7eace 100644 --- a/etc/examples/ldpd.conf +++ b/etc/examples/ldpd.conf @@ -1,21 +1,42 @@ -# $OpenBSD: ldpd.conf,v 1.1 2014/07/11 16:32:52 deraadt Exp $ +# $OpenBSD: ldpd.conf,v 1.2 2016/06/05 03:29:33 renato Exp $ # macros -fast="2" +password="secret" # global configuration # router-id 10.0.0.1 -# lfib-update no +# fib-update no +# transport-preference ipv4 -distribution independent -retention liberal -advertisement unsolicited +address-family ipv4 { + # explicit-null yes + # keepalive 120 + # targeted-hello-accept yes + # transport-address 10.0.0.1 -interface bge0 + interface em0 + interface vlan5 { + link-hello-holdtime 9 + link-hello-interval 3 + } + targeted-neighbor 172.16.1.10 +} -interface vlan5 { - hello-interval $fast +neighbor 192.168.1.10 { + password $password } -interface vlan6 { - passive + +l2vpn CUST_A type vpls { + bridge bridge0 + interface em1 + pseudowire mpw0 { + # control-word no + # status-tlv no + neighbor-id 10.0.1.5 + pw-id 100 + } + pseudowire mpw1 { + neighbor-id 10.0.2.8 + pw-id 100 + } } |