OSPF routing
| conf t |
| enter into configuration mode on #main router |
| router ospf 1 |
| configuring OSPF with OSPF ID 1. This ID should be the same on the other routers. |
| router-id 200.200.200.200 |
| create router ID |
| network 10.0.0.0 0.0.0.3 area 0 |
| share network. Instead of the 255.255.255.252 subnet mask it is the reverse of the subnet mask. Area is 0, for example defining at a Core level. For more remote users higher area number should be used by segments. |
| end |
| conf t |
| enter into configuration mode on the routers |
| router ospf 1 |
| configuring OSPF with OSPF ID 1 |
| network 10.0.0.0 0.0.0.3 area 0 |
| network 192.168.2.0 0.0.0.255 area 0 |
| share network |
| router-id 200.200.200.200 |
| create a router ID |
| passive-interface fa0/1 |
| permit share routing on the specified interface, because there is no router there side |
| conf t |
| enter into configuration mode on #main router |
| ip route 0.0.0.0 0.0.0.0 10.0.0.2 |
| router ospf 1 |
| default-information originate |
| share the common settings with the connected OSPF routers |
| int fa0/0 |
| bandwidth 50 |
| set bandwidth in kilobyte value |
| ip ospf cost 1 |
| set communication cost numerical value |
| exit |
| ip ospf authentication-key 1 cisco |
| define authentication key |
| no area 0 authentication message-digest |
| setup authentication |
| show ip ospf neighbor |
| neighbor information |
| show ip ospf |
| detailed information for diagnostics |
| show ip route ospf |
| show only ospf routes |
| clear ip ospf process |
| reset ospf settings |
| end |