실습2
구성
pc0
pc1
pc3
스위치1
Switch>EN
Switch#CONF T
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no ip domain-lookup
Switch(config)#line con 0
Switch(config-line)#logging synch
Switch(config-line)#exec-t 0 0
Switch(config-line)#exit
Switch(config)#ho SW1
SW1(config)#
SW1(config)#vlan database
^
% Invalid input detected at '^' marker.
SW1(config)#exit
SW1#
%SYS-5-CONFIG_I: Configured from console by console
SW1#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.
SW1(vlan)#
SW1(vlan)#vlan 10 name vlan 10
^
% Invalid input detected at '^' marker.
SW1(vlan)#vlan 10 name vlan_10
VLAN 10 added:
Name: vlan_10
SW1(vlan)#vlan 20 name vlan_20
VLAN 20 added:
Name: vlan_20
SW1(vlan)#exit
APPLY completed.
Exiting....
SW1#
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#
SW1(config)#
SW1(config)#
SW1(config)#int fa0/10
SW1(config-if)#switchport mode trunk
SW1(config-if)#
SW1(config-if)#exit
SW1(config)#
SW1(config)#int fa0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
SW1(config-if)#exit
SW1(config)#int fa0/2
SW1(config-if)#sw mo acc
SW1(config-if)#sw acc vlan 20
SW1(config-if)#exit
SW1(config)#
SW1(config)#do sh vlan b
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24
10 vlan_10 active Fa0/1
20 vlan_20 active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SW1(config)#
%LINK-5-CHANGED: Interface FastEthernet0/10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to up
SW1(config)#do show interface trunk
Port Mode Encapsulation Status Native vlan
Fa0/10 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/10 1-1005
Port Vlans allowed and active in management domain
Fa0/10 1,10,20
Port Vlans in spanning tree forwarding state and not pruned
Fa0/10 1,10,20
SW1(config)#
SW1(config)#
SW1#
%SYS-5-CONFIG_I: Configured from console by console
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#
라우터1
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#no ip domain-lookup
Router(config)#line con 0
Router(config-line)#logging synch
Router(config-line)#exec-t 0 0
Router(config-line)#exit
Router(config)#ho R1
R1(config)#
R1(config)#
R1(config)#int fa0/0
R1(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#
R1(config-if)#int fa0/0.10
%LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed state to up
R1(config-subif)#
R1(config-subif)#encapsulation dot1q 10
R1(config-subif)#ip add 192.168.10.1 255.255.255.0
R1(config-subif)#exit
R1(config)#
R1(config)#int fa0/0.20
%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed state to up
R1(config-subif)#
R1(config-subif)#enca
R1(config-subif)#encapsulation dot
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip add 192.168.20.1 255.255.255.0
R1(config-subif)#
R1(config-subif)#exit
R1(config)#
R1(config)#
R1(config)#
R1(config)#
R1(config)#int fa0/1
R1(config-if)#ip add 1.1.12.1 255.255.255.0
R1(config-if)#
R1(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
R1(config-if)#
R1(config-if)#
R1(config-if)#exit
R1(config)#
R1(config)#ip route 192.168.30.0 255.255.255.0 1.1.12.2
R1(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R1(config)#
라우터2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#line con 0
Router(config-line)#logging synch
Router(config-line)#exec-t 0 0
Router(config-line)#exit
Router(config)#ho R2
R2(config)#
R2(config)#
R2(config)#int fa0/0
R2(config-if)#ip add 192.168.30.1 255.255.255.0
R2(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#
R2(config-if)#
R2(config-if)#exit
R2(config)#
R2(config)#int fa0/1
R2(config-if)#ip add 1.1.12.2 255.255.255.0
R2(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R2(config-if)#
R2(config-if)#exit
R2(config)#ip route 192.168.10.0 255.255.255.0 1.1.12.1
R2(config)#ip route 192.168.20.0 255.255.255.0 1.1.12.1
R2(config)#
R2(config)#
R2(config)#
'MY 교육수강 > CCNA(8.16~26)' 카테고리의 다른 글
18(목) - 실습 1 (0) | 2011.08.18 |
---|---|
18(목) - 실습 4 (0) | 2011.08.18 |
18(목) - 실습 3 (0) | 2011.08.18 |
정리(1) - 라우터, 서버, FTP백업까지 (0) | 2011.08.17 |
CCNA 수업 - 즐겨찾기 모음 (0) | 2011.08.16 |