[BACK]Return to ldpd.conf CVS log [TXT][DIR] Up to [local] / src / etc / examples

File: [local] / src / etc / examples / ldpd.conf (download)

Revision 1.3, Mon Aug 6 17:26:31 2018 UTC (5 years, 10 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.2: +4 -4 lines

Correct example file since reserved words cannot be used as macros. Not only
that, the macro used was password and if we changed it to something like
pass="secret" it would log it if the daemon was ran in verbose mode.

Hint and OK claudio@

#	$OpenBSD: ldpd.conf,v 1.3 2018/08/06 17:26:31 mestre Exp $

# macros
peer1="192.168.1.10"

# global configuration
# router-id 10.0.0.1
# fib-update no
# transport-preference ipv4

address-family ipv4 {
	# explicit-null yes
	# keepalive 120
	# targeted-hello-accept yes
	# transport-address 10.0.0.1

	interface em0
	interface vlan5 {
		link-hello-holdtime 9
		link-hello-interval 3
	}
	targeted-neighbor 172.16.1.10
}

neighbor $peer1 {
	password "secret"
}

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
	}
}