2009年4月7日 星期二

2009年4月5日 星期日

config VLAN







說明與步驟

根據圖中Switch設定port2和port3屬於VLAN1,port4屬於VLAN10。表示HostA和HostB屬於VLAN1,而HostC屬於VLAN10。

主機的IP設定如下:

HostA:192.168.1.66 , 255.255.255.192, 預設閘道 192.168.1.65
HostB:192.168.1.67 , 255.255.255.192, 預設閘道 192.168.1.65
HostC:192.168.1.130 , 255.255.255.224, 預設閘道 192.168.1.129

1.設host /ip /dg

2.設router
(1) Fa0/1
(2) Fa0/1.1
(3) Fa0/1.10

3.設switch
(1). int fa0/1→trunk
(2) int fa0/2~3→access vlan 1
(3) int fa0/4→access vlan10
(4) int vlan…
HOST設定


Host A
C:>ipconfig /ip 192.168.1.66 255.255.255.192 //Ip Address
C:>ipconfig /dg 192.168.1.65 //預設閘道
Host B


C:>ipconfig /ip 192.168.1.67 255.255.255.192 //Ip Address
C:>ipconfig /dg 192.168.1.65 // 預設閘道
Host C


C:>ipconfig /ip 192.168.1.130 255.255.255.224 //Ip Address
C:>ipconfig /dg 192.168.1.129 //預設閘道


Router設定
Router>enable
Router#config t
Router(config)#int fa0/1
Router(config-if)#no ip address
Router(config-if)#no shut
Router(config-if)#int fa0/1.1
Router(config-subif)#ip address 192.168.1.65 255.255.255.192
Router(config-subif)#encapsulation dot1q 1
Router(config-subif)#int fa0/1.10
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip address 192.168.1.129 255.255.255.224
Router(config-subif)#exit
Router(config)#exit


測試是否可連結
Router#ping 192.168.1.66
Sending 5, 100-byte ICMP Echos to 192.168.1.66, timeout is 2 seconds:!!!!! //ping通
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Router#ping 192.168.1.67
Sending 5, 100-byte ICMP Echos to 192.168.1.67, timeout is 2 seconds:!!!!! //ping通
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Router#ping 192.168.1.130
Sending 5, 100-byte ICMP Echos to 192.168.1.130, timeout is 2 seconds:!!!!! //ping通
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Router#ping 192.168.1.65
Sending 5, 100-byte ICMP Echos to 192.168.1.65, timeout is 2 seconds:!!!!! //ping通
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Router#ping 192.168.1.129
Sending 5, 100-byte ICMP Echos to 192.168.1.129, timeout is 2 seconds:!!!!! //ping通
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms


Switch設定
Switch>enable
Switch#config t
Switch(config)#int fa0/1 //指定Switchport給VLAN
Switch(config-if)#switchport mode trunk //指定主幹埠使用trunk
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport access vlan 1 //直接連Pc使用access vlan#
Switch(config-if)#exit
Switch(config)#int fa0/3
Switch(config-if)#switchport access vlan 1
Switch(config-if)#exit
Switch(config-if)#int fa0/4
Switch(config-if)#switchport access vlan 10
% Access VLAN does not exist. Creating vlan 10
Switch(config-if)#exit
Switch(config)#int vlan 1 //從可用的位址中選擇一個IP位址來設定
Switch(config-if)#ip address 192.168.1.75 255.255.255.192
Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#int vlan 10 //從可用的位址中選擇一個IP位址來設定
Switch(config-if)#ip address 192.168.1.132 255.255.255.224
Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#^Z






Add Image

RIPv1





HOST設定

PC1
C:>ipconfig /ip 192.168.1.1 255.255.255.0 //Ip Address
C:>ipconfig /ip 192.168.1.2 //default gateway

PC2
C:>ipconfig /ip 192.168.3.2 255.255.255.0 //Ip Address
C:>ipconfig /dg 192.168.3.1 //default gateway

PC3
C:>ipconfig /ip 192.168.5.2 255.255.255.0 //Ip Address
C:>ipconfig /dg 192.168.5.1 //default gateway

Static設定

R1
Router>enable
Router #config t
Router(config)#hostname R1
R1(config)#int e0
R1(config-if)#ip address 192.168.1.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int s0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2
R1(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.2
R1(config)#ip route 192.168.5.0 255.255.255.0 192.168.2.2
R1(config)#exit

R2
Router>enable
Router#config t
Router(config)# hostname R2
R2(config)#int e0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int s0/0
R2(config-if)# ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#exit
R2(config)#int s0/1
R2(config-if)# ip address 192.168.4.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config)#exit
R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
R2(config)#ip route 192.168.5.0 255.255.255.0 192.168.4.2
R2(config)#exit

R3
Router>enable
Router #config t
Router(config)#hostname R3
R3(config)#int e0
R3(config-if)#ip address 192.168.5.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int s0/0
R3(config-if)#ip address 192.168.4.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#ip route 192.168.3.0 255.255.255.0 192.168.4.1
R3(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.1
R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
R3(config)#exit

RIP設定
R1
Router>enable
Router #config t
Router(config)#hostname R1
R1(config)#int e0
R1(config-if)#ip address 192.168.1.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int s0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#route rip
R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config -router)#exit

R2
Router>enable
Router#config t
Router(config)# hostname R2
R2(config)#int e0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int s0/0
R2(config-if)# ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#exit
R2(config)#int s0/1
R2(config-if)# ip address 192.168.4.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config)#exit
R2(config)#route rip
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.3.0
R2(config-router)#network 192.168.4.0
R2(config -router)#exit

R3
Router>enable
Router #config t
Router(config)#hostname R3
R3(config)#int e0
R3(config-if)#ip address 192.168.5.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int s0/0
R3(config-if)#ip address 192.168.4.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#route rip
R3(config-router)#network 192.168.4.0
R3(config-router)#network 192.168.5.0
R3(config -router)#exit


2009年3月23日 星期一

Hello

hello, everybody, I'm Aimee.

there is my blog, it is about CCNA.

I hope to exchange some information about CCNA with everyone.

best wishes!

2009年3月16日 星期一

Distance vector routing loop issues




Routing loops can occur when inconsistent routing tables are not updated due to slow convergence in a changing network.
如果在改變中的網路收歛緩慢,將導致不一致的路由表格未被更新,在此情形下,路由迴圈就可能發生。



An example is as follows:
請看下面的例子:
1. Just before the failure of Network 1, all routers have consistent knowledge and correct routing tables. The network is said to have converged. For Router C, the preferred path to Network 1 is by way of Router B, and the distance from Router C to Network 1 is 3.
1. 就在網路1發生問題之前,所有路由器都有一致的知識和正確的路由表格,此網路被稱為已收歛狀態。對路由器C而言,到網路1的優先路徑是經由路由器B,且從路由器C到網路1的距離是3。



2. When Network 1 fails, Router E sends an update to Router A. Router A stops routing packets to Network 1, but Routers B, C, and D continue to do so because they have not yet been informed of the failure. When Router A sends out its update, Routers B and D stop routing to Network 1. However, Router C has not received an update. For Router C, Network 1 can still be reached through Router B.
2. 當網路1發生問題,路由器E發送一個更新給路由器A。路由器A停止繞送封包給網路1,但是路由器B、C和D仍然持續繞送,因為他們尚未被通知此問題。當路由器A發送出它的更新,路由器B和D停止繞送到網路1。然而路由器C沒有收到更新,對路由器C而言,網路1仍然可經由路由器B到達。



3. Now Router C sends a periodic update to Router D, which indicates a path to Network 1 by way of Router B. Router D changes its routing table to reflect this incorrect information, and sends the information to Router A. Router A sends the information to Routers B and E, and the process continues. Any packet destined for Network 1 will now loop from Router C to B to A to D and back to again to C.
3. 現在路由器C發送出定期更新給路由器D,它指出到網路1可經由路由器B。路由器D改變它的路由表格以反應此錯誤的資訊,並且將資訊發送到路由器A。路由器A發送資訊給路由器B和E,這個程序持續地進行。任何通往網路1的封包現在將從路由器C到B到A到D,然後又回到C,於是形成一個迴圈。



2009年3月8日 星期日

Packet tracer 5.1

New Version Offers Multiuser Capabilities for Social Learning

Packet Tracer 5.1 is the latest version of Cisco Networking Academy’s comprehensive networking technology teaching and learning software. Innovative features of Packet Tracer 5.1, including powerful simulation, visualization, authoring, assessment, and collaboration capabilities, will help students and teachers collaborate, solve problems, and learn concepts in an engaging and dynamic social environment.

Packet Tracer makes both teaching and learning easier - instructors and students can create their own virtual “network worlds” for exploration, experimentation, and explanation of networking concepts and technologies.

Instructors can demonstrate technologies and configurations using Packet Tracer to teach complex CCNA-level networking concepts, making it extremely useful for lectures, group and individual labs, assessments, troubleshooting and modeling tasks, homework, games, and competitions.

Students can design, configure and troubleshoot networks using Packet Tracer’s versatile simulation and visualization environment, which also provides the opportunity and flexibility for additional practice outside of the classroom environment.

Packet Tracer supplements classroom equipment and provides students complementary learning opportunities that are not physically possible to create in the classroom or lab. In addition, Packet Tracer supplements the CCNA curricula and Packet Tracer activities are integrated throughout both CCNA Discovery and CCNA Exploration to provide rich networking technology learning experiences.

Packet Tracer 5.1 offers a unique combination of realistic simulation and visualization experiences, complex assessment and activity authoring capabilities, and opportunities for multiuser collaboration and competition, and is available free of charge to all Networking Academy instructors, students, and alumni. Visit the Packet Tracer 5.1 resource page under the course catalog on Academy Connection today to download this free software and explore the new possibilities in networking education.

The information from CISCO
http://www.cisco.com/web/learning/netacad/course_catalog/PacketTracer.html

Basic static routing




CONFIG HOST





Host A
C:>ipconfig /ip 192.168.1.2 255.255.255.0 //Ip Address
C:>ipconfig /ip 192.168.1.1 //defoult gateway



Host B
C:>ipconfig /ip 192.168.3.2 255.255.255.0 //Ip Address
C:>ipconfig /dg 192.168.3.1 //default gateway


CONFIG ROUTER



Router 1
Router>enable
Router #config t
Router(config)#hostname R1
R1(config)#int e0 //entry ethernet 0 port
R1(config-if)#ip address 192.168.1.1 255.255.255.0 //ethernet 0 ip
R1(config-if)#no shutdown //ethernet 0 port
R1(config-if)#exit
R1(config)#int s0/0 //entry serial0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0 //serial0/0 ip
R1(config-if)#clock rate 64000 //DCE
R1(config-if)#no shutdown //serial0/0 port
R1(config-if)#exit



Router 2
Router>enable
Router#config t
Router(config)# hostname R2
R2(config)#int e0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int s0/0
R2(config-if)# ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#exit





STATIC ROUTING


R1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2
R1(config)#exit


R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1
R2(config)#exit



You can "show ip route"

Look up routing table