Changes between Version 19 and Version 20 of ipv6v4config


Ignore:
Timestamp:
May 14, 2017, 2:26:58 PM (8 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ipv6v4config

    v19 v20  
    66=== Remote Access ===
    77
    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.
     8When 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.
    99
    1010'''Windows'''
    1111 - Download and run ​Putty
    12  - type your campuslan VM's IP address in the hostname text box. set the port as 22
     12 - type your CampusLAN VM's IP address in the hostname text box. set the port as 22
    1313 - 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
    1414
     
    1616
    1717 - Open a terminal
    18  - Type ssh learn@<Your campuslan VM's IP address>
     18 - Type ssh learn@<Your CampusLAN VM's IP address>
    1919 - Give password and you will have a remote login to your linux machine
    2020
     
    2424
    2525||= Device Name =||= Console Port Number =||
    26 ||!AccessRt||2100||
     26||!BorderRt||2100||
    2727||!CampusCore||2200||
    2828||FacACore||2300||
    2929||FacBCore||2400||
    30 ||FacASw||2500||
    31 ||FacBSw||2600||
     30||Dept1PC||2500||
     31||Dept2PC||2600||
    3232
    3333You can use this port to log in to the device's console port. Use the following code
     
    180180|---------------
    181181{{{#!td
    182 FacASw
     182Dept1PC
    183183}}}
    184184{{{#!td
     
    200200|---------------
    201201{{{#!td
    202 FacBSw
     202Dept2PC
    203203}}}
    204204{{{#!td
     
    291291|----------------
    292292{{{#!td rowspan=2 align=justify
    293 FacASw
     293Dept1PC
    294294}}}
    295295{{{#!td
     
    308308|----------------
    309309{{{#!td rowspan=2 align=justify
    310 FacBSw
     310Dept2PC
    311311}}}
    312312{{{#!td
     
    408408==== Distribution Network Layer ====
    409409
    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.
     410Let'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.
    411411
    412412 - Login to FacACore device
     
    436436    * Give the Description of the interface
    437437{{{
    438 FacACore(config-if)#description link to FacASw
     438FacACore(config-if)#description link to Dept1PC
    439439FacACore(config-if)#exit
    440440}}}
     
    450450FacBCore(config-if)#switchport mode trunk
    451451FacBCore(config-if)#switchport trunk encapsulation dot1q
    452 FacBCore(config-if)#description link to FacBSw
     452FacBCore(config-if)#description link to Dept2PC
    453453FacBCore(config-if)#exit
    454454}}}
    455  - Now the Core devices are done, Let's Configure Layer 2 devices. Login to FacASw
     455 - Now the Core devices are done, Let's Configure Layer 2 devices. Login to Dept1PC
    456456 - Go to config mode
    457457 - Create Vlan 10 and Give a Name
    458458{{{
    459 FacASw(config)# vlan 10
    460 FacASw(config-vlan)# name Dept1
    461 FacASw(config-vlan)# exit
     459Dept1PC(config)# vlan 10
     460Dept1PC(config-vlan)# name Dept1
     461Dept1PC(config-vlan)# exit
    462462}}}
    463463 - Next configure fast ethernet interface which connects to the Core device and give a description
    464464{{{
    465 FacASw(config)#interface FastEthernet 1/15
    466 FacASw(config-if)#switchport mode trunk
    467 FacASw(config-if)#switchport trunk encapsulation dot1q
    468 FacASw(config-if)#description link to FacACore
    469 FacASw(config-if)#exit
     465Dept1PC(config)#interface FastEthernet 1/15
     466Dept1PC(config-if)#switchport mode trunk
     467Dept1PC(config-if)#switchport trunk encapsulation dot1q
     468Dept1PC(config-if)#description link to FacACore
     469Dept1PC(config-if)#exit
    470470}}}
    471471 - Configure fast ethernet interface, which connects to the User PC to an access port of VLAN 10 and give a description
    472472{{{
    473 FacASw(config-if)#switchport mode access
    474 FacASw(config-if)#switchport access vlan 10
    475 FacASw(config-if)#description link to Dept1PC
    476 FacASw(config-if)#exit
    477 }}}
    478  - Follow the same steps for FacBSw
    479 {{{
    480 FacBSw(config)# vlan 20
    481 FacBSw(config-vlan)# name Dept2
    482 FacBSw(config-vlan)# exit
    483 FacBSw(config)#interface FastEthernet 1/15
    484 FacBSw(config-if)#switchport mode trunk
    485 FacBSw(config-if)#switchport trunk encapsulation dot1q
    486 FacBSw(config-if)#description link to FacBCore
    487 FacBSw(config-if)#exit
    488 FacBSw(config-if)#switchport mode access
    489 FacBSw(config-if)#switchport access vlan 20
    490 FacBSw(config-if)#description link to Dept2PC
    491 FacBSw(config-if)#exit
     473Dept1PC(config-if)#switchport mode access
     474Dept1PC(config-if)#switchport access vlan 10
     475Dept1PC(config-if)#description link to Dept1PC
     476Dept1PC(config-if)#exit
     477}}}
     478 - Follow the same steps for Dept2PC
     479{{{
     480Dept2PC(config)# vlan 20
     481Dept2PC(config-vlan)# name Dept2
     482Dept2PC(config-vlan)# exit
     483Dept2PC(config)#interface FastEthernet 1/15
     484Dept2PC(config-if)#switchport mode trunk
     485Dept2PC(config-if)#switchport trunk encapsulation dot1q
     486Dept2PC(config-if)#description link to FacBCore
     487Dept2PC(config-if)#exit
     488Dept2PC(config-if)#switchport mode access
     489Dept2PC(config-if)#switchport access vlan 20
     490Dept2PC(config-if)#description link to Dept2PC
     491Dept2PC(config-if)#exit
    492492}}}
    493493 - You have configured your distribution layer. Check and verify the connectivity
     
    525525}}}
    526526 - Now you have done CampusCore configuration. Let's start routers Configuration.
    527  - Login to AccessRt Router and switch to config mode
     527 - Login to BorderRt Router and switch to config mode
    528528 - Router's IP allocation is as follows. You can get your Router's IP address from here
    529529||= Interface Name =||= IP Address =||
     
    532532 - Let's configure the LAN port (fa 0/0)
    533533{{{
    534 AccessRt(config)#interface fastEthernet 0/0
    535 AccessRt(config-if)#ip address 10.0.255.254 255.255.255.0
    536 AccessRt(config-if)#description LAN Port connects to CampusCore
    537 AccessRt(config-if)#no shutdown
    538 AccessRt(config-if)#exit
     534BorderRt(config)#interface fastEthernet 0/0
     535BorderRt(config-if)#ip address 10.0.255.254 255.255.255.0
     536BorderRt(config-if)#description LAN Port connects to CampusCore
     537BorderRt(config-if)#no shutdown
     538BorderRt(config-if)#exit
    539539}}}
    540540 - Configure the WAN port (fa 0/1)
    541541{{{
    542 AccessRt(config)#interface fastEthernet 0/1
    543 AccessRt(config-if)#ip address x.x.x.x 255.255.255.0
    544 AccessRt(config-if)#description WAN Port Bridged with campuslan host
    545 AccessRt(config-if)#no shutdown
    546 AccessRt(config-if)#exit
    547 }}}
    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 IP
     542BorderRt(config)#interface fastEthernet 0/1
     543BorderRt(config-if)#ip address x.x.x.x 255.255.255.0
     544BorderRt(config-if)#description WAN Port Bridged with CampusLAN host
     545BorderRt(config-if)#no shutdown
     546BorderRt(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
    550550{{{
    551551ping 10.0.255.253
     
    558558
    559559==== 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.
     560If 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.
    561561
    562562 - Following are the default routes of the devices
    563563||= 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 ||
    566566|| FacACore || 10.0.2.1 || CampusCore Switches VLAN2 Interface IP ||
    567567|| 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 ||
    570570|| Dept1PC || 10.0.10.254 || FacACore Switches VLAN10 Interface IP ||
    571571|| Dept2PC || 10.0.20.254 || FacBCore Switches VLAN20 Interface IP ||
     
    634634}}}
    635635   * Both should give you a reply
    636  - add the AccessRt Routers default gateway
    637     * Go to AccessRt and switch to config mode
     636 - add the BorderRt Routers default gateway
     637    * Go to BorderRt and switch to config mode
    638638    * Add the default route
    639639{{{
    640640CampusCore(config)# ip route 0.0.0.0 0.0.0.0 192.248.6.254
    641641}}}
    642     * Verify the route by ping a known host from the AccessRt router
     642    * Verify the route by ping a known host from the BorderRt router
    643643{{{
    644644ping 192.248.1.161
     
    648648
    649649==== 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 mode
     650Now 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
    652652 - Let's define the local IP set in a ACL.
    653653{{{
    654 AccessRt(config)#access-list 1 permit 10.0.0.0 0.0.255.255
     654BorderRt(config)#access-list 1 permit 10.0.0.0 0.0.255.255
    655655}}}
    656656 - Then dd the NAT entry. In your router public IP is assign to FastEthernet 0/1 interface
    657657{{{
    658 AccessRt(config)#ip nat inside source list 1 interface FastEthernet0/1 overload
     658BorderRt(config)#ip nat inside source list 1 interface FastEthernet0/1 overload
    659659}}}
    660660 - Then define NAT inside & NAT outside. NAT inside is your router's LAN port and Nat outside is your router's WAN port.
    661661{{{
    662 AccessRt(config)#interface FastEthernet 0/0
    663 AccessRt(config-if)#ip nat inside
    664 AccessRt(config-if)#exit
    665 AccessRt(config)#interface FastEthernet 0/1
    666 AccessRt(config-if)#ip nat outside
    667 AccessRt(config-if)#exit
     662BorderRt(config)#interface FastEthernet 0/0
     663BorderRt(config-if)#ip nat inside
     664BorderRt(config-if)#exit
     665BorderRt(config)#interface FastEthernet 0/1
     666BorderRt(config-if)#ip nat outside
     667BorderRt(config-if)#exit
    668668}}}
    669669 - Finally add a static route in the router so that the traffic coming to our defined network will redirect to CampusCore switch
    670670{{{
    671 AccessRt(config)#ip route 10.0.0.0 255.255.0.0 10.0.255.253
     671BorderRt(config)#ip route 10.0.0.0 255.255.0.0 10.0.255.253
    672672}}}
    673673 - Now try a ping from DeptPC1 to the DNS server. It should give reply