工作任务描述

两个企业位于同一栋大楼,要求将两个公司的现有网络(独立子网)相互连接,以实现双方信息交流,资源共享的目的 。

工作任务实施

1.网络拓扑结构设计(粘贴PT的拓扑图,要有IP地址的规划信息)

wKioL1UZNiuCoGkyAAMyB-mV0aA896.jpg   2.设备配置命令(各个路由器分别配置)

Router>en

Router#

Router#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#interface f0/0

Router(config-if)#

Router(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config-if)#

Router(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

 

Router(config-if)#exit

Router(config)#

Router(config)#interface f0/1

Router(config-if)#ip address 192.168.2.1 255.255.255.0

Router(config-if)#no shutdown

 

Router(config-if)#

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

 

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

 

Router(config-if)#

Router(config-if)#

3.单段测试结果

Router#ping 192.168.1.2

 

Type escape sequence to abort.

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

.....

Success rate is 0 percent (0/5)

 

Router#ping 192.168.2.2

 

Type escape sequence to abort.

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

.....

Success rate is 0 percent (0/5)

 4.  综合测试结果

wKiom1UZNPHSFt94AAOgIGyUm4k158.jpg

 

 

wKioL1UZNizRElfMAAObLOfa5E4579.jpg

 5. 查看路由器的路由

Router#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

C    192.168.2.0/24 is directly connected, FastEthernet0/1

Router#

 6. 查看路由器的接口状态

Router#show ip interface brief

Interface              IP-Address      OK? Method Status                Protocol

 

FastEthernet0/0        192.168.1.1     YES manual up                    up

 

FastEthernet0/1        192.168.2.1     YES manual up                    up

Router#

 7.查看路由器的当前配置文件、

Router#show running-config

Building configuration...

 

Current configuration : 433 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

!

interface FastEthernet0/0

 ip address 192.168.1.1 255.255.255.0

 duplex auto

 speed auto

!

interface FastEthernet0/1

 ip address 192.168.2.1 255.255.255.0

 duplex auto

 speed auto

!

ip classless

!

!

!

!

!

line con 0

line vty 0 4

 login

!

!

!

end

工作扩展

配置路由器的telnet远程调试功能,使用的登陆密码和特权密码都为cisco,写出配置命令。

Router#config terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#enable password cisco

Router(config)#enable secret cisco

Router(config)#hostname R1

R1(config)#line vty 0 4

R1(config-line)#login

 

% Login disabled on line 66, until 'password' is set

% Login disabled on line 67, until 'password' is set

% Login disabled on line 68, until 'password' is set

% Login disabled on line 69, until 'password' is set

% Login disabled on line 70, until 'password' is set

R1(config-line)#password cisco 

PC>telnet 192.168.1.1

Trying 192.168.1.1 ...Open

 

 

User Access Verification

 

Password:

R1>enable

Password:

R1#

1.单段测试不成功的原因?

添加IP后没有 no  shutdown

防火墙未阻挡

       2.整体测试不成功的原因?

防火墙阻挡

没有添加网关

       3.基于路由器的网络互联设计的注意事项是什么?

注意IP的分配

网管设置