Changes between Version 19 and Version 20 of ipv6v4config
- Timestamp:
- May 14, 2017, 2:26:58 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ipv6v4config
v19 v20 6 6 === Remote Access === 7 7 8 When you are working in the Virtualbox interface you can't copy and paste commands in to that interface. You might have experienced this already. What you can do is you can remote log in to your campuslanVM.8 When you are working in the Virtualbox interface you can't copy and paste commands in to that interface. You might have experienced this already. What you can do is you can remote log in to your CampusLAN VM. 9 9 10 10 '''Windows''' 11 11 - Download and run Putty 12 - type your campuslanVM's IP address in the hostname text box. set the port as 2212 - type your CampusLAN VM's IP address in the hostname text box. set the port as 22 13 13 - Click open and You will ask the username and Password of your vm. Provide them and You will be able to remote login to your linux machine 14 14 … … 16 16 17 17 - Open a terminal 18 - Type ssh learn@<Your campuslanVM's IP address>18 - Type ssh learn@<Your CampusLAN VM's IP address> 19 19 - Give password and you will have a remote login to your linux machine 20 20 … … 24 24 25 25 ||= Device Name =||= Console Port Number =|| 26 ||! AccessRt||2100||26 ||!BorderRt||2100|| 27 27 ||!CampusCore||2200|| 28 28 ||FacACore||2300|| 29 29 ||FacBCore||2400|| 30 || FacASw||2500||31 || FacBSw||2600||30 ||Dept1PC||2500|| 31 ||Dept2PC||2600|| 32 32 33 33 You can use this port to log in to the device's console port. Use the following code … … 180 180 |--------------- 181 181 {{{#!td 182 FacASw 182 Dept1PC 183 183 }}} 184 184 {{{#!td … … 200 200 |--------------- 201 201 {{{#!td 202 FacBSw 202 Dept2PC 203 203 }}} 204 204 {{{#!td … … 291 291 |---------------- 292 292 {{{#!td rowspan=2 align=justify 293 FacASw 293 Dept1PC 294 294 }}} 295 295 {{{#!td … … 308 308 |---------------- 309 309 {{{#!td rowspan=2 align=justify 310 FacBSw 310 Dept2PC 311 311 }}} 312 312 {{{#!td … … 408 408 ==== Distribution Network Layer ==== 409 409 410 Let's Start Configuring the distribution layer of your campus LAN. Here you will have to configure both Layer 3 switches (FacACore and FacBCore) and Layer 2 Switches ( FacASw and FacBSw). Let's start from Layer 3 devices.410 Let's Start Configuring the distribution layer of your campus LAN. Here you will have to configure both Layer 3 switches (FacACore and FacBCore) and Layer 2 Switches (Dept1PC and Dept2PC). Let's start from Layer 3 devices. 411 411 412 412 - Login to FacACore device … … 436 436 * Give the Description of the interface 437 437 {{{ 438 FacACore(config-if)#description link to FacASw438 FacACore(config-if)#description link to Dept1PC 439 439 FacACore(config-if)#exit 440 440 }}} … … 450 450 FacBCore(config-if)#switchport mode trunk 451 451 FacBCore(config-if)#switchport trunk encapsulation dot1q 452 FacBCore(config-if)#description link to FacBSw452 FacBCore(config-if)#description link to Dept2PC 453 453 FacBCore(config-if)#exit 454 454 }}} 455 - Now the Core devices are done, Let's Configure Layer 2 devices. Login to FacASw455 - Now the Core devices are done, Let's Configure Layer 2 devices. Login to Dept1PC 456 456 - Go to config mode 457 457 - Create Vlan 10 and Give a Name 458 458 {{{ 459 FacASw(config)# vlan 10460 FacASw(config-vlan)# name Dept1461 FacASw(config-vlan)# exit459 Dept1PC(config)# vlan 10 460 Dept1PC(config-vlan)# name Dept1 461 Dept1PC(config-vlan)# exit 462 462 }}} 463 463 - Next configure fast ethernet interface which connects to the Core device and give a description 464 464 {{{ 465 FacASw(config)#interface FastEthernet 1/15466 FacASw(config-if)#switchport mode trunk467 FacASw(config-if)#switchport trunk encapsulation dot1q468 FacASw(config-if)#description link to FacACore469 FacASw(config-if)#exit465 Dept1PC(config)#interface FastEthernet 1/15 466 Dept1PC(config-if)#switchport mode trunk 467 Dept1PC(config-if)#switchport trunk encapsulation dot1q 468 Dept1PC(config-if)#description link to FacACore 469 Dept1PC(config-if)#exit 470 470 }}} 471 471 - Configure fast ethernet interface, which connects to the User PC to an access port of VLAN 10 and give a description 472 472 {{{ 473 FacASw(config-if)#switchport mode access474 FacASw(config-if)#switchport access vlan 10475 FacASw(config-if)#description link to Dept1PC476 FacASw(config-if)#exit477 }}} 478 - Follow the same steps for FacBSw479 {{{ 480 FacBSw(config)# vlan 20481 FacBSw(config-vlan)# name Dept2482 FacBSw(config-vlan)# exit483 FacBSw(config)#interface FastEthernet 1/15484 FacBSw(config-if)#switchport mode trunk485 FacBSw(config-if)#switchport trunk encapsulation dot1q486 FacBSw(config-if)#description link to FacBCore487 FacBSw(config-if)#exit488 FacBSw(config-if)#switchport mode access489 FacBSw(config-if)#switchport access vlan 20490 FacBSw(config-if)#description link to Dept2PC491 FacBSw(config-if)#exit473 Dept1PC(config-if)#switchport mode access 474 Dept1PC(config-if)#switchport access vlan 10 475 Dept1PC(config-if)#description link to Dept1PC 476 Dept1PC(config-if)#exit 477 }}} 478 - Follow the same steps for Dept2PC 479 {{{ 480 Dept2PC(config)# vlan 20 481 Dept2PC(config-vlan)# name Dept2 482 Dept2PC(config-vlan)# exit 483 Dept2PC(config)#interface FastEthernet 1/15 484 Dept2PC(config-if)#switchport mode trunk 485 Dept2PC(config-if)#switchport trunk encapsulation dot1q 486 Dept2PC(config-if)#description link to FacBCore 487 Dept2PC(config-if)#exit 488 Dept2PC(config-if)#switchport mode access 489 Dept2PC(config-if)#switchport access vlan 20 490 Dept2PC(config-if)#description link to Dept2PC 491 Dept2PC(config-if)#exit 492 492 }}} 493 493 - You have configured your distribution layer. Check and verify the connectivity … … 525 525 }}} 526 526 - Now you have done CampusCore configuration. Let's start routers Configuration. 527 - Login to AccessRt Router and switch to config mode527 - Login to BorderRt Router and switch to config mode 528 528 - Router's IP allocation is as follows. You can get your Router's IP address from here 529 529 ||= Interface Name =||= IP Address =|| … … 532 532 - Let's configure the LAN port (fa 0/0) 533 533 {{{ 534 AccessRt(config)#interface fastEthernet 0/0535 AccessRt(config-if)#ip address 10.0.255.254 255.255.255.0536 AccessRt(config-if)#description LAN Port connects to CampusCore537 AccessRt(config-if)#no shutdown538 AccessRt(config-if)#exit534 BorderRt(config)#interface fastEthernet 0/0 535 BorderRt(config-if)#ip address 10.0.255.254 255.255.255.0 536 BorderRt(config-if)#description LAN Port connects to CampusCore 537 BorderRt(config-if)#no shutdown 538 BorderRt(config-if)#exit 539 539 }}} 540 540 - Configure the WAN port (fa 0/1) 541 541 {{{ 542 AccessRt(config)#interface fastEthernet 0/1543 AccessRt(config-if)#ip address x.x.x.x 255.255.255.0544 AccessRt(config-if)#description WAN Port Bridged with campuslanhost545 AccessRt(config-if)#no shutdown546 AccessRt(config-if)#exit547 }}} 548 - You have successfully finished connecting CampusCore to the AccessRt router. Let's verify the connectivity using the ping command.549 - Go to AccessRt and ping to CampusCore switch's VLAN 255 Interface IP542 BorderRt(config)#interface fastEthernet 0/1 543 BorderRt(config-if)#ip address x.x.x.x 255.255.255.0 544 BorderRt(config-if)#description WAN Port Bridged with CampusLAN host 545 BorderRt(config-if)#no shutdown 546 BorderRt(config-if)#exit 547 }}} 548 - You have successfully finished connecting CampusCore to the BorderRt router. Let's verify the connectivity using the ping command. 549 - Go to BorderRt and ping to CampusCore switch's VLAN 255 Interface IP 550 550 {{{ 551 551 ping 10.0.255.253 … … 558 558 559 559 ==== Routing ==== 560 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.560 If You go to the Dept1PC and try a Ping to Dept2PC (10.0.20.1) and BorderRt 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. 561 561 562 562 - Following are the default routes of the devices 563 563 ||= Device =||= Default Route IP =||= Description =|| 564 || AccessRt || 192.248.6.254 || This is Configured in the router in the Lab ||565 || CampusCore || 10.0.255.254 || AccessRt routers LAN interface IP ||564 || BorderRt || 192.248.6.254 || This is Configured in the router in the Lab || 565 || CampusCore || 10.0.255.254 || BorderRt routers LAN interface IP || 566 566 || FacACore || 10.0.2.1 || CampusCore Switches VLAN2 Interface IP || 567 567 || FacBCore || 10.0.2.1 || CampusCore Switches VLAN2 Interface IP || 568 || FacASw|| none || This is a L2 device ||569 || FacBSw|| none || This is a L2 device ||568 || Dept1PC || none || This is a L2 device || 569 || Dept2PC || none || This is a L2 device || 570 570 || Dept1PC || 10.0.10.254 || FacACore Switches VLAN10 Interface IP || 571 571 || Dept2PC || 10.0.20.254 || FacBCore Switches VLAN20 Interface IP || … … 634 634 }}} 635 635 * Both should give you a reply 636 - add the AccessRt Routers default gateway637 * Go to AccessRt and switch to config mode636 - add the BorderRt Routers default gateway 637 * Go to BorderRt and switch to config mode 638 638 * Add the default route 639 639 {{{ 640 640 CampusCore(config)# ip route 0.0.0.0 0.0.0.0 192.248.6.254 641 641 }}} 642 * Verify the route by ping a known host from the AccessRt router642 * Verify the route by ping a known host from the BorderRt router 643 643 {{{ 644 644 ping 192.248.1.161 … … 648 648 649 649 ==== Router Configuration ==== 650 Now you have complete most of the IPv4 Configurations. Go to DeptPC1 and try a ping to the DNS server (192.248.1.161). You will not get a reply. That is because your PC have a private IP. There must be a method to connect to the outside using a private IP. What we use here is adding a NAT in AccessRt router. There are different NAT types what we use here is the method called NAT overload. In this method we can assign set of local(private) IP's and overload it to a interface with a global(public) IP. So the outside the network will see the traffic coming from local IP's as traffic coming from the global IP. Let's add this configuration to your router.651 - Login to AccessRt Router and switch to config mode650 Now you have complete most of the IPv4 Configurations. Go to DeptPC1 and try a ping to the DNS server (192.248.1.161). You will not get a reply. That is because your PC have a private IP. There must be a method to connect to the outside using a private IP. What we use here is adding a NAT in BorderRt router. There are different NAT types what we use here is the method called NAT overload. In this method we can assign set of local(private) IP's and overload it to a interface with a global(public) IP. So the outside the network will see the traffic coming from local IP's as traffic coming from the global IP. Let's add this configuration to your router. 651 - Login to BorderRt Router and switch to config mode 652 652 - Let's define the local IP set in a ACL. 653 653 {{{ 654 AccessRt(config)#access-list 1 permit 10.0.0.0 0.0.255.255654 BorderRt(config)#access-list 1 permit 10.0.0.0 0.0.255.255 655 655 }}} 656 656 - Then dd the NAT entry. In your router public IP is assign to FastEthernet 0/1 interface 657 657 {{{ 658 AccessRt(config)#ip nat inside source list 1 interface FastEthernet0/1 overload658 BorderRt(config)#ip nat inside source list 1 interface FastEthernet0/1 overload 659 659 }}} 660 660 - Then define NAT inside & NAT outside. NAT inside is your router's LAN port and Nat outside is your router's WAN port. 661 661 {{{ 662 AccessRt(config)#interface FastEthernet 0/0663 AccessRt(config-if)#ip nat inside664 AccessRt(config-if)#exit665 AccessRt(config)#interface FastEthernet 0/1666 AccessRt(config-if)#ip nat outside667 AccessRt(config-if)#exit662 BorderRt(config)#interface FastEthernet 0/0 663 BorderRt(config-if)#ip nat inside 664 BorderRt(config-if)#exit 665 BorderRt(config)#interface FastEthernet 0/1 666 BorderRt(config-if)#ip nat outside 667 BorderRt(config-if)#exit 668 668 }}} 669 669 - Finally add a static route in the router so that the traffic coming to our defined network will redirect to CampusCore switch 670 670 {{{ 671 AccessRt(config)#ip route 10.0.0.0 255.255.0.0 10.0.255.253671 BorderRt(config)#ip route 10.0.0.0 255.255.0.0 10.0.255.253 672 672 }}} 673 673 - Now try a ping from DeptPC1 to the DNS server. It should give reply