Hi, I am having some trouble getting ospfd working as I would like it.
1) I have a VLAN trunk on box 2 (rl2 interface), where the physical interface has no IP address. It has 12 vlandevs which are each gateways to various networks. I would like each of these vlandevs to show up as the next hop when viewing rib from another connected router. 2) I entered interface vlan2 in ospf area 0.0.0.1, which is exchanging all 12 vlan routes with box3. 3) If I enter other vlan interfaces into area 0.0.0.1 on box2 (vlan3 { passive } ), I suffer some ospf problems in area 0.0.0.0 on my gw (box1). Basically, what happens is that I can reach the gw from box2 and box3 but not from machines connected to vlan3 on box2... 4) On box3, all routes show up with next-hop of 10.1.0.1 (vlan2 on box2), instead of the IP addresses of the respective vlan interfaces. I want the real gateways to show up as next-hops. box2 ----------- [root@box2 etc]# cat hostname.rl2 up descr VLAN_TRUNK group VLAN_TRUNK [root@box2 etc]# cat hostname.vlan* inet 10.1.56.1 255.255.248.0 NONE vlan 10 vlandev rl2 inet 10.1.64.1 255.255.248.0 NONE vlan 11 vlandev rl2 inet 10.1.72.1 255.255.252.0 NONE vlan 12 vlandev rl2 inet 10.1.76.1 255.255.252.0 NONE vlan 13 vlandev rl2 inet 10.1.80.1 255.255.248.0 NONE vlan 14 vlandev rl2 inet 10.1.88.1 255.255.248.0 NONE vlan 15 vlandev rl2 inet 10.1.0.1 255.255.248.0 NONE vlan 2 vlandev rl2 inet 10.1.8.1 255.255.252.0 NONE vlan 3 vlandev rl2 inet 10.1.12.1 255.255.252.0 NONE vlan 4 vlandev rl2 inet 10.1.16.1 255.255.252.0 NONE vlan 5 vlandev rl2 inet 10.1.32.1 255.255.252.0 NONE vlan 7 vlandev rl2 inet 10.1.48.1 255.255.248.0 NONE vlan 9 vlandev rl2 <ospfd.conf area> area 0.0.0.1 { auth-type simple auth-key $password interface vlan2 { metric 10 } } [root@box2 ~]# ospfctl s n ID Pri State DeadTime Address Iface Uptime 10.1.0.12 1 FULL/DR 00:00:36 10.1.0.12 vlan2 03:13:12 10.0.0.1 1 FULL/BCKUP 00:00:31 10.0.0.1 rl0 01:29:54 [root@box2 ~]# ospfctl s r Destination Nexthop Path Type Type Cost Uptime 10.1.0.12 10.1.0.12 Intra-Area Router 10 03:13:20 10.1.0.0/21 10.1.0.1 Intra-Area Network 10 03:13:25 10.0.0.1 10.0.0.1 Intra-Area Router 10 01:29:58 10.0.0.0/21 10.0.0.2 Intra-Area Network 10 01:30:08 0.0.0.0/0 10.0.0.1 Type 1 ext Network 110 01:29:58 10.2.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.3.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.4.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.5.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.6.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.7.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.8.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.9.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.10.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.11.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.12.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 10.13.1.0/24 10.1.0.12 Type 1 ext Network 110 03:13:20 box 3 -------------------------- [root@box3 ~]# ospfctl s r Destination Nexthop Path Type Type Cost Uptime 10.0.0.1 10.1.0.1 Inter-Area Router 20 01:45:09 10.0.0.2 10.1.0.1 Intra-Area Router 10 03:28:33 10.0.0.0/21 10.1.0.1 Inter-Area Network 20 01:45:15 10.1.0.0/21 10.1.0.12 Intra-Area Network 10 03:28:38 0.0.0.0/0 10.1.0.1 Type 1 ext Network 120 01:45:09 10.1.8.0/22 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.12.0/22 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.16.0/22 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.32.0/22 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.48.0/21 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.56.0/21 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.64.0/21 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.72.0/22 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.76.0/22 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.80.0/21 10.1.0.1 Type 1 ext Network 110 03:28:33 10.1.88.0/21 10.1.0.1 Type 1 ext Network 110 03:28:33 10.100.103.0/24 10.1.0.1 Type 1 ext Network 110 03:28:33 192.168.1.0/24 10.1.0.1 Type 1 ext Network 110 03:28:33 Above: next-hop for 10.1.8.0/22 should be 10.1.8.1 (vlan3 interface on box2), and so forth. -mj