当前位置:首页>微思动态 > >详情
全国热线电话 400-881-4699

在线留言

【每日必学】多地IP地址分配

发布作者:微思网络   发布时间:2017-03-30   浏览量:0

第一章 实战背景


今天给大家介绍大公司的实战案例,文档比较长,我们分几部分来更新,今天先更新1-2章,希望大家能看的懂。

泉州CCNA培训是没有讲到这些的,一般培训机构只会叫你怎么做实验,并不会给你一些实战案例来实际操作。

某集团公司总部在厦门,上海、北京、广州都有分部。网络结构如图所示:

 泉州CCNA培训

一、网络连接描述:

厦门总部:内部网络使用SW1(型号3550-12T)、SW2(型号2950-24)、SW3(型号2950-24)、SW4(型 号2912)四台交换机,SW1为作为核心交换机,SW2SW3SW4作为接入层交换机,每台交换机所连接的网络设备如图所示;使用R1将总部网络接入到InternetR1还使用DDN专线跟北京分部的R2和上海分部R3相连接。

       北京分部:使用R2将内部网络连接到总部和上海分部

       上海分部:局域网使用2912交换机,使用R3将局域网连接到北京分部和上海分部

       广州分部:使用RX将内部网连接到Internet

 

二、IP地址分配

IP地址按拓扑图所示进行分配,所有网络的子网掩码都是255.255.255.0

第二章 基本配置

一、 配置所有设备的hostname , consolevty 密码、enable密码都为cisco,关闭ip domain-lookup,启用logging synchronous,将exec-timeout设置为00秒,启用密码加密功能service password-encryption

 

答案:

用命令hostname配置设备的主机名:

Hostname  SW1  //具体主机名按拓扑来配置

 

配置console口密码:

line console 0

  password cisco

  login

配置vty密码:

Line vty 0 4

  Password cisco

  Login

配置enable密码:

enable secret cisco

 

关闭域名查找功能:

No ip domain-lookup

 

console口和VTY启用logging synchronous

Line console 0

  logging synchronous

 

line vty 0 4

logging synchronous

 

启用会话不超时功能:

Line console 0

  Exec-timeout 0 0

Line vty 0 4

  Exec-timeout 0 0

 

启用密码加密功能:

service password-encryption

 

二、 所有设备的IP地址按拓扑图进行配置

答案:

配置R1四个接口的IP地址,并启用,如果是DCE接口则配置时钟:

R1(config)#int S0/0

R1(config-if)#clock rate 64000

R1(config-if)#ip add 12.1.1.1 255.255.255.0

R1(config-if)#no shutdown

R1(config)#int S0/1

R1(config-if)#clock rate 64000

R1(config-if)#ip address 13.1.1.1 255.255.255.0

R1(config-if)#no shutdown

R1(config)#int e1/0

R1(config-if)#ip add 10.1.200.1 255.255.255.0

R1(config-if)#no shutdown

 

R1(config)#int e0/0

R1(config-if)#ip add 221.1.1.2 255.255.255.0

R1(config-if)#no shutdown

 

配置R2三个接口的IP地址,并启用,如果是DCE接口则配置时钟:

R2(config)#int s0/0

R2(config-if)#ip add 12.1.1.2 255.255.255.0

R2(config-if)#no sh

 

R2(config)#int s0/1

R2(config-if)#ip add 23.1.1.2 255.255.255.0

R2(config-if)#clock rate 64000

 

R2(config)#int e0/0

R2(config-if)#ip add 172.16.30.254 255.255.255.0

R2(config-if)#no shutdown

 

配置R3两个广域网接口的IP地址并启用启用 以太网接口E0/0

R3(config)#int s0/0

R3(config-if)#ip add 13.1.1.3 255.255.255.0

R3(config-if)#no shut

 

R3(config-if)#int s1/0

R3(config-if)#ip add 23.1.1.3 255.255.255.0

R3(config-if)#no shut

 

R3(config-if)#int e0/0

R3(config-if)#no shutdown

 

检查确认命令:show run  , show ip interface brief  , show interface ,show cdp neighbor

 

三、 使用show cdp neighbor检查设备的接线情况和连通性

答案:

SW1上查看:

SW1# show cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

 

Device ID        Local Intrfce     Holdtme    Capability  Platform    Port ID

SW2              Gig 0/2           176       S I    WS-C2950  Fas 0/2

SW2              Gig 0/1           176       S I    WS-C2950  Fas 0/1

SW3              Gig 0/3           175       S I      WS-C2950  Fas 0/3

SW4              Gig 0/4           170       T S      WS-C2912  Fas 0/4

R1                Gig 0/10          150       R S I    3640       Eth 1/0

 

R1上查看:

R1# show cdp neighbors 

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

                  S - Switch, H - Host, I - IGMP, r - Repeater

 

Device ID        Local Intrfce     Holdtme    Capability   Platform     Port ID

SW1             Eth 1/0            126         S I    WS-C3550    Gig 0/10

Internet           Eth 0/0            152          R      2500       Eth 1

R2               Ser 0/0            138        R S I      3640      Ser 0/0

R3               Ser 1/0            140        R S I      3640      Ser


返回顶部