| 493 | |
| 494 | ==== Connecting LAN to the Router ==== |
| 495 | |
| 496 | Your Campus LAN is connecting to the outside through a border router. Your CampusCore switch connects to this border router. In this link router's fast ethernet interface IP connects with the Core switch's vlan interface IP. Let's start configuring this link starting from the CampusCore. |
| 497 | |
| 498 | - Login to CampusCore switch and switch to config mode |
| 499 | - Create VLAN 255 and name it Public |
| 500 | {{{ |
| 501 | CampusCore(config)# vlan 255 |
| 502 | CampusCore(config-vlan)# name Public |
| 503 | CampusCore(config-vlan)# exit |
| 504 | }}} |
| 505 | - Then assign the IP Address to the VLAN interface. Get the IP from the [#point1 table]. In the real situation this VLAN could be a public IP range which is assign to your Institute. In this Lab we are using a private IP block. |
| 506 | {{{ |
| 507 | CampusCore(config)#interface vlan 255 |
| 508 | CampusCore(config-if)# ip address 10.0.255.254 255.255.255.0 |
| 509 | CampusCore(config-if)# exit |
| 510 | }}} |
| 511 | - Next configure fast ethernet interface which connects to the Core device and give a description.You can find then from the [#point2 table] |
| 512 | {{{ |
| 513 | CampusCore(config)#interface FastEthernet 1/15 |
| 514 | CampusCore(config-if)#switchport mode access |
| 515 | CampusCore(config-if)#switchport access vlan 255 |
| 516 | CampusCore(config-if)#description link to Border Router |
| 517 | CampusCore(config-if)#exit |
| 518 | }}} |
| 519 | - Now you have done CampusCore configuration. Let's start routers Configuration. |
| 520 | - Login to AccessRt Router and switch to config mode |
| 521 | - Router's IP allocation is as follows. You can get your Router's IP address from here |
| 522 | ||= Interface Name =||= IP Address =|| |
| 523 | ||Fast Ethernet 0/0 ||10.0.255.254/24|| |
| 524 | ||Fast Ethernet 0/1 ||<Your Routers WAN IP>|| |
| 525 | - Let's configure the LAN port (fa 0/0) |
| 526 | {{{ |
| 527 | AccessRt(config)#interface fastEthernet 0/0 |
| 528 | AccessRt(config-if)#ip address 10.0.255.254 255.255.255.0 |
| 529 | AccessRt(config-if)#description LAN Port connects to CampusCore |
| 530 | AccessRt(config-if)#no shutdown |
| 531 | AccessRt(config-if)#exit |
| 532 | }}} |
| 533 | - Configure the WAN port (fa 0/1) |
| 534 | {{{ |
| 535 | AccessRt(config)#interface fastEthernet 0/1 |
| 536 | AccessRt(config-if)#ip address x.x.x.x 255.255.255.0 |
| 537 | AccessRt(config-if)#description WAN Port Bridged with campuslan host |
| 538 | AccessRt(config-if)#no shutdown |
| 539 | AccessRt(config-if)#exit |
| 540 | }}} |
| 541 | - You have successfully finished connecting CampusCore to the AccessRt router. Let's verify the connectivity using the ping command. |
| 542 | - Go to AccessRt and ping to CampusCore switch's VLAN 255 Interface IP |
| 543 | {{{ |
| 544 | ping 10.0.255.253 |
| 545 | }}} |
| 546 | - Now Check the routers connectivity in WAN port. Ping to the WAN Gateway |
| 547 | {{{ |
| 548 | ping 192.248.6.254 |
| 549 | }}} |