... | ... | @@ -7,28 +7,27 @@ 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;
|
|
|
log syslog all;
|
|
|
|
|
|
router id A.B.C.D;
|
|
|
router id A.B.C.D;
|
|
|
|
|
|
protocol device {
|
|
|
protocol device {
|
|
|
scan time 10;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
protocol kernel {
|
|
|
protocol kernel {
|
|
|
export all;
|
|
|
scan time 15;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
protocol static {
|
|
|
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 {
|
|
|
protocol ospf {
|
|
|
import all;
|
|
|
export filter {
|
|
|
ospf_metric1 = 1000;
|
... | ... | @@ -69,5 +68,4 @@ protocol ospf { |
|
|
stub;
|
|
|
};
|
|
|
};
|
|
|
}
|
|
|
` |
|
|
\ No newline at end of file |
|
|
} |