Annotated edit history of
ospfd.conf version 3, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 2 |
JohnMcPherson |
1 |
Sample ospfd.conf |
| 1 |
GregHarris |
2 |
hostname hostname(1) |
| 3 |
MattBrown |
3 |
! IMPORTANT: Please leave vty password as metanet |
| |
|
4 |
password metanet |
| 1 |
GregHarris |
5 |
enable password !YourEnablePassword |
| |
|
6 |
log file /var/log/zebra/ospfd.log |
| |
|
7 |
! |
| |
|
8 |
interface lo |
| |
|
9 |
! |
| |
|
10 |
interface eth0 |
| |
|
11 |
! |
| 2 |
JohnMcPherson |
12 |
! use tap0 for ETHERTAP, wan0 for TUN |
| 1 |
GregHarris |
13 |
interface tap0 |
| 2 |
JohnMcPherson |
14 |
! interface wan0 |
| 1 |
GregHarris |
15 |
ip ospf hello-interval 30 |
| |
|
16 |
ip ospf dead-interval 120 |
| |
|
17 |
ip ospf retransmit-interval 15 |
| |
|
18 |
! |
| |
|
19 |
interface sit0 |
| |
|
20 |
! |
| |
|
21 |
interface ppp0 |
| |
|
22 |
! |
| |
|
23 |
router ospf |
| |
|
24 |
ospf router-id <eth0 ip address> |
| |
|
25 |
passive-interface eth0 |
| |
|
26 |
network <Internal Network Range>/<netmask>[1] area <areanum> |
| |
|
27 |
|
| |
|
28 |
! area is calculated by the two middle ip components - eg, |
| |
|
29 |
! for network 10.66.1.0/24 |
| |
|
30 |
! 66 and 1 - padding with 0's to three digits each 066001 |
| |
|
31 |
! and dropping leading 0's |
| |
|
32 |
|
| |
|
33 |
network 192.168.0.0/16 area 0 |
| |
|
34 |
|
| |
|
35 |
!REQUIRED. DO NOT CHANGE |
| |
|
36 |
|
| |
|
37 |
!smux peer .1.3.6.1.4.1.3317.1.2.5 |
| |
|
38 |
! not sure if smux is necessary, mine works without it even though I spend hours trying to get it working |
| |
|
39 |
! smux -- snmp multiplexor, requires snmp running on your server, allows you to query the routing daemon using snmp (I believe) |
| |
|
40 |
line vty |
| |
|
41 |
! allows you to configure ospfd via a telnet connection to localhost on port 2604 (ospfd), requires password set |
| |
|
42 |
|
| |
|
43 |
[1] This must be in the form: x.x.x.x/x - e.g. 10.3.1.0/24 |