실습2
각 라우터와 스위치에 기본설정을 해둡니다.
!
en
conf t
no ip domain-lookup
line con 0
logging synch
exec-t 0 0
exit
ho R1(라우터이름)
PC와 서버에 기본설정을 해줍니다.
3번문제
R3(config)#
R3(config)#line vty 0 4
R3(config-line)#password cisco
R3(config-line)#exit
R3(config)#
R3(config)#
R3(config)#access-list 100 deny tcp 100.100.100.0 0.0.0.255 host 130.130.30.3 dq 80
^
% Invalid input detected at '^' marker.
R3(config)#access-list 100 deny tcp 100.100.100.0 0.0.0.255 host 130.130.30.3 eq 80
R3(config)#access-list 100 permit ip any any
R3(config)#
R3(config)#
R3(config)#int fa0/0
R3(config-if)#ip acce
R3(config-if)#ip access-group 100 out
R3(config-if)#exit
R3(config)#
R3(config)#
R3(config)#
PC0에서 웹에 접속할 때 연결이 되지 않는다는 걸 알 수 있다.
하지만 ping은 접속되어야 한다. 잘 연결되고 있다.
4번
R2(config)#
R2(config)#access-list 110 deny tcp 100.100.110.0 0.0.0.255 host 1.1.23.3 eq 23
R2(config)#access-list 110 deny tcp 100.100.110.0 0.0.0.255 host 130.130.30.1 eq 23
R2(config)#access-list 110 permit ip any any
R2(config)#
R2(config-if)#ip acce
R2(config-if)#ip access-group 110 out
R2(config-if)#exit
5번
R1(config)#access-list 10 deny 200.200.200.0 0.0.0.255
R1(config)#acce
R1(config)#access-list 10 permit any
R1(config)#
R1(config)#
R1(config)#int fa0/0.100
R1(config-subif)#ip acce
R1(config-subif)#ip access-group 10 out
R1(config-subif)#exit
[1,2번 설정]
스위치1
Switch>!
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)#
sw1(config)#
sw1(config)#
sw1(config)#int range fa0/10 , fa 0/13
sw1(config-if-range)#sw mo trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to up
sw1(config-if-range)#
sw1(config-if-range)#exit
sw1(config)#
sw1(config)#vtp mode server
Device mode already VTP SERVER.
sw1(config)#vtp domain ccna
Changing VTP domain name from NULL to ccna
sw1(config)#vtp password cisco
Setting device VLAN database password to cisco
sw1(config)#
sw1(config)#
sw1(config)#
sw1(config)#vlan 100
sw1(config-vlan)#name vlan_100
sw1(config-vlan)#exit
sw1(config)#
sw1(config)#vlan 110
sw1(config-vlan)#name vlan_110
sw1(config-vlan)#exit
sw1(config)#
sw1(config)#do sh vlan b
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24
100 vlan_100 active
110 vlan_110 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
sw1(config)#
sw1(config)#
sw1(config)#??
sw1(config)#int fa0/1
sw1(config-if)#sw mo acc
sw1(config-if)#sw acc vlan 100
sw1(config-if)#exit
sw1(config)#
sw1(config)#int fa0/2
sw1(config-if)#sw mo acc
sw1(config-if)#sw acc vlan 110
sw1(config-if)#
sw1(config-if)#
sw1(config-if)#?
sw1(config-if)#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/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24
100 vlan_100 active Fa0/1
110 vlan_110 active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
sw1(config-if)#
sw1(config-if)#
%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-if)#
스위치2
Switch>!
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 sw2
sw2(config)#
sw2(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to up
sw2(config)#
sw2(config)#
sw2(config)#int fa0/13
sw2(config-if)#sw mo trunk
sw2(config-if)#
sw2(config-if)#
sw2(config-if)#vtp mode client
Setting device to VTP CLIENT mode.
sw2(config)#vtp domain ccna
Changing VTP domain name from NULL to ccna
sw2(config)#vtp password cisco
Setting device VLAN database password to cisco
sw2(config)#
sw2(config)#
sw2(config)#
sw2(config)#do sh vlan b
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24
100 vlan_100 active
110 vlan_110 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
sw2(config)#
sw2(config)#
sw2(config)#int fa0/1
sw2(config-if)#sw mo acc
sw2(config-if)#?
sw2(config-if)#sw acc vlan 100
sw2(config-if)#exit
sw2(config)#int fa0/2
sw2(config-if)#sw mo acc
sw2(config-if)#sw acc vlan 110
sw2(config-if)#
sw2(config-if)#exit
sw2(config)#
스위치3
Switch>!
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 sw3
sw3(config)#
sw3(config)#vlan 200
sw3(config-vlan)#name vlan_200
sw3(config-vlan)#exit
sw3(config)#
sw3(config)#vlan 210
sw3(config-vlan)#name vlan_210
sw3(config-vlan)#exit
sw3(config)#
sw3(config)#int fa0/1
sw3(config-if)#sw mo acc
sw3(config-if)#sw acc vlan 200
sw3(config-if)#exit
sw3(config)#
sw3(config)#int fa0/2
sw3(config-if)#sw mo acc
sw3(config-if)#sw acc vlan 210
sw3(config-if)#exit
sw3(config)#
sw3(config)#
sw3(config)#int fa0/10
sw3(config-if)#sw mo trunk
sw3(config-if)#
sw3(config-if)#exit
sw3(config)#
sw3(config)#
%LINK-5-CHANGED: Interface FastEthernet0/10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to up
sw3(config)#
스위치4
Switch>!
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 sw4
sw4(config)#
sw4(config)#vlan 300
sw4(config-vlan)#name vlan_300
sw4(config-vlan)#exit
sw4(config)#
sw4(config)#int range fa0/1 - 2 , fa0/10
sw4(config-if-range)#sw mo acc
sw4(config-if-range)#sw acc vlan 300
sw4(config-if-range)#exit
sw4(config)#
sw4(config)#
sw4(config)#
%LINK-5-CHANGED: Interface FastEthernet0/10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to up
sw4(config)#
라우터1
Router>!
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 R1
R1(config)#
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.100
%LINK-5-CHANGED: Interface FastEthernet0/0.100, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.100, changed state to up
R1(config-subif)#
R1(config-subif)#en dot 100
R1(config-subif)#ip add 100.100.100.1 255.255.255.0
R1(config-subif)#exit
R1(config)#int fa0/0.110
%LINK-5-CHANGED: Interface FastEthernet0/0.110, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.110, changed state to up
R1(config-subif)#
R1(config-subif)#en dot 110
R1(config-subif)#ip add 100.100.110.1 255.255.255.0
R1(config-subif)#exit
R1(config)#
R1(config)#???
R1(config)#int s0/0
R1(config-if)#ip add 1.1.12.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no sh
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
R1(config-if)#exit
R1(config)#
R1(config)#
R1(config)#
R1(config)#router rip
R1(config-router)#ver 2
R1(config-router)#no auto
R1(config-router)#net 1.0.0.0
R1(config-router)#net 100.0.0.0
R1(config-router)#exit
R1(config)#
R1(config)#
R1(config)#
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
R1(config)#
라우터2
Router>!
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)#
R2(config)#
R2(config)#
R2(config)#int fa0/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)#int fa0/0.200
%LINK-5-CHANGED: Interface FastEthernet0/0.200, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.200, changed state to up
R2(config-subif)#
R2(config-subif)#en dot 200
R2(config-subif)#ip add 200.200.200.1 255.255.255.0
R2(config-subif)#exit
R2(config)#
R2(config)#int fa0/0.210
%LINK-5-CHANGED: Interface FastEthernet0/0.210, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.210, changed state to up
R2(config-subif)#
R2(config-subif)#en dot 210
R2(config-subif)#ip add 200.200.210.1 255.255.255.0
R2(config-subif)#exit
R2(config)#
R2(config)#int s0/0
R2(config-if)#ip add 1.1.12.2 255.255.255.0
R2(config-if)#no sh
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
R2(config-if)#
R2(config-if)#exit
R2(config)#
R2(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
R2(config)#
R2(config)#int s0/1
R2(config-if)#ip add 1.1.23.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
%LINK-5-CHANGED: Interface Serial0/1, changed state to down
R2(config-if)#
R2(config-if)#
R2(config-if)#exit
R2(config)#
R2(config)#router rip
R2(config-router)#ver 2
R2(config-router)#no auto
R2(config-router)#net 1.0.0.0
R2(config-router)#net 200.200.200.0
R2(config-router)#net 200.200.210.0
R2(config-router)#exit
R2(config)#
R2(config)#
R2(config)#
R2(config)#
%LINK-5-CHANGED: Interface Serial0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up
R2(config)#
라우터3
Router>!
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 R3
R3(config)#
R3(config)#
R3(config)#
R3(config)#int fa0/0
R3(config-if)#ip add 130.130.30.1 255.255.255.0
R3(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
R3(config-if)#
R3(config-if)#exit
R3(config)#
R3(config)#int s0/1
R3(config-if)#ip add 1.1.23.3 255.255.255.0
R3(config-if)#no sh
%LINK-5-CHANGED: Interface Serial0/1, changed state to up
R3(config-if)#
R3(config-if)#exit
R3(config)#
R3(config)#
R3(config)#
R3(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up
R3(config)#router rip
R3(config-router)#ver 2
R3(config-router)#no auto
R3(config-router)#net 1.0.0.0
R3(config-router)#net 130.130.0.0
R3(config-router)#exit
R3(config)#
R3(config)#
R3(config)#
R3(config)#
R3(config)#
R3(config)#do sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 2 subnets
R 1.1.12.0 [120/1] via 1.1.23.2, 00:00:16, Serial0/1
C 1.1.23.0 is directly connected, Serial0/1
100.0.0.0/24 is subnetted, 2 subnets
R 100.100.100.0 [120/2] via 1.1.23.2, 00:00:16, Serial0/1
R 100.100.110.0 [120/2] via 1.1.23.2, 00:00:16, Serial0/1
130.130.0.0/24 is subnetted, 1 subnets
C 130.130.30.0 is directly connected, FastEthernet0/0
R 200.200.200.0/24 [120/1] via 1.1.23.2, 00:00:16, Serial0/1
R 200.200.210.0/24 [120/1] via 1.1.23.2, 00:00:16, Serial0/1
R3(config)#
'MY 교육수강 > CCNA(8.16~26)' 카테고리의 다른 글
22(월) 실습 2 : eigrp, NAT, 권한지정(key chain), 루프백 (0) | 2011.08.22 |
---|---|
SecureCRT - 실습 3 (0) | 2011.08.19 |
정리(2) 미완성 - 실습1의 연장 (0) | 2011.08.19 |
18(목) - 실습 5 (첨부) (0) | 2011.08.18 |
18(목) - 실습 1 (0) | 2011.08.18 |