网络拓扑综合练习

Posted yinfutao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了网络拓扑综合练习相关的知识,希望对你有一定的参考价值。

技术分享图片

实现:

1.给每种服务器创建不同VLAN划分

2.pc1和pc2可以互相访问

3.pc3-pc11之间可以互相访问

首先配置ip

AR4

<Huawei>sys    
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname route1   
[route1]interface g    
[route1]interface GigabitEthernet 0/0/0   
[route1-GigabitEthernet0/0/0]ip address 10.3.1.254 24
Sep 19 2018 09:34:18-08:00 route1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[route1-GigabitEthernet0/0/0]q
[route1]inter    
[route1]interface g    
[route1]interface GigabitEthernet 0/0/1
[route1-GigabitEthernet0/0/1]ip add    
[route1-GigabitEthernet0/0/1]ip address 10.3.100.1 24
Sep 19 2018 09:34:39-08:00 route1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[route1-GigabitEthernet0/0/1]q    
[route1]ospf 1
[route1-ospf-1]area 0
[route1-ospf-1-area-0.0.0.0]network 10.3.100.0 0.0.0.255
[route1-ospf-1-area-0.0.0.0]q
[route1-ospf-1]area 1
[route1-ospf-1-area-0.0.0.1]
[route1-ospf-1-area-0.0.0.1]netwo    
[route1-ospf-1-area-0.0.0.1]network 10.3.1.0 0.0.0.255

AR5

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname route2
[route2]interface g    
[route2]interface GigabitEthernet 0/0/0    
[route2-GigabitEthernet0/0/0]ip address 10.3.100.2 24
[route2-GigabitEthernet0/0/0]
[route2-GigabitEthernet0/0/0]q    
[route2]interface GigabitEthernet 0/0/1    
[route2-GigabitEthernet0/0/1]ip address 10.3.2.254 24
Sep 19 2018 09:41:56-08:00 route2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[route2-GigabitEthernet0/0/1]q
[route2]ospf 1
[route2-ospf-1]area 1
[route2-ospf-1-area-0.0.0.1]network 10.3.2.0 0.0.0.255
[route2-ospf-1-area-0.0.0.1]q
[route2-ospf-1]area 0    
[route2-ospf-1-area-0.0.0.0]network 10.3.100.0 0.0.0.255
[route2-ospf-1-area-0.0.0.0]q

核心交换机

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname hxjhj    
[hxjhj]vlan batch 1 to 4    
[hxjhj]interface Vlanif 1    
[hxjhj-Vlanif1]ip address 10.3.154.1 24
[hxjhj-Vlanif1]q    
[hxjhj]interface Vlanif 2
[hxjhj-Vlanif2]ip address 10.3.3.254 24
[hxjhj-Vlanif2]q    
[hxjhj]interface Vlanif 3
[hxjhj-Vlanif3]ip address 10.3.4.254 24
[hxjhj-Vlanif3]q    
[hxjhj]interface Vlanif 4
[hxjhj-Vlanif4]ip address 10.3.5.254 24
[hxjhj-Vlanif4]q        
[hxjhj]interface GigabitEthernet 0/0/3    
[hxjhj-GigabitEthernet0/0/3]port link-type access 
[hxjhj-GigabitEthernet0/0/3]port default vlan 2
[hxjhj-GigabitEthernet0/0/3]q    
[hxjhj]interface GigabitEthernet 0/0/4    
[hxjhj-GigabitEthernet0/0/4]port link-type access 
[hxjhj-GigabitEthernet0/0/4]port default vlan 3    
[hxjhj-GigabitEthernet0/0/4]q    
[hxjhj]interface GigabitEthernet 0/0/5    
[hxjhj-GigabitEthernet0/0/5]port link-type access 
[hxjhj-GigabitEthernet0/0/5]port default vlan 4
[hxjhj-GigabitEthernet0/0/5]q    
[hxjhj]interface g    
[hxjhj]interface GigabitEthernet 0/0/1    
[hxjhj-GigabitEthernet0/0/1]port link-type access 
[hxjhj-GigabitEthernet0/0/1]port default vlan 1
[hxjhj-GigabitEthernet0/0/1]q    
[hxjhj]interface GigabitEthernet 0/0/2
[hxjhj-GigabitEthernet0/0/2]port link-type access 
[hxjhj-GigabitEthernet0/0/2]port default vlan 1
[hxjhj-GigabitEthernet0/0/2]q    
[hxjhj]interface GigabitEthernet 0/0/6    
[hxjhj-GigabitEthernet0/0/6]port link-type access 
[hxjhj-GigabitEthernet0/0/6]port default vlan 1

[hxjhj]ospf 1    
[hxjhj-ospf-1]area 0    
[hxjhj-ospf-1-area-0.0.0.0]network     
[hxjhj-ospf-1-area-0.0.0.0]network 10.3.254.0 0.0.0.255
[hxjhj-ospf-1-area-0.0.0.0]q
[hxjhj-ospf-1]area 1    
[hxjhj-ospf-1-area-0.0.0.1]network 
[hxjhj-ospf-1-area-0.0.0.1]network 10.3.3.0 0.0.0.255
[hxjhj-ospf-1-area-0.0.0.1]q
[hxjhj-ospf-1]area 2    
[hxjhj-ospf-1-area-0.0.0.2]network 
[hxjhj-ospf-1-area-0.0.0.2]network 10.3.4.0 0.0.0.255
[hxjhj-ospf-1-area-0.0.0.2]q
[hxjhj-ospf-1]area 3    
[hxjhj-ospf-1-area-0.0.0.3]network 10.3.5.0 0.0.0.255
[hxjhj-ospf-1-area-0.0.0.3]q
[hxjhj-ospf-1]

LSW2

<Huawei>system-view 
[Huawei]sysname jrjhj1    
[jrjhj1]vlan batch 1 to 7    
[jrjhj1]interface Vlanif 1
[jrjhj1-Vlanif1]ip address 10.3.254.2 24
[jrjhj1-Vlanif1]q    
[jrjhj1]interface Vlanif 5
[jrjhj1-Vlanif5]ip address 10.3.6.254 24
[jrjhj1-Vlanif5]q
[jrjhj1]interface Vlanif 6
[jrjhj1-Vlanif6]ip address 10.3.7.254 24
[jrjhj1-Vlanif6]q
[jrjhj1]interface Vlanif 7
[jrjhj1-Vlanif7]ip address 10.3.8.254 24
[jrjhj1-Vlanif7]q    
[jrjhj1]interface GigabitEthernet 0/0/1    
[jrjhj1-GigabitEthernet0/0/1]port link-type access 
[jrjhj1-GigabitEthernet0/0/1]port default vlan 1
[jrjhj1-GigabitEthernet0/0/1]q
[jrjhj1]interface GigabitEthernet 0/0/2    
[jrjhj1-GigabitEthernet0/0/2]port link-type access 
[jrjhj1-GigabitEthernet0/0/2]port default vlan 5
[jrjhj1-GigabitEthernet0/0/2]q
[jrjhj1]interface GigabitEthernet 0/0/3
[jrjhj1-GigabitEthernet0/0/3]port link-type access 
[jrjhj1-GigabitEthernet0/0/3]port default vlan 6
[jrjhj1-GigabitEthernet0/0/3]q    
[jrjhj1]interface GigabitEthernet 0/0/4    
[jrjhj1-GigabitEthernet0/0/4]port link-type access 
[jrjhj1-GigabitEthernet0/0/4]port default vlan 7
[jrjhj1-GigabitEthernet0/0/4]q
[jrjhj1]ospf 1
[jrjhj1-ospf-1]area 0
[jrjhj1-ospf-1-area-0.0.0.0]network 10.3.254.0 0.0.0.255
[jrjhj1-ospf-1-area-0.0.0.0]q
[jrjhj1-ospf-1]    
[jrjhj1-ospf-1]area 1
[jrjhj1-ospf-1-area-0.0.0.1]    
[jrjhj1-ospf-1-area-0.0.0.1]network 10.3.6.0 0.0.0.255
[jrjhj1-ospf-1-area-0.0.0.1]q
[jrjhj1-ospf-1]area 2
[jrjhj1-ospf-1-area-0.0.0.2]network 10.3.7.0 0.0.0.255
[jrjhj1-ospf-1-area-0.0.0.2]q
[jrjhj1-ospf-1]
[jrjhj1-ospf-1]area 3
[jrjhj1-ospf-1-area-0.0.0.3]network 10.3.8.0 0.0.0.255
[jrjhj1-ospf-1-area-0.0.0.3]q

LSW3

可根据LSW2修改配置

所有pc配置根据拓扑图进行配置

例:pc1

技术分享图片

 

 根据以上配置实现了

1.给每种服务器创建不同VLAN划分

pc3和pc11之间是vlan2到vlan10

2.pc1和pc2可以互相访问

技术分享图片

3.pc3-pc11之间可以互相访问

技术分享图片

 

以上是关于网络拓扑综合练习的主要内容,如果未能解决你的问题,请参考以下文章

Cisco Packet Tracer 2.7.1:综合技巧练习 - 研究数据包

VLAN综合练习

VLAN综合练习

网络拓扑图练习

网络工程8实操-万达酒店综合项目

网络工程8实操-万达酒店综合项目