VLAN间的路由配置实验报告(2)

2018-12-22 21:10

Exiting....

c2950#config t

Enter configuration commands, one per line. End with CNTL/Z. c2950(config)#inter range fa0/1 -4

c2950(config-if-range)#switchport access vlan 2 c2950(config-if-range)#inter range fa0/0/5 -8

^ % Invalid input detected at '^' marker.

c2950(config)#inter range fa0/5 -8

c2950(config-if-range)#switchport access vlan 3 c2950(config-if-range)#interface f0/24 c2950(config-if)#switchport mode trunk c2950(config-if)#exit c2950(config)#end c2950#

00:18:36: %SYS-5-CONFIG_I: Configured from console by console

二、路由访问控制列表配置

交换机2950-A 路由器r1 fa0/1 IP地址: 192.168.1.2 默认网关: 192.168.1.1 192.168.1.1 S0/0/0 192.168.12.1 路由r2 S0/1 192.168.12.2 fa0/1 192.168.2.1 交换机2950-B IP地址: 192.168.2.2 默认网关: 192.168.2.1 图8.20 采用交换机的路由器配置环境

未添加acl之前 R1的配置

Router>enable Router#config t

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ri ri(config)#inter f0/0

ri(config-if)#ip address 192.168.1.1 255.255.255.0

ri(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

ri(config-if)#inter s0/0/0 ^

% Invalid input detected at '^' marker.

ri(config-if)#exit

ri(config)#inter s0/0/0 ^

% Invalid input detected at '^' marker.

ri(config)#inter s0/0/1 ^

% Invalid input detected at '^' marker.

ri(config)#inter s0/0 ri(config-if)# ri(config-if)#exit

ri(config)#interface Serial0/0 ri(config-if)# ri(config-if)#exit

ri(config)#interface Serial0/1 ri(config-if)# ri(config-if)#exit

ri(config)#interface Serial0/0

ri(config-if)#ip address 192.168.12.1 255.255.255.0 ri(config-if)#encap ppp

ri(config-if)#clock rate 64000 ri(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0, changed state to down ri(config-if)#no shutdown ri(config-if)# ri(config-if)#exit

ri(config)#interface Serial0/0 ri(config-if)#exit ri(config)#exit

%SYS-5-CONFIG_I: Configured from console by console

ri#config t

Enter configuration commands, one per line. End with CNTL/Z. ri(config)#router rip

ri(config-router)#network 192.168.1.0 ri(config-router)#network 192.168.12.0 ri(config-router)#end

%SYS-5-CONFIG_I: Configured from console by console ri#show 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

C 192.168.1.0/24 is directly connected, FastEthernet0/0 ri#

%LINK-5-CHANGED: Interface Serial0/0, changed state to up

ri#show 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

C 192.168.1.0/24 is directly connected, FastEthernet0/0 ri#

ri#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. ri(config)#interface Serial0/0 ri(config-if)# ri(config-if)#exit ri(config)# ri(config)#

ri(config)#router rip

ri(config-router)# ri#

%SYS-5-CONFIG_I: Configured from console by console

ri#ping 192.168.12.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds: .....

Success rate is 0 percent (0/5)

ri#show inter

FastEthernet0/0 is up, line protocol is up (connected)

Hardware is Lance, address is 00e0.f9aa.eb23 (bia 00e0.f9aa.eb23) Internet address is 192.168.1.1/24

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00,

Last input 00:00:08, output 00:00:05, output hang never Last clearing of \

Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: fifo

Output queue :0/40 (size/max)

5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 input packets with dribble condition detected 1 packets output, 52 bytes, 0 underruns

0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier

ri#show inter

FastEthernet0/0 is up, line protocol is up (connected)

Hardware is Lance, address is 00e0.f9aa.eb23 (bia 00e0.f9aa.eb23) Internet address is 192.168.1.1/24

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00,

Last input 00:00:08, output 00:00:05, output hang never


VLAN间的路由配置实验报告(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:会销讲师开场白的精辟总结

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: