园区网CHAP实现【神州数码设备】

   

IP地址分配:

PC1

192.168.50.2/24

PC2

192.168.60.2/24

PC3

192.168.70.2/24

PC4

192.168.80.2/24

SwitchA  VLAN50

192.168.50.1/24

SwitchA  VLAN60

192.168.60.1/24

SwitchB  VLAN70

192.168.70.1/24

SwitchB  VLAN80

192.168.80.1/24

SwitchA  VLAN1

192.168.1.2/24

SwitchB  VLAN1

192.168.7.2/24

RouterA  F0/0

192.168.1.1/24

RouterB  F0/0

192.168.7.1/24

RouterA  serial0/1

172.16.1.1/24

RouterB  serial0/1

172.16.1.2/24

网络组建

第一题

其中两个路由器使用V35线缆连接。交换机、路由器按要求化分VLAN、设置路由、telnet管理(用户名digital,密码china)

第二题

在交换机SwitchA上划分VLAN50VLAN60Vlan50ip地址为192.168.50.1/24vlan60ip地址为192.168.60.1/24。将1-5端口划分到VLAN50里,将6-10端口划分到VLAN60里。PC1属于 VLAN50 IP地址为192.168.50.2/24,接入SwitchA2端口。PC2 属于VLAN60 IP地址为192.168.60.2/24. 接入SwitchA6端口。

SwitchA的剩余端口划分到VLAN1里,VLAN1IP地址为192.168.1.2/24.SwitchA24口和RouterAF0/0相连。

第三题

在交换机SwitchB上划分VLAN70VLAN80Vlan70ip地址为192.168.70.1/24vlan80ip地址为192.168.80.1/24。将1-5端口划分到VLAN70里,将6-10端口划分到VLAN80里。PC3属于 VLAN70 IP地址为192.168.70.2/24,接入SwitchB2端口.PC2 属于VLAN80 IP地址为192.168.80.2/24,接入SwitchB6端口。

SwitchB的剩余端口划分到VLAN1里,VLAN1IP地址为192.168.7.2/24.SwitchB24口和RouterBF0/0相连。

第四题

设置路由RouterAF0/0IP地址为192.168.1.1/24,串口IP地址为172.16.1.1/24.

设置路由RouterBF0/0IP地址为192.168.7.1/24,串口IP地址为172.16.1.2/24

RouterARouterB串口上启用PPP协议,设置CHAP验证的PPP协议。验证方法列表名为:bisaiDCE端的路由器用户名为:RDCE,密码为:digitalDTE端的路由器用户名为:RDTE,密码为:digitalDCE时钟设置为204800

第五题

使任意两台PC能通过网络互相访问。

====SwitchA的配置=====

DCRS-5650-28#config

DCRS-5650-28(config)#hostname SwitchA

SwitchA(config)#telnet-server enable

SwitchA(config)#telnet-user digital password 0 china

SwitchA(config)#interface vlan 1

SwitchA(config-if-Vlan1)#ip address 192.168.1.2 255.255.255.0

SwitchA(config-if-Vlan1)#exit

SwitchA(config)#vlan 50

SwitchA(config-Vlan50)#switchport interface ethernet 0/0/1-5

SwitchA(config-if-Vlan50)#interface vlan 50

SwitchA(config-if-Vlan50)#ip address 192.168.50.1 255.255.255.0

SwitchA(config-if-Vlan50)#exit

SwitchA(config)#vlan 60

SwitchA(config-Vlan60)#switchport interface ethernet 0/0/6-10

SwitchA(config-Vlan60)#interface vlan 60

SwitchA(config-if-Vlan60)#ip address 192.168.60.1 255.255.255.0

SwitchA(config-if-Vlan60)#exit

SwitchA(config)#interface ethernet 0/0/24

SwitchA(config-If-Ethernet0/0/24)#swtichport mode trunk

=====SwitchB的配置=====

DCRS-5650-28>enable

DCRS-5650-28#config

DCRS-5650-28(config)#hostname SwitchB

SwitchB(config)#telnet-server enable

SwitchB(config)#telnet-user digital password 0 china

SwitchB(config)#vlan 70

SwitchB(config-Vlan70)#name vlan70

SwitchB(config-Vlan70)#switchport interface ethernet 0/0/1-5

SwitchB(config-Vlan70)#exit

SwitchB(config)#vlan 80

SwitchB(config-Vlan80)#name vlan80

SwitchB(config-Vlan80)#switchport interface ethernet 0/0/6-10

SwitchB(config-Vlan80)#interface vlan 1

SwitchB(config-if-Vlan1)#ip address 192.168.7.2 255.255.255.0

SwitchB(config-if-Vlan1)#interface vlan 70

SwitchB(config-if-Vlan70)#ip address 192.168.70.1 255.255.255.0

SwitchB(config-if-Vlan70)#interface vlan 80

SwitchB(config-if-Vlan80)#ip address 192.168.80.1 255.255.255.0

SwitchB(config-if-Vlan70)#interface ethernet 0/0/24

SwitchA(config-If-Ethernet0/0/24)#switchport mode trunk

=====RouterA的配置 =====

Router_config#hostname RouterA

RouterA_config#aaa authentication enable default enable

RouterA_config#enable password digitalchina

RouterA_config#aaa authentication ppp bisai local

RouterA_config#username RouterB password digital1

// RouterB必须强制为对方路由名,密码不作要求

RouterA_config#ip route 0.0.0.0 0.0.0.0 serial 0/1

RouterA_config#interface fastethernet 0/0

RouterA_config_f0/0#ip address 192.168.1.1 255.255.255.0

RouterA_config_f0/0#interface fastethernet 0/0.1

RouterA_config_f0/0.1#encapsulation dot1q 50

RouterA_config_f0/0.1#ip address 192.168.50.254 255.255.255.0

RouterA_config_f0/0.1#interface fastethernet 0/0.2

RouterA_config_f0/0.2#encapsulation dot1q 60

RouterA_config_f0/0.2#ip address 192.168.60.254 255.255.255.0

RouterA_config_f0/0.2#interface serial 0/1

RouterA_config_s0/1#ip address 172.16.1.1 255.255.255.0

RouterA_config_s0/1#encapsulation ppp

RouterA_config_s0/1#ppp authentication chap bisai

=====RouterB的配置====

Router_config#hostname RouterB

RouterB_config#aaa authentication enable default enable

RouterB_config#enable password digitalchina

RouterB_config#aaa authentication  ppp default local

RouterB_config#username RouterA password digital2

// RouterA必须强制为对方路由名,密码不作要求

RouterB_config#ip route 0.0.0.0 0.0.0.0 serial 0/1

RouterB_config#interface fastethernet 0/0

RouterB_config_f0/0#ip address 192.168.1.2 255.255.255.0

RouterB_config_f0/0#interface fastethernet 0/0.1

RouterB_config_f0/0.1#encapsulation dot1q 70

RouterB_config_f0/0.1#ip address 192.168.70.254 255.255.255.0

RouterB_config_f0/0.1#interface fastethernet 0/0.2

RouterB_config_f0/0.2#encapsulation dot1q 80

RouterB_config_f0/0.2#ip address 192.168.80.254 255.255.255.0

RouterB_config_f0/0.2#interface serial 0/1

RouterB_config_s0/1#physical-layer speed 2048000

RouterB_config_s0/1#ip address 172.16.1.2 255.255.255.0

RouterB_config_s0/1#encapsulation ppp

RouterB_config_s0/1#ppp authentication chap

 

 

本文出自 “天匆云汇” 博客,转载请与作者联系!

你可能感兴趣的:(职场,路由,休闲,交换,神州数码)