LK 41
LK 41
LK 41
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
[email protected].
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#ip dh
Router(config)#ip dhcp p
Router(config)#i
Router(config)#int
Router(config)#interface fa
Router(config)#interface gi
Router(config)#interface gigabitEthernet 0/0.30
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.30, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.10.1 255.255.255.240
Router(config-subif)#exit
Router(config)#ip dh
Router(config)#ip dhcp poo
Router(config)#ip dhcp pool
Router(config)#ip dhcp pool CC
Router(dhcp-config)#ne
Router(dhcp-config)#network 192.168.10.0 255.255.255.240
Router(dhcp-config)#def
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged
192.168.10.1.
Router(dhcp-config)#exit
Router(config)#in
Router(config)#interface g
Router(config)#interface gigabitEthernet 0/0.40
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.40, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation d
Router(config-subif)#encapsulation dot1Q 40
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.20.1 255.255.255.240
Router(config-subif)#exit
Router(config)#ip dhc
Router(config)#ip dhcp pool DD
Router(dhcp-config)#net
Router(dhcp-config)#network 192.168.20.0 255.255.255.240
Router(dhcp-config)#def
Router(dhcp-config)#default-router 192.168.20.1
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#do w%DHCPD-4-PING_CONFLICT: DHCP address conflict: server
pinged 192.168.20.1.
rite
Building configuration...
[OK]
Router(dhcp-config)#%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged
192.168.20.1.
Router(dhcp-config)#end
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/0
Router(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#ip address 192.168.1.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2
Router(config)#
Switch A
Switch(config)#iniint
Switch(config)#interface ra
Switch(config)#interface range fa
Switch(config)#interface range fastEthernet 0/1-13
Switch(config-if-range)#wsw
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode ac
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#swi
Switch(config-if-range)#switchport ac
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1
(30), with Switch FastEthernet0/1 (1).
Switch(config-if-range)#nex
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1
(30), with Switch FastEthernet0/1 (1).
it
Switch(config)#no
Switch(config)#nonnoninte
Switch(config)#interface ra
Switch(config)#interface range fa
Switch(config)#interface range fastEthernet 0/1-13
Switch(config-if-range)#no swit
Switch(config-if-range)#no switchport acc
Switch(config-if-range)#no switchport access v
Switch(config-if-range)#no switchport access vlan 30
Switch(config-if-range)#exit
Switch(config)#inter
Switch(config)#interface ra
Switch(config)#interface range fa
Switch(config)#interface range fastEthernet 0/2-13
Switch(config-if-range)#swit
Switch(config-if-range)#switchport mo
Switch(config-if-range)#switchport mode acc
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#swit
Switch(config-if-range)#switchport acc
Switch(config-if-range)#switchport access vlan
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#exit
Switch(config)#
Switch(config)#interface FastEthernet0/14
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/1
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 40
Switch(config-if)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1
(40), with Switch FastEthernet0/1 (1).
Router B
Cisco 2620 (MPC860) processor (revision 0x200) with 253952K/8192K bytes of memory
.
Processor board ID JAD05190MTZ (4292891495)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
3 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
63488K bytes of ATA CompactFlash (Read/Write)
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet1/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
Router(config-if)#exit
Router(config)#inte
Router(config)#interface fa
Router(config)#interface fastEthernet 0/1.10
%Invalid interface type and number
Router(config)#conf
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#inte
Router(config)#interface fa
Router(config)#interface fastEthernet 1/0.10
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet1/0.10, changed state to up
Router(config-subif)#ip
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.30.1 255.255.255.248
Router(config-subif)#no shu
Router(config-subif)#no shutdown
Router(config-subif)#exitend
^
% Invalid input detected at '^' marker.
Router(config-subif)#exit
Router(config)#inte
Router(config)#interface fa
Router(config)#interface fastEthernet 1/0.10
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q .10
^
% Invalid input detected at '^' marker.
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.30.1 255.255.255.248
Router(config-subif)#no sgut
Router(config-subif)#no shu
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#inte
Router(config)#interface fa
Router(config)#interface fastEthernet 1/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet1/0.20, changed state to up
Router(config-subif)#enc
Router(config-subif)#encapsulation d
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.40.1 255.255.255.248
Router(config-subif)#no sh
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#ip dhc
Router(config)#ip dhcp poo
Router(config)#ip dhcp pool AA
Router(dhcp-config)#ne
Router(dhcp-config)#network 192.168.40.0 255.255.255.248
Router(dhcp-config)#de
Router(dhcp-config)#default-router 192.168.40.1
Router(dhcp-config)#dns se
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]
Router#%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged 192.168.40.1.
%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged 192.168.40.1.
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.2
Router(config)#
Switch B
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memory.
Switch>enable
Switch#
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vlan 10 name BB
VLAN 10 modified:
Name: BB
Switch(vlan)#vlan 20 name AA
VLAN 20 modified:
Name: AA
Switch(vlan)#
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface FastEthernet0/1
Switch(config-if)#
Switch(config-if)#switchport mode trunk
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/6
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/5
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/4
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/3
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/2
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/2
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/2
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/3
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/4
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/5
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/6
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/7
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/6
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface FastEthernet0/7
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport access vlan 20
Switch(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
Router C
Cisco 2620 (MPC860) processor (revision 0x200) with 253952K/8192K bytes of memory
.
Processor board ID JAD05190MTZ (4292891495)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
3 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
63488K bytes of ATA CompactFlash (Read/Write)
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet1/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
Router(config-if)#exit
Router(config)#inte
Router(config)#interface fa
Router(config)#interface fastEthernet 0/1.10
%Invalid interface type and number
Router(config)#conf
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#inte
Router(config)#interface fa
Router(config)#interface fastEthernet 1/0.10
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet1/0.10, changed state to up
Router(config-subif)#ip
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.30.1 255.255.255.248
Router(config-subif)#no shu
Router(config-subif)#no shutdown
Router(config-subif)#exitend
^
% Invalid input detected at '^' marker.
Router(config-subif)#exit
Router(config)#inte
Router(config)#interface fa
Router(config)#interface fastEthernet 1/0.10
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q .10
^
% Invalid input detected at '^' marker.
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.30.1 255.255.255.248
Router(config-subif)#no sgut
Router(config-subif)#no shu
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#inte
Router(config)#interface fa
Router(config)#interface fastEthernet 1/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet1/0.20, changed state to up
Router(config-subif)#enc
Router(config-subif)#encapsulation d
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add
Router(config-subif)#ip address 192.168.40.1 255.255.255.248
Router(config-subif)#no sh
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#ip dhc
Router(config)#ip dhcp poo
Router(config)#ip dhcp pool AA
Router(dhcp-config)#ne
Router(dhcp-config)#network 192.168.40.0 255.255.255.248
Router(dhcp-config)#de
Router(dhcp-config)#default-router 192.168.40.1
Router(dhcp-config)#dns se
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]
Router#%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged 192.168.40.1.
%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged 192.168.40.1.
Router>enable
Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#
Router(config-if)#exit
Router(config)#
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.2
Router(config)#