[Xorp-users] help, about OSPF configuration

wubaochuan wubaochuan at seu.edu.cn
Thu May 27 08:01:16 PDT 2010


hello everyone,
When I configure OSPF, I have the following problems.

All the following four machine run Fedora 12, and the first one and the
fourth one run as hosts, the second and
the third run as routers.

eth0 eth0 eth1 eth0 eth1 eth0
|------| |----------| |------------| |-------|
| | | | | | | |
| |----------------| |---------------------|
|----------------------------| |
|------| |----------| |------------| |-------|

hostA routerA routerB hostB
eth0 10.10.10.2/24 eth0 10.10.10.1/24 eth0 10.10.11.2/24 eth0 10.10.12.2/24
eth1 10.10.11.1/24 eth1 10.10.12.1/24

routerA is configured with the following file:
//routeA config.boot
interfaces {
interface eth0 {
vif eth0 {
address 10.10.10.1 {
prefix-length: 24
}
}
}
interface eth1 {
vif eth1 {
address 10.10.11.1 {
prefix-length: 24
}
}
}

}

fea {
unicast-forwarding4 {
disable: false
}
}

protocols {
ospf4 {
router-id: 10.10.10.1

area 0.0.0.0 {
interface eth0 {
/* link-type: "broadcast" */
vif eth0 {
address 10.10.10.1 {
}
}
}
}
area 0.0.0.1 {
/* area-type: "normal" */

interface eth1 {
vif eth1 {
address 10.10.11.1 {
}
}
}
}
}
}


and routerB is configured with the following file:
//routerB config.boot
interfaces {
interface eth0 {
vif eth0 {
address 10.10.11.2 {
prefix-length: 24
}
}
}
interface eth1 {
vif eth1 {
address 10.10.12.1 {
prefix-length: 24
}
}
}
}

fea {
unicast-forwarding4 {
disable: false /*enable ipv4 forwarding*/
}
}

protocols {
ospf4 {
router-id: 10.10.11.2

area 0.0.0.1 {
interface eth0 {
/* link-type: "broadcast" */
vif eth0 {
address 10.10.11.2 {
}
}
}
}

area 0.0.0.2 {
/* area-type: "normal" */

interface eth1 {
vif eth1 {
address 10.10.12.1 {
}
}
}
}
}
}

When I run `show ospf4 neighbor` in routerB's xorpsh,
the following lines appear:
Address Interface State ID Pri Dead
10.10.11.1 eth0/eth0 Full 10.10.10.1 128 34

but when I run `show route table ipv4 unicast ospf` in xorpsh
nothing appears,
I want to know, why there is nothing in the route table?
how can I fix this problem?


thanks
Chuan



More information about the Xorp-users mailing list