2014年10月27日 星期一

路由器RIPv2動態路由設定







1. Cisco 1841 R1路由器的組態設定請由PC0利用Telnet遠端登入進行設定
加密之特權模式密碼為 ccnaen
主控台使用者模式之密碼為 ccnacon
虛擬終端機使用者模式之密碼為 ccnavty
(1) FastEthernet 0/1 介面之 IP為 Net2最後一個可使用IP
(2) Serial 0/0/0 介面之 IP為 Net6第一個可使用IP
(3) 依據拓樸資料啟動動態路由協定RIPv2並設定為非自動總結
(4) 關閉不必要的RIP更新訊息
(5) 將所有設定檔儲存起來


PC>telnet 192.168.1.126
Password: ccnavty
R1>enable
Password: ccnaen
R1#config terminal
R1(config)#interface fastEthernet 0/1
R1(config-if)#ip address 192.168.1.222 255.255.255.224
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 192.168.1.249 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#net 192.168.1.0
R1(config-router)#net 192.168.1.192
R1(config-router)#net 192.168.1.248
R1(config-router)#no auto-summary
R1(config-router)#passive-interface f0/1
R1(config-router)#passive-interface f0/0
R1(config-router)#^Z
R1#copy running-config startup-config

2. Cisco 1841 R2路由器進入控制台埠進行下列設定
(1) 路由器名稱設定為 R2
(2) 加密之特權模式密碼為 tiiten
(3) 主控台使用者模式之密碼為 tiitcon
(4) 虛擬終端機使用者模式之密碼為 tiitvty
(5) 路由器所有密碼均設定加密保護
(6) FastEthernet 0/0 介面之 IP為Net3最後一個可使用IP
(7) FastEthernet 0/1 介面之 IP為Net4最後一個可使用IP
(8) Serial 0/0/0 介面之 IP為Net6最後一個可使用IP,提供兩部路由器之間的電路為64000bps
(9) Serial 0/0/1 介面之 IP為Net7第一個可使用IP,提供兩部路由器之間的電路為2Mbps
(10) 依據拓樸資料啟動動態路由協定RIPv2並設定為非自動總結
(11) 關閉不必要的RIP更新訊息
(12) 將所有設定檔儲存起來

Router>enable
Router#configure  terminal
Router(config)#hostname R2
R2(config)#enable secret tiiten
R2(config)#line console 0
R2(config-line)#password tiitcon
R2(config-line)#login
R2(config-line)#exit
R2(config)#line vty 0 4
R2(config-line)#password tiitvty
R2(config-line)#login
R2(config-line)#exit
R2(config)#service password-encryption
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.1.190 255.255.255.192
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 0/1
R2(config-if)#ip address 192.168.1.246 255.255.255.248
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/0/0
R2(config-if)#ip address 192.168.1.250 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#clock rate 64000
R2(config-if)#exit
R2(config)#interface serial 0/0/1
R2(config-if)#ip address 192.168.1.253 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#clock rate 2000000
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#net 192.168.1.248
R2(config-router)#net 192.168.1.252
R2(config-router)#net 192.168.1.240
R2(config-router)#net 192.168.1.128
R2(config-router)#passive-interface f0/0
R2(config-router)#passive-interface f0/1
R2(config-router)#no auto-summary
R2(config-router)#^Z
R2#copy running-config startup-config

3. Cisco 1841 R3路由器進入控制台埠進行下列設定
(1) FastEthernet 0/0 介面之 IP為Net5最後一個可使用IP
(2) Serial 0/0/1 介面之 IP為最後一個可使用IP
(3) 依據拓樸資料啟動動態路由協定RIPv2並設定為非自動總結
(4) 關閉不必要的RIP更新訊息
(5) 將R3與ISP設定為預設繞送並啟用default-information originate
(6) 將所有設定檔儲存起來


R3>enable
R3#configure terminal
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 192.168.1.238 255.255.255.240
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface serial 0/0/1
R3(config-if)#ip address 192.168.1.254 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#net 192.168.1.252
R3(config-router)#net 192.168.1.224
R3(config-router)#net 192.168.2.0
R3(config-router)#no auto-summary
R3(config-router)#passive-interface f0/0
R3(config-router)#passive-interface s0/0/0
R3(config-router)#ip route 0.0.0.0 0.0.0.0 192.168.2.2
R3(config)#router rip
R3(config-router)#default-information originate
R3(config-router)#^Z
R3#copy running-config startup-config

4. 個人電腦
(1) PC-PT PC1之IP為Net1第二個可使用IP
IP address            192.168.1.2
Subnet Mask         255.255.255.128
Default Gateway   192.168.1.126

(2) PC-PT PC2之IP為Net2第一個可使用IP
IP address            192.168.1.193
Subnet Mask         255.255.255.224
Default Gateway   192.168.1.222

(3) PC-PT PC3之IP為Net3第一個可使用IP
IP address            192.168.1.129
Subnet Mask         255.255.255.192
Default Gateway   192.168.1.190

(4) PC-PT PC4之IP為Net4第一個可使用IP
IP address            192.168.1.241
Subnet Mask         255.255.255.248
Default Gateway   192.168.1.246

(5) PC-PT PC5之IP為Net5第一個可使用IP
IP address            192.168.1.225
Subnet Mask         255.255.255.240
Default Gateway   192.168.1.238


5. 於個人電腦PC-PT PC0上使用ping測試與PC-PT PC1、PC-PT PC2、PC-PT PC3、PC-PT PC4、PC-PT PC5是否連通,並利用HTTP連至ISP1伺服器。


ping 192.168.1.2
ping 192.168.1.193
ping 192.168.1.129
ping 192.168.1.241
ping 192.168.1.225

2014年10月26日 星期日

TCP/IP

TCP/IP模型是依照TCP/IP協定所組建出來的。起源於美國國防部(DoD,Department of Defense)因此也稱為DoD模型;其他還有DARPA模型和APRANET模型的別稱。總之這裡一律以TCP/IP模型稱呼。

TCP/IP模型和OSI模型比較

TCP/IP模型的分工較為粗略,但較為簡單、有效率,OSI則是精密周延。
TCP/IP模型和OSI模型的形成方式剛好相反,TCP/IP模型是先發展完TCP/IP協定後才建立模型,而OSI則是先架設好模型後才建立協定。


TCP/IP模型與OSI模型對應圖

TCP/IP與OSI資料封裝:http://ccnatiy.blogspot.tw/2014/10/blog-post_17.html

路由器基本設定及靜態路由2





練習檔案下載: https://drive.google.com/file/d/0B-z-UZB41PNbdHlpX29Ma0o1Tm8/view?usp=sharing


1. 左側 Cisco 2811 TIITA路由器
o 路由器名稱設定為 TIITA
o 加密之特權模式密碼為 TIITAen
o 主控台使用者模式之密碼為 TIITAcon
o 虛擬終端機使用者模式之密碼為 TIITAvty
o FastEthernet 0/0 介面之 IP 請查看 PC-PT A 之 IP 相關設定資訊進行設定
o Serial 0/0/0 介面之 IP 為 192.168.1.1/30,提供兩部路由器之間的電路為64000bps
o 設定靜態路由

Router>enable 
Router#configure terminal 
Router(config)#hostname TIITA
TIITA(config)#enable secret TIITAen
TIITA(config)#line console 0
TIITA(config-line)#password TIITAcon
TIITA(config-line)#login
TIITA(config-line)#exit
TIITA(config)#line vty 0 4
TIITA(config-line)#password TIITAvty
TIITA(config-line)#login
TIITA(config-line)#exit
TIITA(config)#interface fastEthernet 0/0
TIITA(config-if)#ip address 192.168.200.126 255.255.255.128
TIITA(config-if)#no shutdown 
TIITA(config-if)#exit
TIITA(config)#interface serial 0/0/0
TIITA(config-if)#ip address 192.168.1.1 255.255.255.252
TIITA(config-if)#no shutdown 
TIITA(config-if)#clock rate 64000
TIITA(config-if)#exit
TIITA(config)#ip route 172.16.96.0 255.255.240.0 192.168.1.2



2. 右側 Cisco 2811 TIITB路由器
o 路由器名稱設定為TIITB
o FastEthernet 0/0 介面之 IP 請查看 PC-PT D 之 IP 相關設定資訊進行設定
o Serial 0/2/0 介面之 IP 設定為 192.168.1.2/30
o 設定使用靜態路由


Router>enable 
Router#configure terminal 
Router(config)#hostname TIITB
TIITB(config)#interface fastEthernet 0/0
TIITB(config-if)#ip address 172.16.111.254 255.255.240.0
TIITB(config-if)#no shutdown 
TIITB(config-if)#exit
TIITB(config)#interface serial 0/2/0
TIITB(config-if)#ip address 192.168.1.2 255.255.255.252
TIITB(config-if)#no shutdown 
TIITB(config-if)#exit
TIITB(config)#ip route 192.168.200.0 255.255.255.128 192.168.1.1
TIITB(config)#ip route 10.10.200.0 255.255.255.0 192.168.1.1




3. 個人電腦PC-PT B
o IP位址設定為 10.10.200.1/24
IP address            10.10.200.1
Subnet Mask         255.255.255.0
Default Gateway   10.10.200.200


4. 個人電腦PC-PT C
o IP位址設定為 PC-PT D所屬網路第一個可使用IP。
IP address            172.16.96.1
Subnet Mask         255.255.240.0
Default Gateway   172.16.111.254


5. 於個人電腦PC-PT A上使用ping測試與PC-PT B、PC-PT C、PC-PT D是否連通。

ping 10.10.200.1
ping 172.16.96.1
ping 172.16.100.100

CCNA251~300題

( ) 251.Which command will you use to load a configuration file from NVRAM to RAM?
               A.Taipei#copy running-config startup-config
               B.Taipei#copy startup-config running-config
               C.Taipei#copy flash running-config
               D.Taipei#copy running-config flash

( ) 252.Which command will you use to view the statistics for all interfaces?
               A.show interfaces
               B.show all interfaces
               C.show statistics interfaces
               D.show summary interfaces

( ) 253.Which command will you use to disable the timeout feature?(choose 2)
               A.exec-timeout 0 0
               B.timeout 0 0
               C.exec timeout 
               D.disable timeout
               E.no exec-timeout

( ) 254.Which command will you use to copy the configuration file from RAM to a tftp server? 
               A.Taipei#copy startup-config tftp
               B.Taipei#copy running-config tftp
               C.Taipei[config]#copy startup-config tftp server
               D.Taipei[config]#copy running-config tftp server

( ) 255.Which information is in the name of a Cisco IOS images file?(choose 5) 
               A.The name of Vendor
               B.The name of platform
               C.Extended capabilities of the lmage file
               D.The Version number
               E.Whether the image file is compressed or not and where the image file runs
               F.The file extension
               G.The services number

( ) 256.Which one of mode will you use to execute debug command? 
               A.user mode
               B.privileged mode
               C.Local mode
               D.Global mode

( ) 257.Which command will you use to log out of a router?(choose 2) 

               A.exit
               B.call exit
               C.logout
               D.disable
               E.enable

( ) 258.Which Key will you use to display a whole command after you enter the starting characters?
               A.Ctrl+C
               B.Ctrl
               C.Esc
               D.Tab
               E.Enter

( ) 259.You set the configuration Register to 0x1,what will router do?
               A.Boot from RAM
               B.Boot from NVRAM
               C.Boot from tftp
               D.Boot from ROM
               E.Boot from Rom monitor

( ) 260.Which command will you use to alter the default interval time of Cisco Discovery Protocol?
               A.cdp alter 90
               B.cdp wait 90
               C.cdp waif for 90
               D.cdp timer 90
               E.cdp 90

( ) 261.You execute the command terminal no editing,what will router do?
               A.Turn off all editing
               B.Turn off enhanced editing
               C.Turn off configuration file
               D.Turn off console connection

( ) 262.Which command will you use to load the IOS from Read only Memory?
               A.Boot ROM
               B.Boot system ROM
               C.Boot ROM Monitor
               D.Boot system tftp
               E.relosd ROM

( ) 263.Which one of following device provides clocking?
               A.DCE
               B.DTE
               C.Demarc
               D.Controller

( ) 264.You want to upgrade IOS file,which command will you use?
               A.copy running-config startup-fig
               B.copy flash ROM
               C.copy tftp flash
               D.copy flash tftp
               E.copy network flash

( ) 265.Which information will be view when you execute the command "show cdp neighbor detail"(choose 4)
               A.Flash memory
               B.The name of platform
               C.The hostname of router
               D.The incoming port
               E.Address of port
               F.Address of protocol

( ) 266.Which command will you use to display the current processor utilization of a router?
               A.show router
               B.show CPU
               C.show CPU processes
               D.show processes CPU
               E.show CPU utilization

( ) 267.Which command will you set the 7500 series router with a VIP card?
               A.slot
               B.slot/port
               C.slot/port-adapter/port
               D.slot/port/port-adapter

( ) 268.Which command will you to restart a router?
               A.start
               B.setup start
               C.restart
               D.reload
               E.exit

( ) 269.Which command will you to set the clock rate to 64K?
               A.clock rate to 64K
               B.clock rate to 64
               C.clock rate to 64000
               D.Bandwidth 64000
               E.Bandwidth 64K

( ) 270.Which one of the following command will you use to see the value of configuration register in your router?
               A.show config
               B.show register
               C.show flash
               D.show version
               E.show file

( ) 271.Which following are the ways to access to a router(choose 4)
               A.Telnet
               B.console
               C.Auxiliary port
               D.Http
               E.ftp
               F.DHCP

( ) 272.Which command will you use to the information of adjacent routers?
               A.show neighbors
               B.show IP neighbors
               C.show adjacent routers
               D.show cdp neighbors

( ) 273.Which key combination will you use to move to the beginning of the line?
               A.Ctrl+A
               B.Ctrl+P
               C.Ctrl+N
               D.Ctrl+C

( ) 274.Which command will you use to display the encapsulation type on interfaces?
               A.show IP encap
               B.show encap IP
               C.show interfaces
               D.show encap

( ) 275.Which command will you use to view the IP address of Ethernet 0?
               A.show e 0/0
               B.show IP
               C.show IP interfaces e 0/0
               D.show e 0/0 IP interfaces 

( ) 276.Which command will you use to change from user mode to Privileged mode?
               A.change
               B.enable
               C.disable
               D.login
               E.exit

( ) 277.Which command will you use to load the configuration file from NVRAM to a network server?
               A.copy tftp running-config
               B.copy startup-config tftp
               C.copy tftp startup-config
               D.copy running-config tftp

( ) 278.Which command will you use to load the IOS file, C2500-12-5.bin from network server IP 200.20.20.0 at next boot?
               A.Boot system network
               B.Boot system tftp C2500-12-5.bin 200.20.20.20
               C.Boot system C2500-12-5.bin tftp 200.20.20.20
               D.Boot system tftp 200.20.20.20. C2500-12-5.bin
               E.Boot system C2500-12-5.bin 200.20.20.20 tftp

( ) 279.Which key will you use to begin a User mode from the console port?
               A.Enter
               B.Ctrl+C
               C.Ctrl+P
               D.Ctrl+B

( ) 280.Which command will you use to load 'C2500-12-5.bin' from flash at next boot?
               A.boot C2500-12-5.bin
               B.boot system flash C2500-12-5.bin
               C.boot system C2500-12-5.bin flash
               D.boot system C2500-12-5.bin

( ) 281.Which command will you use to turn off all debugging?
               A.no debug
               B.no all debug
               C.no debug all
               D.disable debug
               E.exit debug

( ) 282.You want to set the telnet password, which command will you use first?
               A.enable password
               B.enable secret
               C.line vty 0 4
               D.line console 0

( ) 283.Which command will you use to display the mapping of host name and IP address?
               A.show mapping
               B.show cdp
               C.show hosts
               D.show IP host name

( ) 284.Which command will you use to display the ARP Cache?
               A.show Mac address
               B.show Mac table
               C.show arp cache
               D.show arp

( ) 285.You are an administrator at Magic corporation.You need to set the bandwidth of your routers serial port to 56K. Which of the following commands will you use?
               A.Bandwidth 56
               B.Bandwidth 56000
               C.Bandwidth 56000000
               D.Bandwidth 56K

( ) 286.Which two of following statements can you use to secure the virtual terminal interfaces on a router?
               A.Create an access list and apply it to the serial interfaces with the access-group command.
               B.Administratively shut down the interface
               C.You create an access list and apply it to the virtual terminal interfaces using the access-class command
               D.You configure a virtual terminal password and login process
               E.You create an access list and apply it to the virtual terminal interfaces with the access-group command.

( ) 287.Where is the start-up configuration normally storsd in when you normally power up a Cisco router?
               A.ROM
               B.RAM
               C.NVRAM
               D.FLASH

( ) 288.You are a network administrator at Magic.what is the purpose of command o/r 0x2142 in your 2500 series Cisco router?
               A.It is used to bypass the configuration in NVRAM
               B.It is used to restart the router
               C.It is used to enter ROM Monitor mode
               D.It is used to enter global mode
               E.It is used to load the configuration in NVRAM

( ) 289.You attempt to telnet to a router named KS From the Taipei router

Taipei#
Taipei#telnet KS
Trying KS(10.0.0.1)... Open
Password required,but none set
[Connection to accress 1 closed by foreign host]
Taipei#

You are unable to connect to the KS router.Which of the following command sequences will correct this problem?
               A.Taipei(config)#line console 0
                   Taipei(config-line)#login
                   Taipei(config-line)#password cisco

               B.KS(config)#line console 0
                   KS(config-line)#password cisco

               C.KS(config)#line vty 0 4
                   KS(config-line)#login
                   KS(config-line)#password cisco

               D.Taipei(config)#line vty 0 4
                   Taipei(config-line)#login
                   Taipei(config-line)#password cisco

               E.KS(config)#password cisco

( ) 290.You are an administrator at Magic Corporation.You want to view the layer 3 information about your neighboring Cisco routers.Which one of following command gives layer 3 information from the directly connected router interfaces?
               A.show cdp information
               B.show cdp neighbor
               C.show cdp neighbor detail
               D.show ip neighbor
               E.show ip route

( ) 291.Which one of following command will you use to set the port with no negotiation with and become a Permanent trunking mode?
               A.Trunk auto
               B.Trunk on
               C.Trunk off
               D.Trunk negotiate
               E.Trunk desirable
               F.Trunk nonegotiate

( ) 292.Which command will you use to set the ports to become a trunking port if the other side set to on or desirable?
               A.Trunk on
               B.Trunking on
               C.Trunk auto
               D.Trunking auto
               E.Trunk nonegotiate

( ) 293.Which one of following is used to decide whether a VLAN configuration should be overwritten or not?
               A.IOS Version number
               B.Configuring revision number
               C.VTP Version number
               D.Time stamp
               E.Delay Time

( ) 294.Which VTP modes will you use to add VLANs to a Switch?(choose 2)
               A.Server
               B.Client
               C.Transparent
               D.Translation
               E.Trunking

( ) 295.Which one of following command will you use to display trunking state?
               A.Show VLAN
               B.Show VTP
               C.Show version
               D.Show trunk
               E.Show port

( ) 296.Which one of following command will you use to reset the VTP configuration revision number?

               A.Reset
               B.Reset VTP
               C.Delete
               D.Delete VTP
               E.Set VTP 0

( ) 297.Which one of following describes VTP best?

               A.It is a layer 2 protocol message used to synchronize VLAN intormation
               B.It is a layer 3 protocol message used to synchronize VLAN intormation
               C.It is a layer 2 protocol message used to synchronize IP intormation
               D.It is a layer 3 protocol message used to synchronize IP intormation
               E.It is a layer 4 protocol

( ) 298.What do users share on a VLAN?
               A.Some collision domain
               B.Same place
               C.Same broadcast domain
               D.Same switch and different Switch
               E.Different Switch

( ) 299.Which command will you use to show the maximum number of VLANs?
               A.Show VLAN-[ID]
               B.Show VLAN-membership
               C.Show VTP
               D.Show VLAN maximum
               E.Show maximum VLAN

( ) 300.How often dose VTP advertisements send under no change condition?
               A.1.5 minutes
               B.5 minutes
               C.10 minutes
               D.30 minutes
               E.60 minutes