内容发布更新时间 : 2024/12/25 2:19:28星期一 下面是文章的全部内容请认真阅读。
Pinging 192.168.1.2 with 32 bytes of data:
Request timed out. Request timed out. Request timed out. Request timed out.
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
PC3 show run
S2126G-2#show run
System software version : 1.66(3) Build Sep 7 2006 Rel
Building configuration...
Current configuration : 317 bytes !
version 1.0 !
hostname S2126G-2 vlan 1 !
vlan 10 name sales !
enable secret level 14 5 'T>H.Y*T3UC,tZ[V4^D+S(\\W54G1X)sv enable secret level 15 5 'Stj9=G14X7R:>H.UUu_;C,tQ2U0 interface fastEthernet 0/5 switchport access vlan 10 ! interface fastEthernet 0/24 switchport mode trunk ! End PC3 ping C:\\Documents and Settings\\Administrator>ping 192.168.1.3 Pinging 192.168.1.3 with 32 bytes of data: 6 Reply from 192.168.1.3: bytes=32 time<1ms TTL=128 Reply from 192.168.1.3: bytes=32 time<1ms TTL=128 Reply from 192.168.1.3: bytes=32 time<1ms TTL=128 Reply from 192.168.1.3: bytes=32 time<1ms TTL=128 Ping statistics for 192.168.1.3: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms C:\\Documents and Settings\\Administrator>ping 192.168.1.1 Pinging 192.168.1.1 with 32 bytes of data: Reply from 192.168.1.1: bytes=32 time<1ms TTL=128 Reply from 192.168.1.1: bytes=32 time<1ms TTL=128 Reply from 192.168.1.1: bytes=32 time<1ms TTL=128 Reply from 192.168.1.1: bytes=32 time<1ms TTL=128 Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms C:\\Documents and Settings\\Administrator>ping 192.168.1.2 Pinging 192.168.1.2 with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 192.168.1.2: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), 7 实验名称:静态路由配置 一.实验目的 掌握通过静态路由方式实现网络的连通性 二.实验背景 假设校园网通过1台路由器连接到校园外的另外1台路由器上,现要在路由器上做适当的配置,实现校园网内部主机与校园网外部主机的相互通信。 三.实验原理 路由器属于网络层设备,能够根据IP包头的信息,选择一条最佳路径,将数据包转发出去。实现不同网段的主机之间的互相访问。 路由器是根据路由表进行选路和转发的。而路由表里就是一条条的路由信息。路由表的产生方式一般有3种: 直连路由 给路由器接口配置一个IP地址,路由器自动生成产生本接口IP所在网络的路由信息。 静态路由 在拓扑结构简单的网络中,网管员通过手工的方式配置本路由器未知网段的路由信息,从而实现不同网段之间的连接。 动态路由协议学习产生的路由 在大规模的网络中,货拓扑结构相对复杂的情况下,通过在路由器上运行动态路由协议,路由器之间互相学习产生路由信息。 四.实现功能 实现网络的互联互通,从而实现信息的共享和传递。 五.实验设备 R1762 两台 V35线缆 一条 PC 两台 直连线 两条 六.实验拓扑 172.16.2.1/24 172.16.2.2 172.16.1.1 R1 R2 172.16.3.2 172.16.3.22/24 172.16.1.11/24 172.16.1.1 七.实验步骤 PC1 172.16.3.2 PC2 8 步骤1:在路由器1上配置接口的IP地址和串口上的时钟频率。 Router1 (config)# interface fastethernet 1/0 Router1 (config-if)# ip address 172.16.1.1 255.255.255.0 Router1 (config-if)# no sh Router1 (config)# interface serial 1/2 Router1 (config-if)# ip address 172.16.2.1 255.255.255.0 Router1 (config-if)# clock rate 64000 Router1 (config)# no sh 步骤2:在路由器1上配置静态路由 Router1(config)# ip address 172.16.3.0 255.255.255.0 172.16.2.2 步骤3:在路由器2上配置接口的IP地址和串口上的时钟频率。 Router2 (config)# interface fastethernet 1/0 Router2 (config-if)# ip address 172.16.3.2 255.255.255.0 Router2(config-if)# no sh Router2(config)# interface serial 1/2 Router2 (config-if)# ip address 172.16.2.2 255.255.255.0 Router2(config-if)# clock rate 64000 Router2 (config)# no sh 步骤4:在路由器2上配置静态路由。 Router2(config)# ip address 172.16.1.0 255.255.255.0 172.16.2.1 步骤5:显示路由器的全部配置。 R1700-1#show running-config !显示路由器1的全部配置 Building configuration... Current configuration : 617 bytes ! version 8.52 (building 6) hostname R1700-1 no service password-encryption interface serial 1/2 ip address 172.16.2.1 255.255.255.0 clock rate 64000 interface serial 1/3 clock rate 64000 interface FastEthernet 1/0 ip address 172.16.1.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet 1/1 duplex auto 9 speed auto interface Null 0 ip route 172.16.3.0 255.255.255.0 172.16.2.2 voice-port 2/0 voice-port 2/1 voice-port 2/2 voice-port 2/3 line con 0 line aux 0 line vty 0 4 login end R1700-2#show running-config !显示路由器2的全部配置 Building configuration... Current configuration : 598 bytes ! version 8.52 (building 6) hostname R1700-2 no service password-encryption interface serial 1/2 ip address 172.16.2.2 255.255.255.0 ! interface serial 1/3 clock rate 64000 ! interface FastEthernet 1/0 ip address 172.16.3.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet 1/1 duplex auto speed auto ! interface Null 0 ip route 172.16.1.0 255.255.255.0 172.16.2.1 voice-port 2/0 voice-port 2/1 voice-port 2/2 voice-port 2/3 line con 0 line aux 0 10