(J1-3)天泽信息技术有限公司、DHCP、VLANIF、Eth-Trunk

 

模块一 试题编号:J1-3,天泽信息技术有限公司网络搭建与配置

(1)任务描述

天泽信息有限公司近年来业务发展迅速,员工数量急剧增加。原有网络已经不能满足业务不断增长的需要。公司高层要求网络部网络管理员小华对公司网络进行重新规划,统一管理,以提升网络性能并增强安全性。

天泽信息有限公司目前大约有 180台主机,分属财务部、市场部、研发部、行政部等部门,由于用户比较多,采用静态 IP 地址分配,网络管理员的工作量会大大增加。因此增加了一台 DHCP 服务器,动态分配 IP。天泽信息公司内网采用 172.16.10.0/24这个网段,通过划分 vlan,每个部门在一个单独的广播域内,网关地址使用子网中最后一个 IP地址。

天泽信息公司的拓扑结构图下图所示:

现请你对公司网络进行构建,具体任务如下:

任务一:网络设备选型与互联(6

①选择合适的网络互联设备进行组网,使用eNSP完成。(2 分)

②选择合适的连接线缆,用于连接网络设备。(1 分)

③根据需要,将网线连接到各网络设备接口上,注意:LSW1的GE0/0/1与LSW2的GE0/0/1口相连,LSW1的GE0/0/2口与LSW2的GE0/0/2口相连,LSW1的GE0/0/3口与LSW3的E0/0/1口相连。(3 分)

任务二:交换机基本配置(9 分)

①使用eNSP对LSW1、LSW2、LSW3 进行基本配置,LSW1 配置主机名为SWITCH_A, LSW2配置主机名为 SWITCH_B,LSW3配置主机名为SWITCH_C。(6分)

②在LSW1上配置 CONSOLE口登录口令为 XYZ。(3分)

LSW1

[Huawei]sysname SWITCH_A
[SWITCH_A]

LSW2

[Huawei]sysname SWITCH_B
[SWITCH_B]

LSW3

[Huawei]sysname SWITCH_C
[SWITCH_C]

LSW1

[SWITCH_A]user-interface console 0
[SWITCH_A-ui-console0]authentication-mode password
[SWITCH_A-ui-console0]set authentication password cipher XYZ
[SWITCH_A-ui-console0]q
[SWITCH_A]

任务三:划分vlan (31 分)

①根据需求,在LSW1上划分vlan,创建 vlan10,vlan20,vlan30,vlan40,vlan10描述为 caiwubu,vlan20描述为 shichangbu,vlan30描述为 yanfabu,vlan40描述为xingzhengbu。(5分)

[SWITCH_A]vlan 10
[SWITCH_A-vlan10]description caiwubu
[SWITCH_A-vlan10]q
[SWITCH_A]vlan 20
[SWITCH_A-vlan20]description shichangbu
[SWITCH_A-vlan20]q
[SWITCH_A]vlan 30
[SWITCH_A-vlan30]description yanfabu
[SWITCH_A-vlan30]q
[SWITCH_A]vlan 40
[SWITCH_A-vlan40]description xingzhengbu
[SWITCH_A-vlan40]q
[SWITCH_A]

②在LSW2上创建2个vlan,vlan10,vlan20。将E0/0/5-10划分到vlan10,E0/0/11-15划分到vlan20。(12分)

[SWITCH_B]vlan batch 10 20 
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_B]port-group vlan10
[SWITCH_B-port-group-vlan10]group-member e 0/0/5 to e0/0/10
[SWITCH_B-port-group-vlan10]port link-type access
[SWITCH_B-Ethernet0/0/5]port link-type access
[SWITCH_B-Ethernet0/0/6]port link-type access
[SWITCH_B-Ethernet0/0/7]port link-type access
[SWITCH_B-Ethernet0/0/8]port link-type access
[SWITCH_B-Ethernet0/0/9]port link-type access
[SWITCH_B-Ethernet0/0/10]port link-type access
[SWITCH_B-port-group-vlan10]port default vlan 10
[SWITCH_B-Ethernet0/0/5]port default vlan 10
[SWITCH_B-Ethernet0/0/6]port default vlan 10
[SWITCH_B-Ethernet0/0/7]port default vlan 10
[SWITCH_B-Ethernet0/0/8]port default vlan 10
[SWITCH_B-Ethernet0/0/9]port default vlan 10
[SWITCH_B-Ethernet0/0/10]port default vlan 10
[SWITCH_B-port-group-vlan10]q
[SWITCH_B]port-group vlan20
[SWITCH_B-port-group-vlan20]group-member e0/0/11 to e0/0/15
[SWITCH_B-port-group-vlan20]port link-type access
[SWITCH_B-Ethernet0/0/11]port link-type access
[SWITCH_B-Ethernet0/0/12]port link-type access
[SWITCH_B-Ethernet0/0/13]port link-type access
[SWITCH_B-Ethernet0/0/14]port link-type access
[SWITCH_B-Ethernet0/0/15]port link-type access
[SWITCH_B-port-group-vlan20]port default vlan 20
[SWITCH_B-Ethernet0/0/11]port default vlan 20
[SWITCH_B-Ethernet0/0/12]port default vlan 20
[SWITCH_B-Ethernet0/0/13]port default vlan 20
[SWITCH_B-Ethernet0/0/14]port default vlan 20
[SWITCH_B-Ethernet0/0/15]port default vlan 20
[SWITCH_B-port-group-vlan20]q
[SWITCH_B]

③在LSW3上创建2个vlan,vlan30,vlan40。将E0/0/5-10划分到vlan30,E0/0/11-15划分到vlan40 (12分)

[SWITCH_C]vlan batch 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_C]port-group vlan30
[SWITCH_C-port-group-vlan30]group-member e 0/0/5 to e0/0/10
[SWITCH_C-port-group-vlan30]port link-type access
[SWITCH_C-Ethernet0/0/5]port link-type access
[SWITCH_C-Ethernet0/0/6]port link-type access
[SWITCH_C-Ethernet0/0/7]port link-type access
[SWITCH_C-Ethernet0/0/8]port link-type access
[SWITCH_C-Ethernet0/0/9]port link-type access
[SWITCH_C-Ethernet0/0/10]port link-type access
[SWITCH_C-port-group-vlan30]port default vlan 30
[SWITCH_C-Ethernet0/0/5]port default vlan 30
[SWITCH_C-Ethernet0/0/6]port default vlan 30
[SWITCH_C-Ethernet0/0/7]port default vlan 30
[SWITCH_C-Ethernet0/0/8]port default vlan 30
[SWITCH_C-Ethernet0/0/9]port default vlan 30
[SWITCH_C-Ethernet0/0/10]port default vlan 30
[SWITCH_C-port-group-vlan30]q
[SWITCH_C]port-group vlan40
[SWITCH_C-port-group-vlan40]group-member e0/0/11 to e0/0/15
[SWITCH_C-port-group-vlan40]port link-type access
[SWITCH_C-Ethernet0/0/11]port link-type access
[SWITCH_C-Ethernet0/0/12]port link-type access
[SWITCH_C-Ethernet0/0/13]port link-type access
[SWITCH_C-Ethernet0/0/14]port link-type access
[SWITCH_C-Ethernet0/0/15]port link-type access
[SWITCH_C-port-group-vlan40]port default vlan 40
[SWITCH_C-Ethernet0/0/11]port default vlan 40
[SWITCH_C-Ethernet0/0/12]port default vlan 40
[SWITCH_C-Ethernet0/0/13]port default vlan 40
[SWITCH_C-Ethernet0/0/14]port default vlan 40
[SWITCH_C-Ethernet0/0/15]port default vlan 40
[SWITCH_C-port-group-vlan40]q
[SWITCH_C]

④将LSW1的GE0/0/3设置为trunk。(2分)

[SWITCH_A]int g0/0/3
[SWITCH_A-GigabitEthernet0/0/3]port link-type trunk
[SWITCH_A-GigabitEthernet0/0/3]port trunk allow-pass vlan 30 40
[SWITCH_A-GigabitEthernet0/0/3]q
[SWITCH_A]

⑤将LSW3的GE0/0/1设置为trunk。(2分)

[SWITCH_C]int g0/0/1
[SWITCH_C-GigabitEthernet0/0/1]port link-type trunk
[SWITCH_C-GigabitEthernet0/0/1]port trunk allow-pass vlan 30 40
[SWITCH_C-GigabitEthernet0/0/1]q
[SWITCH_C]

任务四:端口聚合(12 分)

①在LSW1上启用手工负载分担链路聚合,将LSW1 GE0/0/1-2接口加入 eth-trunk 0,设置为TRUNK模式。(6分)

[SWITCH_A]int eth-trunk 0
[SWITCH_A-Eth-Trunk0]port link-type trunk
[SWITCH_A-Eth-Trunk0]port trunk allow-pass vlan 10 20
[SWITCH_A-Eth-Trunk0]q
[SWITCH_A]int g0/0/1
[SWITCH_A-GigabitEthernet0/0/1]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_A-GigabitEthernet0/0/1]int g0/0/2
[SWITCH_A-GigabitEthernet0/0/2]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_A-GigabitEthernet0/0/2]q
[SWITCH_A]

②在LSW2 上启用手工负载分担链路聚合,将LSW2 的GE0/0/1-2接口加入 eth-trunk 0,设置为TRUNK模式。(6分)

[SWITCH_B]int eth-trunk 0
[SWITCH_B-Eth-Trunk0]port link-type trunk
[SWITCH_B-Eth-Trunk0]port trunk allow-pass vlan 10 20
[SWITCH_B-Eth-Trunk0]q
[SWITCH_B]int g0/0/1
[SWITCH_B-GigabitEthernet0/0/1]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_B-GigabitEthernet0/0/1]int g0/0/2
[SWITCH_B-GigabitEthernet0/0/2]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_B-GigabitEthernet0/0/2]q
[SWITCH_B]

任务五:配置 DHCP(22 分)

①在LSW1上配置VLANIF的 IP地址(4分)

[SWITCH_A]int vlanif 10
[SWITCH_A-Vlanif10]ip add 172.16.10.62 26
[SWITCH_A-Vlanif10]q
[SWITCH_A]int vlanif 20
[SWITCH_A-Vlanif20]ip add 172.16.10.126 26
[SWITCH_A-Vlanif20]q
[SWITCH_A]int vlanif 30
[SWITCH_A-Vlanif30]ip add 172.16.10.190 26
[SWITCH_A-Vlanif30]q
[SWITCH_A]int vlanif 40
[SWITCH_A-Vlanif40]ip add 172.16.10.254 26
[SWITCH_A-Vlanif40]q
[SWITCH_A]

②在LSW1 上启动 DHCP 服务。设置vlan 10 的地址池名为caiwu,vlan 20的地址池名为 shichang,vlan 30的地址池名为 yanfa,vlan 40的地址池名为 xingzheng,给每个地址池确定地址范围,同时分配对应的网关地址。(14分)

[SWITCH_A]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[SWITCH_A]int vlanif 10
[SWITCH_A-Vlanif10]description caiwu
[SWITCH_A-Vlanif10]int vlanif 20
[SWITCH_A-Vlanif20]description shichang
[SWITCH_A-Vlanif20]int vlanif 30
[SWITCH_A-Vlanif30]description xingzheng
[SWITCH_A-Vlanif30]q
[SWITCH_A]ip pool vlanif10
Info:It's successful to create an IP address pool.
[SWITCH_A-ip-pool-vlanif10]gateway-list 172.16.10.62
[SWITCH_A-ip-pool-vlanif10]network 172.16.10.0 mask 26
[SWITCH_A-ip-pool-vlanif10]quit
[SWITCH_A]int vlanif 10
[SWITCH_A-Vlanif10]dhcp select global
[SWITCH_A-Vlanif10]q
[SWITCH_A]ip pool vlanif20
Info:It's successful to create an IP address pool.
[SWITCH_A-ip-pool-vlanif20]gateway-list 172.16.10.126
[SWITCH_A-ip-pool-vlanif20]network 172.16.10.64 mask 26
[SWITCH_A-ip-pool-vlanif20]quit
[SWITCH_A]int vlanif 20
[SWITCH_A-Vlanif20]dhcp select global
[SWITCH_A-Vlanif20]q
[SWITCH_A]ip pool vlanif30
Info:It's successful to create an IP address pool.
[SWITCH_A-ip-pool-vlanif30]gateway-list 172.16.10.190
[SWITCH_A-ip-pool-vlanif30]network 172.16.10.128 mask 26
[SWITCH_A-ip-pool-vlanif30]quit
[SWITCH_A]int vlanif 30
[SWITCH_A-Vlanif30]dhcp select global
[SWITCH_A-Vlanif30]q
[SWITCH_A]ip pool vlanif40
[SWITCH_A-ip-pool-vlanif40]gateway-list 172.16.10.254
[SWITCH_A-ip-pool-vlanif40]network 172.16.10.192 mask 26
[SWITCH_A-ip-pool-vlanif40]quit
[SWITCH_A]int vlanif 40
[SWITCH_A-Vlanif40]dhcp select global
[SWITCH_A-Vlanif40]q
[SWITCH_A]

③各PC从DHCP服务器获取IP地址,网关以及DNS,通过ipconfig /renew命令重新获取成功;(4分)


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值