banner
NEWS LETTER

组建练习题

Scroll down

组建练习

一、拓扑图

这里写图片描述

二、内网规划与设计

某公司内部网络采用私网IP地址为192.168.X.0/?,规划分配IP给有3个部门A~C,满足A部门主机数Y台,B部门主机数5Y台主机,C部门主机数Y2台主机,由于网络安全需求3个部门的IP必须处于不同的子网中,根据要求选用网络设备完成该网络的组建实现全网连通并测试(A部门VLAN10;B部门VLAN20;C部门VLAN30)。

三、规划表

序号 设备名称 Ipv4 地址 默认网关
1 部门A - S01 192.168.36.129/28 192.168.36.142
2 部门A - S02 192.168.36.130/28 192.168.36.142
3 部门B - PC1 192.168.36.65/26 192.168.36.126
4 部门B - PC2 192.168.36.66/26 192.168.36.126
5 部门C - PC1 DHCP 192.168.36.62
6 部门C - PC2 DHCP 192.168.36.62
7 部门C - S03 192.168.36.1/26 192.168.36.62
8 中心机房 - 核心交换机 10.10.36.1/30
9 中心机房 - 接入路由器 10.10.36.2/30 & 10.20.36.1/30
10 外网 - 接入路由器 10.20.36.2/30 & 14.0.0.1/8
11 外网 - S04 10.30.36.1/30 10.30.36.2
12 外网 - S05 14.215.177.38/8 14.0.0.1

三、DEMO

中心机房 - 核心交换机

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
enable
conf t
vlan 10
vlan 20
vlan 30
int vlan 10
ip add 192.168.36.142 255.255.255.240
int vlan 20
ip add 192.168.36.126 255.255.255.192
int vlan 30
ip add 192.168.36.62 255.255.255.192
int range fa0/1-5
switchport access vlan 10
int range fa0/6-10
switchport mode trunk
switchport trunk encapsulation dot1q
int range fa0/11-15
switchport mode trunk
switchport trunk encapsulation dot1q
int fa0/14
switchport access vlan 30
int fa0/24
no switchport
ip add 10.10.36.1 255.255.255.252
ip routing
route ospf 10
network 10.10.36.0 0.0.0.3 area 0
network 192.168.36.0 0.0.0.63 area 0
network 192.168.36.64 0.0.0.63 area 0
network 192.168.36.128 0.0.0.15 area 0

中心机房 - 接入路由器

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
enable
conf t
int fa0/0
ip add 10.10.36.2 255.255.255.252
no shutdown
int s0/2/0
ip add 10.20.36.1 255.255.255.252
no shutdown
ip nat outside
router ospf 10
network 10.10.36.2 0.0.0.3 area 0
default-information originate
ip route 0.0.0.0 0.0.0.0 10.20.36.2
ip access-list standard 10
permit 192.168.36.0 0.0.0.63
permit 192.168.36.64 0.0.0.63
deny 192.168.36.128 0.0.0.15
ip nat inside source list 10 interface serial 0/2/0 overload

部门B - 接入交换机1

1
2
3
4
5
6
7
enable
conf t
vlan 20
int fa0/24
switchport mode trunk
int range fa0/1-23
switchport access vlan 20

部门B - 接入交换机2

1
2
3
4
5
6
7
enable
conf t
vlan 20
int fa0/24
switchport mode trunk
int range fa0/1-23
switchport access vlan 20

部门C - 接入交换机1

1
2
3
4
5
6
7
enable
conf t
vlan 30
int fa0/24
switchport mode trunk
int range fa0/1-23
switchport access vlan 30

部门C - 接入交换机2

1
2
3
4
5
6
7
enable
conf t
vlan 30
int fa0/24
switchport mode trunk
int range fa0/1-23
switchport access vlan 30

外网 - 接入路由器

1
2
3
4
5
6
7
8
9
10
11
enable
conf t
int s0/2/0
ip add 10.20.36.2 255.255.255.252
no shutdown
int fa0/0
ip add 10.30.36.2 255.255.255.252
no shutdown
int fa0/1
ip add 14.0.0.1 255.0.0.0
no shutdown
其他文章