์ ๊ฐ ์ ๋ณด๊ธฐ๊ธฐ๊ธฐ๋ฅ์ฌ ์ค๊ธฐ ํฉ๊ฒฉํ๋ฉด์ ์ ๋ฆฌํ ๋ด์ฉ์ ๋๋ค. ํ์ํ์ ๋ถ์ ์ํด์ ์ฌ๋ฆฝ๋๋ค. ์ฐธ๊ณ ํ์ จ์ผ๋ฉด ์ข๊ฒ ๋ค์. ์ด ๋ด์ฉ์ ํจ๋ถ๋ก ์นดํผํด์ ๊ธฐ์ ํ์ง ๋ง์ธ์.
<๋ผ์ฐํฐ ์ ์ IP ๊ตฌ์ฑ> Router#configure terminal => ์ธ๋ถ์ค์ ๋ชจ๋ ์ง์ Router(config)#interface fastEthernet 0/0 => ์ธํ๋ผ์ธ ์ ์ธ Router(config-if)#ip address 203.116.8.1 255.255.255.0 => ์์ดํผ ์ค์ Router(config-if)#no shutdown => ๊ฐฑ์ Router(config)#ip default-network 192.168.101.1 =>
โ <๋ผ์ฐํฐ ์๋ฆฌ์ผ ๋ผ์ธ ์ ์ IP ๊ตฌ์ฑ>โ R1#configure terminal R1(config)#interface serial 0/2/0 => ๋ผ์ฐํฐ ์๋ฆฌ์ผ๋ผ์ธ ์ ์ธ R1(config-if)#ip address 204.200.7.2 255.255.255.0 R1(config-if)#clock rate 64000 => R1(config-if)#no shutdown Switch#configure terminal Switch(config)#hostname S1 => ํธ์คํธ์ด๋ฆ ์ค์ S1(config)#interface vlan 1 => ์ค์์น ์ ์ฉ ๋ผ์ธ ์ ์ธ S1(config-if)#ip address 168.126.67.12 255.255.255.0 S1(config-if)#no shutdown Switch(config)#ip default-gateway 192.168.100.1 ==>๊ฒ์ดํธ ์ค์
<๊ฐ ๋ผ์ธ์ ๋ํ ๋์ IP ๊ตฌ์ฑ> R1(config)#interface fastEthernet 0/0 R1(config-if)#ip address dhcp => ๋์ IP๋ก ์ค์ R1(config-if)#no shutdown ---------------------------- S1(config)#interface vlan 1 S1(config-if)#ip address dhcp S1(config-if)#no shutdown
<Banner ๋ฉ์์ง ์ค์ > Router#configure terminal Router(config)#banner motd @ => ๋ฉ์์ง ์ค์ ๋ช ๋ น Enter TEXT message. End with the character '@'. so bunny Server Start. @ => ๋๋ ๋ ํด๋น ๊ธฐํธ ์ ๋ ฅ์ผ๋ก ๋ง๋ฌด๋ฆฌ
<History ๋ช ๋ น ๊ธฐ์ต ๊ด๋ฆฌ ์ค์ > (๋ผ์ธ ๋ชจ๋ ์ ์ญ ์ค์ ) Router#configure terminal Router(config)#line console 0 Router(config-line)#history size 15 => ์ผ๋ฐ์ ์ธ ํ์คํ ๋ฆฌ ๊ธฐ์ต๊ฐ ์ ์ธ (๊ด๋ฆฌ์ ๋ชจ๋ ์ค์ ) Router#terminal history size 7 => ๊ด๋ฆฌ๋ชจ๋ ํ์คํ ๋ฆฌ ๊ธฐ์ต๊ฐ ์ ์ธ
<DNS ์ค์ ๋ฐฉ๋ฒ> Router#configure terminal Router(config)#ip host bunny(๋ค์๋ช ) 168.126.100.2(ํด๋นIP) โ Dns์ง์ ์ํ๋ ์ค์ (์ค์)-์ค๊ธฐ์ํ์ ๋ฌด์กฐ๊ฑด ์ค์ โ Router(config)#no ip domain-lookup => ์ง์๋ฌธ์ ๋ฌด์
<๊ด๋ฆฌ ์ํธ ์ค์ ๋ฐ md5 ์ค์ > R1#configure terminal R1(config)#enable password 12345 (์ผ๋ฐ์ค์ ) =>๊ด๋ฆฌํจ์ค์๋ ์ค์ R1(config)#enable secret 12345 (md5์ค์ ) => ๊ด๋ฆฌํจ์ค์๋ md5๋ฐฉ์ ์ค์ R1(config)#exit
<console Password ์ค์ > R1#configure terminal R1(config)#service password-encryption => ์ดํ์ ๋ชจ๋ ์ค์ ์ ์ํธํ๋ก ๊ธฐ์ต. R1(config)#enable password 12345 R1(config)#line console 0 => ์ฝ์๋ชจ๋ ์ง์ ์ค์ R1(config-line)#password 12345 => ์ฝ์๋ชจ๋ ํจ์ค์๋ ์ค์ R1(config-line)#login => ๋ก๊ทธ์ธ ์ ์ธ
<telnet ๋ฐ password ์ค์ > R1>en R1#conf t R1(config)#line vty 0 4 => ์ ์์ ํ์ฉ๊ฐ ์ค์ R1(config-line)#password 12345 R1(config-line)#login
<๋ก์ปฌ ์ฌ์ฉ์ ๋ก๊ทธ์ธ ์ธ์ฆ ์์ฝ ๋ช ๋ น> R1(config)#username bunny password 12345 R1(config)#line console 0 R1(config-line)#login local R1(config-line)#exit R1(config)#line vty 0 4 R1(config-line)#exec-timeout 3 0 => ํ์์์ ์ค์ ( ๋ถ : ์ด) R1(config-line)#login local => ๋ก์ปฌ ๋ก๊ทธ์ธ ์ ์ธ [์ ์ ์์ด๋๊ฐ ์์๊ฒฝ์ฐ๋ง ํด ์ค๋ค.] R1(config-line)#exit
<TFTP ๋ฐฑ์ ์ค์ > (๋ฐฑ์ ) R1#copy running-config tftp => ๋ผ์ฐํฐ๊ฐ์ ์๋ฒ๋ก ๋ฐฑ์ ์ ์ก Address or name of remote host []? 192.168.100.2 Destination filename [R1-confg]? router_bbc (๋ณต์) R1#copy tftp running-config => ์๋ฒ์ ์ฅ๊ฐ์ ๋ผ์ฐํฐ๋ก ๋ณต์ Address or name of remote host []? 192.168.100.2 Source filename []? router_bbc Destination filename [running-config]? (ISOํ์ผ ์ ์ก) R1#show flash => tftp๊ฐ์ ์ ๋ณด๋ด์ญ์ ํ์ธ System flash directory: File Length Name/status 3 50938004 c2800nm-advipservicesk9-mz.124-15.T1.bin =>์นดํผ 2 28282 sigdef-category.xml 1 227537 sigdef-default.xml R1#copy flash tftp Source filename []? c2800nm-advipservicesk9-mz.124-15.T1.bin =>๋ถ์ด๊ธฐ Address or name of remote host []? 192.168.100.2 Destination filename [c2800nm-advipservicesk9-mz.124-15.T1.bin]?
<inter-VLAN ๊ฐ์๋ผ์ธ๊ตฌ์ถ> R1(config)#interface fastEthernet 0/0 R1(config-if)#no shutdown R1(config-if)#interface fastEthernet 0/0.10 => ๋ค์ 10์ ๊ฐ์๋ผ์ธ์ ๋ฒํธ R1(config-subif)#encapsulation dot1Q 10 R1(config-subif)#ip address 168.126.64.1 255.255.255.0 [ํด๋นIP์ ๊ฒ์ดํธ๋ง ์ ์ธ] R1(config-subif)#exit R1(config)#interface fastEthernet 0/0.20 R1(config-subif)#encapsulation dot1Q 20 R1(config-subif)#ip address 192.168.65.1 255.255.255.0 R1(config-subif)#exit R1(config)#interface fastEthernet 0/0.30 R1(config-subif)#encapsulation dot1Q 30 R1(config-subif)#ip address 168.126.66.1 255.255.255.0 [๋ฐ๋์ ๋ช ์ฌํ ๋ถ๋ถ์ด ํด๋นPC์ ์์ดํผ์ ๊ฒ์ดํธ์จ์ด ์ฃผ์๋ฅผ ์ ์ธํด์ผ ํ๋ค.] R1(config-subif)#exit
<DCE-DTE ๋ผ์ฐํฐ๊ฐ ์๋ฆฌ์ผ ๋ผ์ธ ๊ตฌ์ฑ> R1(config)#interface serial 0/2/0 R1(config-if)#clock rate 64000 R1(config-if)#no shut
<๋ชจ๋ ์ค์ ์ง์ฐ๊ณ ๋ค์ ์ด๊ธฐํ ํ๋ ๋ฐฉ๋ฒ> Router#copy running-config startup-config ==> ์ ์ฒด์ค์ ๋ฐฑ์ ์ ์ฅ Router#erase startup-config ==> ๋ชจ๋ ์ค์ ์ด๊ธฐํ Switch#copy running-config startup-config Switch#erase startup-config
<SSH ์ ์ ์ค์ > Router#configure terminal Router(config)#ip domain-name cisco.or.kr Router(config)#crypto key generate rsa Router(config)#username bunny password 12345 Router(config)#line vty 0 5 Router(config-line)#login local Router(config-line)#transport input ssh
โ <DHCP ์๋ฒ ๊ตฌ์ฑ ์ค์ >โ Router>enable Router#conf t Router(config)#ip dhcp pool bunny => dhcp ์ ์ธ์ด๋ฆ ์ค์ Router(dhcp-config)#network 168.126.64.0 255.255.255.0 => ์ ์ฒด ๋คํธ์ํฌ ๋ฒ์ ์ค์ Router(dhcp-config)#default-router 168.126.64.1 => ๋ํดํฐ ๋ผ์ฐํฐ IP ์ค์ Router(dhcp-config)#dns-server 168.126.66.2 => DNS Server IP ์ค์ Router(dhcp-config)#exit Router(config)#ip dhcp excluded-address 168.126.64.1 => ์ ์ธ์ํฌ IP ์ ์ธ Router(config)#ip dhcp excluded-address 168.126.64.12 168.126.64.255 Router(config)#ip dhcp pool bunny2 Router(dhcp-config)#network 168.126.66.2 255.255.255.0 Router(dhcp-config)#default-router 168.126.65.1 Router(dhcp-config)#dns-server 168.126.66.2 Router(dhcp-config)#exit Router(config)#ip dhcp excluded-address 168.126.65.1 Router(config)#ip dhcp excluded-address 168.126.65.12 168.126.64.255
โ <VLAN ๊ตฌ์ฑ ์ค์ >-๋๋ฒ์งธ ์ค์ โ Switch#configure terminal Switch(config)#vlan 10 => ๊ฐ์์ธํ๋ผ์ธ ๋ฒํธ ์ ์ธ Switch(config-vlan)#name Vlan-10 => ๊ฐ์์ธํ๋ผ์ธ์ ์ด๋ฆ์ ์ค์ Switch(config-vlan)#exit Switch(config)#vlan 20 Switch(config-vlan)#name Vlan-20 Switch(config-vlan)#exit Switch(config)#int fastEthernet 0/1 Switch(config-if)#description "Access to 1โ => ๊ฐ์์ธํ๋ผ์ธ์ ์์์ค๋ช ์ ๊ณต Switch(config-if)#switchport mode access => ์ค์์นํฌํธ ๋ชจ๋ ์์ธ์ค ํ์ฉ Switch(config-if)#switchport access vlan 10 => ํ์ฉํ ์์ธ์ค ๊ฐ์์ธํ๋ผ์ธ ๋ฒํธ Switch(config-if)#exit Switch(config)#int fastEthernet 0/2 Switch(config-if)#description "Access to 2โ Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#interface fastEthernet 0/3 Switch(config-if)#description "Access to 3โ Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#exit (ํธ๋ ํฌ ํฌํธ ์ค์ ๋ช ๋ น) Switch(config)#interface fastEthernet 0/24 => ํ์ฉ์ํฌ ์ธํ๋ผ์ธ ๋คํธ์ํฌ ๋ฒ์ Switch(config-if)#switchport mode trunk => ํฌํธ๋ช ๋ น์์ ํธ๋ ํฌ๋ชจ๋ ์ ์ธ Switch(config-if)#switchport trunk allowed vlan all => ํธ๋ ํฌ ํฌํธ ๋ชจ๋ ํ์ฉ
โ <inter-Vlan ๊ตฌ์ฑ>-๊ฐ์ฅ๋จผ์ ์ค์ โ Router#configure terminal Router(config)#interface fastEthernet 0/0 Router(config-if)#no shutdown Router(config-if)#interface fastethernet 0/0.10 Router(config-subif)#interface fastethernet 0/0.10 Router(config-subif)#description VLAN-10 Router(config-subif)#encapsulation dot1Q 10 Router(config-subif)#ip address 203.237.102.1 255.255.255.0 => ์ค์ํ์ ์ด ํด๋น ip๋ ๊ฐ ์ฐ๊ฒฐPC๋ค์ ip๊ฒ์ดํธ์จ์ด ์ฃผ์๋ฅผ ์ ์ด์ผ ํ๋ค. Router(config-subif)#exit Router(config)#interface fastEthernet 0/0.20 Router(config-subif)#description VLAN-20 Router(config-subif)#encapsulation dot1Q 20 Router(config-subif)#ip address 203.237.103.1 255.255.255.0 Router(config-subif)#exit Router(config)#interface fastEthernet 0/0.30 Router(config-subif)#description VLAN-30 Router(config-subif)#encapsulation dot1Q 30 Router(config-subif)#ip address 203.237.104.1 255.255.255.0 Router(config-subif)#no shutdown Router(config-subif)#exit
<VTP ์ค์ ๋ฐฉ๋ฒ> (์๋ฒ) Switch#configure terminal Switch(config)#vtp version 2 Switch(config)#vtp domain vtptest Switch(config)#vtp password 12345 Switch(config)#interface fastEthernet 0/24 Switch(config-if)#switchport mode trunk (ํด๋ผ์ด์ธํธ) Switch#configure terminal Switch(config)#vtp version 2 Switch(config)#vtp mode client Switch(config)#vtp domain vtptest Switch(config)#vtp password vtppass Switch(config)#int f 0/24 Switch(config-if)#switchport mode trunk
<default-Gateway ์ค์ > Switch#configure terminal Switch(config)#interface vlan 1 Switch(config-if)#ip address 203.237.102.62 255.255.255.192 Switch(config-if)#no shutdown Switch(config-if)#exit Switch(config)#ip default-gateway 203.237.102.62
<NAT ์ฌ์คip ์ค์ ๋ฒ> (์ ์ ์ค์ ) Router>enable Router#configure terminal Router(config)#ip nat inside source static 10.1.1.2 198.53.12.221 Router(config)#interface fastEthernet 0/0 Router(config-if)#ip address 10.1.1.2 255.255.255.0 Router(config-if)#ip nat inside Router(config-if)#exit Router(config)#interface serial 0/0/0 Router(config-if)#ip address 198.53.12.221 255.255.255.0 Router(config-if)#ip nat outside (๋์ ์ค์ ) Router(config)#ip nat pool dynamic 220.50.63.1 220.50.63.254 netmask 255.255.255.0 Router(config)#ip nat inside source list 10 pool dynamic Router(config)#access-list 10 permit 220.50.63.0 0.0.0.255 Router(config)#interface fastEthernet 0/0 Router(config-if)#ip nat inside Router(config-if)#exit Router(config)#interface serial 0/0/0 Router(config-if)#ip nat outside Router(config-if)#exit โ <๋ผ์ฐํฐ RIP ์ค์ ๋ช ๋ น>โ Router(config)#router rip Router(config-router)#version 2 Router(config-router)#network 192.168.99.1 => ๋ผ์ฐํฐ์ง์ ์ฐ๊ฒฐIP๋ฅผ ์ฐจ๋ก๋ก ์ค์ Router(config-router)#network 192.168.99.2 Router(config-router)#no auto-summary Router#show ip route => ๋ผ์ฐํฐ ํ ์ด๋ธ ์ ๋ณด ํ์ธ Router#show ip interface brief => ip ์ธํฐํ์ด์ค ํ์ธ โ <๋์ ๋ผ์ฐํฐ ์ค์ >โ Router(config)#router ospf 15 Router(config-router)#log-adjacency-changes Router(config-router)#network 192.168.99.1(๊ฐ ์ฐ๊ฒฐPC์ ๊ฒ์ดํธ๋ฒํธ) 0.0.0.0 area 1 Router(config-router)#network 192.168.98.1 0.0.0.0 area 1 Router(config-router)#ex Router(config)#interface fastEthernet 0/0 Router(config-if)#no shutdown
<์ ์ ๋ผ์ฐํฐ ์ค์ > Router#configure terminal Router(config)#ip route 192.168.99.0 255.255.255.0 192.168.99.2
<๋ผ์ฐํฐ ์์ผ์ค ๋ณด์ ์ค์ ๋ช ๋ น> Router(config)#access-list 99<๋ฆฌ์คํธ๋๋ฒ> permit<ํ์ฉ> any<๋ชจ๋> Router(config)#access-list 1 deny<๊ฑฐ๋ถ> 255.255.255.255
<ftp ์๋ฒ ์ค์ ๋ช ๋ น> Router(config)#ip ftp username bunny Router(config)#ip ftp password bunny
<์ผ๋ฐ ์๋ฒPC๋ฐ ์ผ๋ฐPC์ค์ > => ์๋ฒ๋ ๋ฉ์ผ์๋ฒ์ค์ + ftp์๋ฒ์ค์ + web์๋ฒ ์ค์ + AAA์ค์ ๋ฐฉ๋ฒ => ์ผ๋ฐpc๋ ํด๋ผ์ด์ธํธ ๋ฉ์ผ์ค์ + ํฐ๋ฏธ๋๋ชจ๋์์ ํ ํ์ธ ๋ฐฉ๋ฒ ์๋ฒํ์ด์ง ์ ์ ํ์ธ
<๋ณด์ถฉ ๋ช ๋ น์ด> Router(config)#username bunny privilege(๊ถํ์ค์ ) 15 password 12345 Router(config)#logging userinfo => ์ ์์ ๋ณด์ฌ์ค ๋ฉ์์ง ์ค์ Router(config)#access-list 1 permit(ํ์ฉ) 192.168.5.2 0.0.0.0 => ํ๋๋ง ๊ฐ๋ฅํ๋ฐ ํด๋นIP ๊ฐ ์ผ์นํ๋ ๊ฒ๋ง ํ์ฉ ๋ง์ฝ 0.0.0.255๋ผ๋ฉด ๋ง์ง๋ง 255๋ผ์ธ์ ๋ชจ๋ IP๊ฐ ๊ถํ์ ๊ฐ๊ฒ ๋๋ฏ๋ก ์๋๋ค. ์ด๊ฒ์ด ํ์ผ๋ ๋ง์คํฌ์ด๋ค. Router(config)#access-list 1 deny any => ํด๋น IP๋ง ์ ์ธํ๊ณ ๋ชจ๋ ๊ฑฐ๋ถ ํ ๋ ์ฌ์ฉ Router(config)#line vty 0 4 Router(config-line)#access-class 1 in => ๋ฒ์ถ์ผ๋ชจ๋์์ ํ๋ช ๋ง ์ ์ํ๊ฒ ์ค์ <๋ผ์ฐํ ์ ์ ๊ด๊ณ ์ค์ > Router(config)#router ospf 7 Router(config-router)#network 192.168.6.1(๋ผ์ฐํฐ์์ ) 0.0.0.0 area 0 Router(config-router)#network 192.168.7.1(์ฐ๊ฒฐIP์ ์ธ) 0.0.0.0 area 0 Router(config-router)#network 192.168.8.1(์ฐ๊ฒฐIP์ ์ธ) 0.0.0.0 area 0 <dhcp ๋ฌธ์ํด์ ๋ฐ์์ค๋ ์ค์ > Router(config)#interface fastEthernet 0/0 Router(config-if)#ip address 192.168.6.1 255.255.255.0 Router(config-if)#ip helper-address(๋ฌธ์ํ ๋) 168.192.5.5(์๋ฒPC) => ์ฆ dhcp๊ตฌ์ฑ์ ํด๋น ์๋ฒ์๊ฒ Ip๋ฅผ ๋ฌธ์ํ ๋ ๋ง๋์ ์ด ๋ช ๋ น ์ค์ ์ ํด ์ฃผ์ด์ผ ํ๋ค. Router(config-if)#no ip address => ๊ธฐ์กด ip๋ฅผ ์ญ์ ํ๊ณ ์ด๊ธฐํ Switch(config)#int range(๋ฒ์๋จ์์ค์ ) fa0/1 - fa0/10 Switch(config-if)#switchport trunk allowed vlan all => ํธ๋ ํฌ ํฌํธ ๋ชจ๋ ํ์ฉ <์ ๊ฒจ์๋ ์ฅ๋น์ ๋ด์ฉ์ ํ์ธํ ๋> Switch(config)#cdp run =>์ ๊ฒจ์๋ ํด๋น์ฅ๋น์ ์ ๋ณด๋ฅผ ํ์ธํ ๋ Switch(config)#do show cdp neighbor detail => ์ฃผ์์ ์ ๊ฒจ์๋ ์ฅ๋น์ ์ ๋ณด๋ฅผ ์ถ๋ ฅํด์ ๋ณด์ฌ๋ฌ๋ผ๊ณ ํ ๋ ์ฌ์ฉ <์ ์ ๋ผ์ฐํ IPํ ๋น> Router(config)#ip route 0.0.0.0 0.0.0.0 100.100.100.50 => 50๋ฒ์ ๋ผ์ฐํ ํ ๋น |