Problem with ECMP

André Carlim andre at stubnet.info
Mon Apr 2 21:11:32 CEST 2018


I'm trying to use ECMP, but without success, I'll leave my conf below, 
does anyone know where I'm going wrong?

Q. I have two routers announcing the default route for this "client".

conf:


log syslog all;

# Override router ID
router id 10.192.0.2;

# Turn on global debugging of all protocols
debug protocols all;

protocol direct {
	interface "-eth*", "*";	# Restrict network interfaces it works with
}

filter kernel_export {
     print "filter_name: ", "kernel_export", " protocol: ", proto, " net: 
", net, " krt_metric: ", krt_metric;
     if net = 0.0.0.0/0 then { krt_metric = 100; }
     accept;
}

protocol kernel {
	learn;			# Learn all alien routes from the kernel
	persist;		# Don't remove routes on bird shutdown
	scan time 20;		# Scan kernel routing table every 20 seconds
	import all;		# Default is import all
	export filter kernel_export;		# Default is export none
}

protocol device {
	scan time 10;		# Scan interfaces every 10 seconds
}

protocol static {
	disabled;		# Disable by default
}

filter ospf_import {
     print "router_id: ", ospf_router_id, " net: ", net, " ospf_metric1: 
", ospf_metric1 ;
     if net = 0.0.0.0/0 then { ospf_metric1 = 1000; }
     accept;
}

protocol ospf {
         ecmp yes;
         import filter ospf_import;
         export all;
         tick 1;
         rfc1583compat yes;

         area 0.0.0.0 {
                 networks {
                         10.192.0.0/29;
                 };

                 interface "eth1" {
                         type broadcast;
                         authentication none;
                 };

         };
}



output of 'show ospf state' in this host:

area 0.0.0.0

	router 10.192.0.1
		distance 10
		network 10.192.0.0/29 metric 10
		external 0.0.0.0/0 metric2 10000

	router 10.192.0.2
		distance 0
		network 10.192.0.0/29 metric 10
		external 100.126.0.44/32 metric2 10000

	router 10.192.0.3
		distance 10
		network 10.192.0.0/29 metric 10
		external 0.0.0.0/0 metric2 10000

	network 10.192.0.0/29
		dr 10.192.0.3
		distance 10
		router 10.192.0.3
		router 10.192.0.2
		router 10.192.0.1


-- 
André Carlim
StubNetwork


More information about the Bird-users mailing list