| 550 | - Both these ping commands should give you a reply |
| 551 | |
| 552 | ==== Routing ==== |
| 553 | If You go to the Dept1PC and try a Ping to Dept2PC (10.0.20.1) and AccessRt router LAN port(10.0.255.254), you will not get a reply. That is because your LAN has no routing in it. In this Lab we will enable OSPF in all the core switches and we will add default routes in all core devices and the router. |
| 554 | |
| 555 | - Following are the default routes of the devices |
| 556 | ||= Device =||= Default Route IP =||= Description =|| |
| 557 | || AccessRt || 192.248.6.254 || This is Configured in the router in the Lab || |
| 558 | || CampusCore || 10.0.255.254 || AccessRt routers LAN interface IP || |
| 559 | || FacACore || 10.0.2.1 || CampusCore Switches VLAN2 Interface IP || |
| 560 | || FacBCore || 10.0.2.1 || CampusCore Switches VLAN2 Interface IP || |
| 561 | || FacASw || none || This is a L2 device || |
| 562 | || FacBSw || none || This is a L2 device || |
| 563 | || Dept1PC || 10.0.10.254 || FacACore Switches VLAN10 Interface IP || |
| 564 | || Dept2PC || 10.0.20.254 || FacBCore Switches VLAN20 Interface IP || |
| 565 | - Now let's enable OSPF on Core devices. Starting from CampusCore |
| 566 | * Login to CampusCore switch and switch to config mode |
| 567 | * Define OSPF process and Process ID. In this lab use process ID as 1 |
| 568 | {{{ |
| 569 | CampusCore(config)#router ospf 1 |
| 570 | }}} |
| 571 | * Give the router ID |
| 572 | {{{ |
| 573 | CampusCore(config-router)#router-id 10.0.2.1 |
| 574 | }}} |
| 575 | * You are going to announce the subnets which are directly connects to you. Use this command for that |
| 576 | {{{ |
| 577 | CampusCore(config-router)#redistribute connected subnets |
| 578 | }}} |
| 579 | * You are announcing to the core network (10.0.2.0/24) in area 2. Use this command for this |
| 580 | {{{ |
| 581 | CampusCore(config-router)#network 10.0.2.0 0.0.0.255 area 2 |
| 582 | CampusCore(config-router)#exit |
| 583 | }}} |
| 584 | * You are enabling OSPF on VLAN 2. Use this command for that. |
| 585 | {{{ |
| 586 | CampusCore(config)#interface vlan 2 |
| 587 | CampusCore(config-if)# ip ospf 1 area 2 |
| 588 | CampusCore(config-if)# exit |
| 589 | }}} |
| 590 | * Now you have enable OSPF on CampusCore Switch. Now lets add the default Route. |
| 591 | {{{ |
| 592 | CampusCore(config)# ip route 0.0.0.0 0.0.0.0 10.0.255.254 |
| 593 | }}} |
| 594 | - Follow the same steps in FacACore and FacBCore |
| 595 | * FacACore |
| 596 | {{{ |
| 597 | FacACore(config)#router ospf 1 |
| 598 | FacACore(config-router)#router-id 10.0.2.2 |
| 599 | FacACore(config-router)#redistribute connected subnets |
| 600 | FacACore(config-router)#network 10.0.2.0 0.0.0.255 area 2 |
| 601 | FacACore(config-router)#exit |
| 602 | FacACore(config)#interface vlan 2 |
| 603 | FacACore(config-if)# ip ospf 1 area 2 |
| 604 | FacACore(config-if)# exit |
| 605 | FacACore(config)# ip route 0.0.0.0 0.0.0.0 10.0.2.1 |
| 606 | }}} |
| 607 | *FacBCore |
| 608 | {{{ |
| 609 | FacBCore(config)#router ospf 1 |
| 610 | FacBCore(config-router)#router-id 10.0.2.3 |
| 611 | FacBCore(config-router)#redistribute connected subnets |
| 612 | FacBCore(config-router)#network 10.0.2.0 0.0.0.255 area 2 |
| 613 | FacBCore(config-router)#exit |
| 614 | FacBCore(config)#interface vlan 2 |
| 615 | FacBCore(config-if)# ip ospf 1 area 2 |
| 616 | FacBCore(config-if)# exit |
| 617 | FacBCore(config)# ip route 0.0.0.0 0.0.0.0 10.0.2.1 |
| 618 | }}} |