From Fedora Project Wiki

< Networking

Revision as of 15:22, 30 October 2012 by Pavlix (talk | contribs) (Created page with "=== Dynamic routing === ==== OSPF for IPv4 example (BIRD) ==== <pre> router id 15; protocol direct { interface "*"; } protocol static { route 10.9.5.0/24 via "eth2"; } ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Dynamic routing

OSPF for IPv4 example (BIRD)

router id 15;

protocol direct {
	interface "*";
}

protocol static {
	route 10.9.5.0/24 via "eth2";
}

protocol kernel {
	persist;		# Don't remove routes on bird shutdown
	scan time 20;		# Scan kernel routing table every 20 seconds
	export all;		# Default is export none
}

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

protocol ospf {
	export filter {
		if source ~ [RTS_DEVICE, RTS_STATIC, RTS_STATIC_DEVICE] then {
			ospf_metric1 = 100;
			accept;
		}
		reject;
	};
	area 0.0.0.0 {
		networks {
			10.0.0.0/24;
		};
		interface "eth1" {
		};
	};
}