园区网DHCP+OSPF实现【神州数码设备】

 

IP地址分配:

PC1

192.168.40.2/24

PC2

10.1.1.3/24

PC3

DHCP获取

PC4

192.168.60.2/24

SwitchA VLAN1

10.1.3.1/24

SwitchA VLAN50

192.168.50.124

SwitchB VLAN1

10.1.1.2/24

SwitchB VLAN40

192.168.40.1/24

RouterA F0/0

10.1.1.1/24

RouterA F0/3

10.1.3.2/24

RouterA Serial0/1

10.1.2.1/24

RouterB Serial0/1

10.1.2.2/24

RouterB F0/0

192.168.60.1/24

 

 

网络组建

第一题

制作五条直通线,一条交叉线。请按拓扑图正确将各设备互连,其中两个路由器使用V35线缆连接。交换机、路由器按要求化分VLAN、设置路由、telnet管理(用户名digital,密码china)

第二题

SwitchB上划分两个VLAN40 VLAN1,并设置相应IP地址。在将SwitchB1-12端口划分到VLAN40,PC1接入Switch11端口。将其余端口划分到VLAN1PC2接入SwitchA23端口。VLAN124口连接至RouterAF0/0口。

第三题

SwitchA上划分两个VLAN50 VLAN1,并设置相应IP地址。在将SwitchA1-12端口划分到VLAN50,PC3接入SwitchA1端口。将其余端口划分到VLAN1VLAN124口连接至RouterAF0/3口。

SwitchA设置VLAN50DHCP服务器(网段192.168.50.0/24,缺省网关:192.168.50.1)。

第四题

RouterARouterB端口上设置相应的IP地址。通过V35线缆连接至RouterB配置PPP串口封装协议和DTE端封装时钟64000

第五题

在交换机和路由器上设置静态路由,使个各个PC机之间能够互相通信。

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

Router#config

Router_config#hostname RouterA

RouterA_config#interface fastethernet 0/0

RouterA_config_f0/0#ip address 10.1.1.1 255.255.255.0

RouterA_config_f0/0#interface fastethernet 0/0.1

RouterA_config_f0/0.1#encapsulation dot1q 40

RouterA_config_f0/0.1#ip address 192.168.40.254 255.255.255.0

RouterA_config_f0/0.1#interface fastethernet 0/3      

RouterA_config_f0/3#ip address 10.1.3.2 255.255.255.0

RouterA_config_f0/3#interface fastethernet 0/3.1

RouterA_config_f0/3.1#encapsulation dot1q 50

RouterA_config_f0/3.1#ip address 192.168.50.254 255.255.255.0

RouterA_config_f0/3.1#interface serial 0/1             

RouterA_config_s0/1#ip address 10.1.2.1 255.255.255.0

RouterA_config_s0/1#encapsulation ppp

RouterA_config_s0/1#exit

RouterA_config#ip route 192.168.60.0 255.255.255.0 serial 0/1

RouterA_config#ip route 10.1.1.0 255.255.255.0 fastethernet 0/0

RouterA_config#ip route 192.168.40.0 255.255.255.0 fastethernet 0/0

RouterA_config#ip route 10.1.3.0 255.255.255.0 fastethernet 0/3   

RouterA_config#ip route 192.168.50.0 255.255.255.0 fastethernet 0/3

RouterA_config#ip route 10.1.2.0 255.255.255.0 serial 0/1

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

Rotuer#config

Rotuer_config#hostname RouterB

RotuerB_config#interface fastethernet 0/0

RotuerB_config_f0/0#ip address 192.168.60.1 255.255.255.0

RotuerB_config_f0/0#interface serial 0/1

RotuerB_config_s0/1#ip address 10.1.2.2 255.255.255.0

RotuerB_config_s0/1#encapsulation ppp

RotuerB_config_s0/1#physical-layer speed 64000

RotuerB_config_s0/1#exit

RotuerB_config#ip route 10.1.1.0 255.255.255.0 serial 0/1

RotuerB_config#ip route 192.168.40.0 255.255.255.0 serial 0/1

RotuerB_config#ip route 192.168.50.0 255.255.255.0 serial 0/1

RotuerB_config#ip route 10.1.3.0 255.255.255.0 serial 0/1  

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

DCRS-5650-28#config

DCRS-5650-28(config)#hostname SwitchA

SwitchA(config)#interface vlan 1

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

SwitchA(config-if-Vlan1)#exit

SwitchA(config)#service dhcp

SwitchA(config)#ip dhcp pool 1

SwitchA(dhcp-1-config)#network-address 192.168.50.0 255.255.255.0

SwitchA(dhcp-1-config)#default-router 192.168.50.1

SwitchA(dhcp-1-config)#exit

SwitchA(config)#vlan 50

SwitchA(config-Vlan50)#name vlan50

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

SwitchA(config-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)#interface ethernet 0/0/24    

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

SwitchA(config-if-Ethernet0/0/24)#exit

SwitchA(config)#ip route 10.1.1.0 255.255.255.0 10.1.3.2

SwitchA(config)#ip route 192.168.40.0 255.255.255.0 10.1.3.2

SwitchA(config)#ip route 10.1.2.0 255.255.255.0 10.1.3.2   

SwitchA(config)#ip route 192.168.60.0 255.255.255.0 10.1.3.2

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

DCRS-5650-28(config)#hostname SwitchB

SwitchB(config)#interface vlan 1

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

SwitchB(config-if-Vlan1)#exit

SwitchB(config)#vlan 40

SwitchB(config-Vlan40)#switchport interface ethernet 0/0/1-12

SwitchB(config-Vlan40)#interface vlan 40

SwitchB(config-if-Vlan40)#ip address 192.168.40.1 255.255.255.0

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

SwitchB(config-if-Ethernet0/0/24)#switchport mode trunk

SwitchB(config-if-Ethernet0/0/24)#exit

SwitchB(config)#ip route 10.1.2.0 255.255.255.0 10.1.1.1

SwitchB(config)#ip route 10.1.3.0 255.255.255.0 10.1.1.1

SwitchB(config)#ip route 192.168.60.0 255.255.255.0 10.1.1.1

SwitchB(config)#ip route 192.168.50.0 255.255.255.0 10.1.1.1

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

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