Changes between Version 21 and Version 22 of Cnbp2019/Agenda/NetworkSetup


Ignore:
Timestamp:
Mar 4, 2019, 11:42:15 AM (5 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Cnbp2019/Agenda/NetworkSetup

    v21 v22  
    4242||      e7      ||      Trunk   ||      10      ||      2   || 
    4343                                                               
    44 ----                                                                                                                   
    45                                                                
    46 ||=     **Host Devices**        =||=    **IPv4**        =||=    **IPv6**        =||             
    47 ||      PC-1    ||  10.XY.10.1  ||      2401:DD00:20XY:1110::1/64       ||             
    48 ||      PC-2    ||              10.XY.20.1      ||      2401:DD00:20XY:1120::1/64       ||             
    49 ||      PC-3    ||              10.XY.20.2      ||      2401:DD00:20XY:1120::2/64       ||             
    50 ||      PC-4    ||      10.XY.30.1      ||      2401:DD00:20XY:1230::1/64       ||             
    51 ||      PC-5    ||      10.XY.60.1      ||      2401:DD00:20XY:2160::1/64       ||             
    52 ||      PC-6    ||      10.XY.70.1      ||      2401:DD00:20XY:2270::1/64       ||
    53 ||      PC-7    ||      10.XY.70.2      ||      2401:DD00:20XY:2270::2/64       ||     
    54 ||      PC-8    ||      10.XY.80.1      ||      2401:DD00:20XY:2280::1/64       ||
    55 ||      Monitoring-Server       ||              10.XY.5.LMN     ||      2401:DD00:20XY:5::AAAA/64       ||             
    56 ||      Server  ||      192.168.XY.PQR  ||      2401:DD00:20XY:1::PQR/64        ||             
    57 ||      GUI-PC  ||||            via DHCP                ||             
    58                                                                
    59                                                                
    60 ----                                                           
    61 
    62 ----
     44
    6345
    6446
     
    149131login local
    150132transport input ssh
     133exit
     134}}}
     135   * Add SNMP community and location details
     136{{{
     137snmp-server community <claaspasword> ro
     138snmp-server ifindex persist
     139snmp-server contact NOC
     140snmp-server location Faculty_One
    151141}}}
    152142 - Now '''save the configurations'''. you have to Go to privileged mode and give the following command
     
    515505
    516506
    517 
    518 
    519 = Temp Data =
    520 
    521  
    522 
    523 
    524     * Go to Dept1PC and try ping the gateway (VLAN 10 Interface IP of FacACore)
    525 {{{
    526 ping 10.0.10.254
    527 }}}
    528     * You should get a reply
    529     * Try the same in Dept2PC
    530 
    531 
    532     * Verify the route by ping a known host from the !BorderRt router
    533 {{{
    534 ping 192.248.1.161
    535 ping www.google.com
    536 }}}
    537     * Both should give you a reply
    538 
    539  - Some troubleshooting commands
    540     * You can get the routing table by following
    541 {{{
    542 Router#show ip route
    543 }}}
    544     * To get OSPF routes
    545 {{{
    546 Router#show ip route ospf
    547 }}}
    548     * To get ospf neighbors
    549 {{{
    550 Router#show ip ospf neighbor
    551 }}}
    552     * To reset OSPF process
    553 {{{
    554 clear ip ospf process
    555 }}}
    556    
     507== Configure End Devices ==
     508
     509=== Configure PC's ===
     510
     511* Right click on '''PC-1''' and select '''Console''', this will open a terminal or putty session on your '''User A''' host machine.
     512  * Enter following commands,
     513{{{
     514PC-1> ip 10.XY.10.1 24 10.XY.10.254
     515PC-1> ip dns 10.XY.0.1
     516PC-1> ip 2401:DD00:20XY:1110::1/64 2401:DD00:20XY:1110::ffff
     517PC-1> ip dns6 2401:DD00:20XY:1::FFFE
     518PC-1> save
     519}}}
     520>We will use the DNS forwarder installed in pfsense.
     521  * For troubleshooting and configuration verification, we can use:
     522{{{
     523PC-1> show ip
     524PC-1> show ipv6
     525}}}
     526* Based on the following table configure all other end-user PC's just as above. You may need to change IP addresses.
     527||=     **Host Devices**        =||=    **IPv4**        =||=    **IPv6**        =||             
     528||      PC-1    ||  10.XY.10.1  ||      2401:DD00:20XY:1110::1/64       ||             
     529||      PC-2    ||              10.XY.20.1      ||      2401:DD00:20XY:1120::1/64       ||             
     530||      PC-3    ||              10.XY.20.2      ||      2401:DD00:20XY:1120::2/64       ||             
     531||      PC-4    ||      10.XY.30.1      ||      2401:DD00:20XY:1230::1/64       ||             
     532||      PC-5    ||      10.XY.60.1      ||      2401:DD00:20XY:2160::1/64       ||             
     533||      PC-6    ||      10.XY.70.1      ||      2401:DD00:20XY:2270::1/64       ||
     534||      PC-7    ||      10.XY.70.2      ||      2401:DD00:20XY:2270::2/64       ||     
     535||      PC-8    ||      10.XY.80.1      ||      2401:DD00:20XY:2280::1/64       ||
     536||      Monitoring-Server       ||              10.XY.5.LMN     ||      2401:DD00:20XY:5::AAAA/64       ||             
     537||      Web-Server      ||      192.168.XY.PQR  ||      2401:DD00:20XY:1::PQR/64        ||             
     538||      GUI-PC  ||||            via DHCP                ||             
     539                                                               
     540* On '''User B''' switch on '''Monitoring-Server''' and  '''Web-Server'''. Log-in as user '''cnbp2019''' with the class password.
     541   * Edit the following file to insert ip details according to the above table, you may also need to check the [wiki:Cnbp2019/Agenda/IpAllocation IP allocation table].
     542{{{
     543sudo vi /etc/netplan/50-cloud-init.yaml
     544}}}
     545   * Edit details as follows
     546{{{
     547# This file describes the network interfaces available on your system
     548# For more information, see netplan(5).
     549network:
     550    ethernets:
     551      enp0s3:     
     552         addresses:
     553         - 192.248.6.XY/24
     554         dhcp4: false
     555         gateway4: 192.248.6.254
     556         nameservers:
     557             addresses:
     558             - 192.248.6.201
     559             search:
     560             - instXY.ac.lk
     561    version: 2
     562
     563}}}
     564   * Restart servers.
     565{{{
     566sudo init 6
     567}}}
     568* Test end-user connectivity using ping command on each.