... | ... | @@ -7,67 +7,65 @@ Fast ethernet links use cost 5 and (slower) wifi links use cost 100. Default OSP |
|
|
|
|
|
Static protocol is used for leaf networks hidden behind a neighor router that does not speak OSPF. These static routes are propagated to OSPF, because they are accepted in the OPSF export filter, where also type 1 OSPF metric of 1000 is assigned to them.
|
|
|
|
|
|
`
|
|
|
log syslog all;
|
|
|
|
|
|
router id A.B.C.D;
|
|
|
|
|
|
protocol device {
|
|
|
scan time 10;
|
|
|
}
|
|
|
|
|
|
protocol kernel {
|
|
|
export all;
|
|
|
scan time 15;
|
|
|
}
|
|
|
|
|
|
protocol static {
|
|
|
import all;
|
|
|
|
|
|
route 192.168.X.Y/24 via 192.168.A.B;
|
|
|
route 192.168.X.Z/24 via 192.168.A.B;
|
|
|
}
|
|
|
|
|
|
protocol ospf {
|
|
|
import all;
|
|
|
export filter {
|
|
|
ospf_metric1 = 1000;
|
|
|
if source = RTS_STATIC then accept; else reject;
|
|
|
};
|
|
|
|
|
|
area 0 {
|
|
|
interface "eth0" {
|
|
|
cost 5;
|
|
|
type broadcast;
|
|
|
hello 5; retransmit 2; wait 10; dead 20;
|
|
|
authentication cryptographic; password "XXXX";
|
|
|
};
|
|
|
|
|
|
interface "eth1", "eth2" {
|
|
|
cost 5;
|
|
|
type pointopoint;
|
|
|
hello 5; retransmit 2; wait 10; dead 20;
|
|
|
authentication cryptographic; password "XXXX";
|
|
|
};
|
|
|
|
|
|
interface "ath0" {
|
|
|
cost 1000;
|
|
|
type broadcast;
|
|
|
hello 5; retransmit 2; wait 10; dead 60;
|
|
|
authentication cryptographic; password "XXXX";
|
|
|
};
|
|
|
|
|
|
interface "ath1", "ath2" {
|
|
|
cost 100;
|
|
|
type pointopoint;
|
|
|
hello 5; retransmit 2; wait 10; dead 60;
|
|
|
authentication cryptographic; password "XXXX";
|
|
|
};
|
|
|
|
|
|
interface "*" {
|
|
|
cost 1000;
|
|
|
stub;
|
|
|
};
|
|
|
};
|
|
|
}
|
|
|
` |
|
|
\ No newline at end of file |
|
|
log syslog all;
|
|
|
|
|
|
router id A.B.C.D;
|
|
|
|
|
|
protocol device {
|
|
|
scan time 10;
|
|
|
}
|
|
|
|
|
|
protocol kernel {
|
|
|
export all;
|
|
|
scan time 15;
|
|
|
}
|
|
|
|
|
|
protocol static {
|
|
|
import all;
|
|
|
|
|
|
route 192.168.X.Y/24 via 192.168.A.B;
|
|
|
route 192.168.X.Z/24 via 192.168.A.B;
|
|
|
}
|
|
|
|
|
|
protocol ospf {
|
|
|
import all;
|
|
|
export filter {
|
|
|
ospf_metric1 = 1000;
|
|
|
if source = RTS_STATIC then accept; else reject;
|
|
|
};
|
|
|
|
|
|
area 0 {
|
|
|
interface "eth0" {
|
|
|
cost 5;
|
|
|
type broadcast;
|
|
|
hello 5; retransmit 2; wait 10; dead 20;
|
|
|
authentication cryptographic; password "XXXX";
|
|
|
};
|
|
|
|
|
|
interface "eth1", "eth2" {
|
|
|
cost 5;
|
|
|
type pointopoint;
|
|
|
hello 5; retransmit 2; wait 10; dead 20;
|
|
|
authentication cryptographic; password "XXXX";
|
|
|
};
|
|
|
|
|
|
interface "ath0" {
|
|
|
cost 1000;
|
|
|
type broadcast;
|
|
|
hello 5; retransmit 2; wait 10; dead 60;
|
|
|
authentication cryptographic; password "XXXX";
|
|
|
};
|
|
|
|
|
|
interface "ath1", "ath2" {
|
|
|
cost 100;
|
|
|
type pointopoint;
|
|
|
hello 5; retransmit 2; wait 10; dead 60;
|
|
|
authentication cryptographic; password "XXXX";
|
|
|
};
|
|
|
|
|
|
interface "*" {
|
|
|
cost 1000;
|
|
|
stub;
|
|
|
};
|
|
|
};
|
|
|
} |