The following example configures the basic OSPF topology as displayed in Basic OSPF Topology:
Router 1(rw)->configure Router 1(rw-config)->interface vlan 1 Router 1(rw-config-intf-vlan.0.1)->ipv6 forwarding Router 1(rw-config-intf-vlan.0.1)->ipv6 ospf 1 area 0.0.0.1 Router 1(rw-config-intf-vlan.0.1)->no shutdown Router 1(rw-config-intf-vlan.0.1)->exit Router 1(rw-config)->interface vlan 2 Router 1(rw-config-intf-vlan.0.1)->ipv6 forwarding Router 1(rw-config-intf-vlan.0.1)->ipv6 ospf 1 area 0.0.0.1 Router 1(rw-config-intf-vlan.0.1)->no shutdown Router 1(rw-config-intf-vlan.0.2)->exit Router 1(rw-config)->ipv6 router ospf 1 Router 1(rw-101-config-ospfv3)->router-id 1.1.1.1 Router 1(rw-101-config-ospfv3)->exit Router 1(rw-config)->
Router 2(rw)->configure Router 2(rw-config)->interface vlan 2 Router 2(rw-config-intf-vlan.0.2)->ipv6 forwarding Router 2(rw-config-intf-vlan.0.2)->ipv6 ospf 1 area 0.0.0.1 Router 2(rw-config-intf-vlan.0.2)->exit Router 2(rw-config)->interface vlan 3 Router 2(rw-config-intf-vlan.0.3)->ipv6 forwarding Router 2(rw-config-intf-vlan.0.3)->ipv6 ospf 1 area 0.0.0.0 Router 2(rw-config-intf-vlan.0.3)->exit Router 2(rw-config)->ipv6 router ospf 1 Router 2(rw-config-ospfv3)->router-id 2.2.2.2 Router 2(rw-config-ospfv3)->exit Router 2(rw-config)->