12520334_LeMinhQuan_IT005_E21_2_LAB4

download 12520334_LeMinhQuan_IT005_E21_2_LAB4

of 11

Transcript of 12520334_LeMinhQuan_IT005_E21_2_LAB4

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    1/11

    L Minh QunMSSV: 12520334Lp: IT005.E21.2

    BO CO THC HNH 4MN: NHP MN MNG MY TNH

    * Bc 0:

    * Bc 1+2:Router>configRouter>enableRouter#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname Router1Router1(config)#lineRouter1(config)#line console 0Router1(config-line)#password 12520334

    Router1(config-line)#loginRouter1(config-line)#exitRouter1(config)#enable secret 12520334Router1(config)#line vty 0Router1(config-line)#password 12520334Router1(config-line)#loginRouter1(config-line)#exitRouter1(config)#exitRouter1#%SYS-5-CONFIG_I: Configured from console by consoleRouter1#exit

    Router1 con0 is now available

    Press RETURN to get started.

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    2/11

    User Access Verification

    Password:

    Router1>Router1>enable

    Password:Router1#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.

    *Bc 3 + 4:Switch>enableSwitch#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname Switch1Switch1(config)#line console 0Switch1(config-line)#password 12520334Switch1(config-line)#loginSwitch1(config-line)#exitSwitch1(config)#enable secret 12520334Switch1(config)#service password-Switch1(config)#service password-encryptionSwitch1(config)#exitSwitch1#%SYS-5-CONFIG_I: Configured from console by consoleexit

    Switch1 con0 is now available

    Press RETURN to get started.

    User Access Verification

    Password:

    Switch1>enablePassword:Switch1#

    * Bc 5:Router1#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router1(config)#interface fastRouter1(config)#interface fastEthernet 0/0Router1(config-if)#ip address 10.0.2.1 255.0.0.0Router1(config-if)#no shutdown

    Router1(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

    %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

    Router1(config-if)#interface fasRouter1(config-if)#exitRouter1(config)#interRouter1(config)#interface fas

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    3/11

    Router1(config)#interface fastEthernet 0/1Router1(config-if)#ip address 10.0.1.1 255.0.0.0Router1(config-if)#no shutdownRouter1(config-if)#exitRouter1(config)#exitRouter1#%SYS-5-CONFIG_I: Configured from console by console

    Router1#show runRouter1#show running-configBuilding configuration...

    Current configuration : 624 bytes!version 12.4no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Router1!!!enable secret 5 $1$mERr$wrBezy9/5orsNSwh7iN7s/!!!!!!!!!!!!spanning-tree mode pvst!!!!interface FastEthernet0/0ip address 10.0.2.1 255.0.0.0duplex autospeed auto!interface FastEthernet0/1ip address 10.0.1.1 255.0.0.0duplex autospeed auto!interface Vlan1no ip addressshutdown!ip classless!!!!!!!

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    4/11

    line con 0password 12520334login!line aux 0!line vty 0 1password 12520334loginline vty 2 4login!!!End

    * Bc 6:Switch1#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch1(config)#vlan 10Switch1(config-vlan)#name v10Switch1(config-vlan)#exitSwitch1(config)#

    * Bc 7:Switch1(config)#int fastEthernet 0/1Switch1(config-if)#swSwitch1(config-if)#switchport accSwitch1(config-if)#switchport access vlan 10Switch1(config-if)#exitSwitch1(config)#int fastSwitch1(config)#int fastEthernet 0/2Switch1(config-if)#swSwitch1(config-if)#switchport accSwitch1(config-if)#switchport access vlan 10Switch1(config-if)#exitSwitch1(config)#int fastSwitch1(config)#int fastEthernet 0/3Switch1(config-if)#switSwitch1(config-if)#switchport acSwitch1(config-if)#switchport access vlan 10Switch1(config-if)#exitSwitch1(config)#exitSwitch1#%SYS-5-CONFIG_I: Configured from console by console

    Switch1#show runSwitch1#show running-configBuilding configuration...

    Current configuration : 1186 bytes!version 12.1no service timestamps log datetime msecno service timestamps debug datetime msecservice password-encryption!hostname Switch1!enable secret 5 $1$mERr$wrBezy9/5orsNSwh7iN7s/!

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    5/11

    !spanning-tree mode pvst!interface FastEthernet0/1switchport access vlan 10!interface FastEthernet0/2switchport access vlan 10!interface FastEthernet0/3switchport access vlan 10!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface Vlan1no ip addressshutdown!!line con 0password 7 08701E1B5B49564446login!

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    6/11

    line vty 0password 7 08701E1B5B49564446loginline vty 1 4loginline vty 5 15login!!End

    * Bc 8:Switch1#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch1(config)#interface vlan 10Switch1(config-if)#%LINK-5-CHANGED: Interface Vlan10, changed state to up

    %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

    Switch1(config-if)#ip address 10.0.1.2 255.0.0.0Switch1(config-if)#no shutdownSwitch1(config-if)#exitSwitch1(config)#ip default-Switch1(config)#ip default-gateway 10.0.1.1Switch1(config)#exitSwitch1#

    * Bc 9+10:

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    7/11

    * Bc 11+ PC0

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    8/11

    + PC1

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    9/11

    * Bc 12:+ Router1

    Router1#copy running-config startup-config+ Switch1

    Switch1#copy running-config startup-config

    * Bc 13:

    * Bc 14:

    Packet Tracer SERVER Command Line 1.0SERVER>ping 10.0.2.1

    Pinging 10.0.2.1 with 32 bytes of data:

    Reply from 10.0.2.1: bytes=32 time=1ms TTL=255Reply from 10.0.2.1: bytes=32 time=0ms TTL=255Reply from 10.0.2.1: bytes=32 time=0ms TTL=255Reply from 10.0.2.1: bytes=32 time=0ms TTL=255

    Ping statistics for 10.0.2.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

    Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 1ms, Average = 0ms

    SERVER>ping 10.0.1.2

    Pinging 10.0.1.2 with 32 bytes of data:

    Request timed out.Request timed out.Reply from 10.0.1.2: bytes=32 time=0ms TTL=254

    Reply from 10.0.1.2: bytes=32 time=0ms TTL=254

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    10/11

    Ping statistics for 10.0.1.2:

    Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),Approximate round trip times in milli-seconds:

    Minimum = 0ms, Maximum = 0ms, Average = 0ms

    SERVER>ping 10.0.1.2

    Pinging 10.0.1.2 with 32 bytes of data:

    Reply from 10.0.1.2: bytes=32 time=0ms TTL=254Reply from 10.0.1.2: bytes=32 time=0ms TTL=254Reply from 10.0.1.2: bytes=32 time=0ms TTL=254Reply from 10.0.1.2: bytes=32 time=0ms TTL=254

    Ping statistics for 10.0.1.2:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

    Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0ms

    SERVER>ping 10.0.1.3

    Pinging 10.0.1.3 with 32 bytes of data:

    Reply from 10.0.1.3: bytes=32 time=11ms TTL=127Reply from 10.0.1.3: bytes=32 time=0ms TTL=127Reply from 10.0.1.3: bytes=32 time=0ms TTL=127Reply from 10.0.1.3: bytes=32 time=0ms TTL=127

    Ping statistics for 10.0.1.3:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

    Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 11ms, Average = 2ms

    SERVER>ping 10.0.1.4

    Pinging 10.0.1.4 with 32 bytes of data:

    Reply from 10.0.1.4: bytes=32 time=12ms TTL=127Reply from 10.0.1.4: bytes=32 time=0ms TTL=127Reply from 10.0.1.4: bytes=32 time=0ms TTL=127Reply from 10.0.1.4: bytes=32 time=0ms TTL=127

    Ping statistics for 10.0.1.4:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

    Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 12ms, Average = 3ms

    SERVER>

    * Bc 15:PC>telnet 10.0.1.2Trying 10.0.1.2 ...Open

    User Access Verification

    Password:Switch1>enablePassword:Switch1#copySwitch1#copy running-config tftpAddress or name of remote host []? 10.0.2.2

  • 8/11/2019 12520334_LeMinhQuan_IT005_E21_2_LAB4

    11/11

    Destination filename [Switch1-confg]? sw1.txt

    Writing running-config...!![OK - 1270 bytes]

    1270 bytes copied in 0.011 secs (115000 bytes/sec)Switch1#

    * Bc 16:PC>telnet 10.0.2.1Trying 10.0.2.1 ...Open

    User Access Verification

    Password:Router1>enablePassword:Router1#copy running-config tftpAddress or name of remote host []? 10.0.2.2Destination filename [Router1-confg]? r1.txt

    Writing running-config...!![OK - 624 bytes]

    624 bytes copied in 0 secsRouter1#

    * Bc 17:+ Router 1