某企业交换网络综合配置
某企业在不断发展,业务量也在不断扩大,同时对计算机网络应用的依赖程度与日俱增.为适应互联网时代的发展,目前公司正面临转型,急需成立IT部门.你作为几年前入职的网络工程师被任命为IT部门的技术经理,并担任本次网络规划的项目经理.你需要根据企业网络需要优化现有网络资源。
假设某企业有员工1000人,有销售部(300人),技术部(100人),财务部(50人),综合部(50人),研发部(500人);各部门相互隔离,完成所有网络的互联互通。
公司项目经理已经按照上述要求对网络设备进行了相应的地址规划.要求先对网络设备进行配置使之可以实现互连互通,具体要求如下:
l 按照拓扑图完成IP地址规划表的规划;
l 配置网络设备的接口IP地址;
l 给交换机接口配置正确的接口模式(如access、trunk等)
l 配置链路聚合;
l 配置生成树协议;
l 配置Vlan间路由;
1.4 . 设备型号
设备类型 |
设备型号 |
描述 |
台式电脑 |
PC |
用户端 |
交换机 |
S3700 |
划分vlan |
核心交换机 |
S5700 |
配置DHCP服务器 |
1)VLAN
设备名称 |
接口 |
网关 |
子网掩码 |
描述 |
SW9 |
Vlanif10 |
10.1.10.254 |
/23 |
Vlan10的网关 |
Vlanif20 |
10.1.20.254 |
/23 |
Vlan20的网关 |
|
Vlanif30 |
10.1.30.254 |
/25 |
Vlan30的网关 |
|
Vlanif1 |
172.16.201.1 |
/30 |
|
|
SW10 |
Vlanif40 |
10.1.40.254 |
/26 |
Vlan40的网关 |
Vlanif50 |
10.1.50.254 |
/26 |
Vlan50的网关 |
|
Vlanif1 |
172.16.201.2 |
/30 |
2)接入用户规划
序号 |
部门 |
IP 地址 |
掩码 |
网关 |
1 |
销售部 |
10.1.10.1~10.1.10.2 |
255.255.254.0 |
10.1.10.254 |
2 |
研发部 |
10.1.20.1~10.1.20.2 |
255.255.254.0 |
10.1.20.254 |
3 |
技术部 |
10.1.30.129~10.1.30.130 |
255.255.255.128 |
10.1.30.254 |
4 |
财务部 |
10.1.40.193~10.1.40.194 |
255.255.255.192 |
10.1.40.254 |
5 |
综合部 |
10.1.50.193~10.1.50.194 |
255.255.255.192 |
10.1.50.254 |
任务一:配置接口IP地址;
任务二:在接入交换机创建Vlan,把接口加入到规划的Vlan中;
任务三:在核心交换机配置业务Vlan的网关地址;
任务四:在核心交换机配置链路聚合;
任务五:在交换机配置生成树协议;
任务六:完成网络测试。
1) :创建VLAN
在SW1(SW2)中输入命令:
Vlan batch 10 20 30
在SW3输入命令:
Vlan batch 40 50
在SW4输入命令:
Vlan batch 40 50
2) Access口配置
在SW1(LW2)中输入命令
interface Ethernet 0/0/1 (进入接口)
port link-type access (将接口类型设置为access)
port default vlan 10 (将端口规划进对应的网段)
interface Ethernet 0/0/2
port link-type access
port default vlan 20
interface Ethernet 0/0/3
port link-type access
port default vlan 30
在SW3中输入命令:
interface Ethernet 0/0/1
port link-type access
port default vlan 40
interface Ethernet 0/0/2
port link-type access
port default vlan 50
在SW4中输入命令:
interface Ethernet 0/0/1
port link-type access
port default vlan 40
interface Ethernet 0/0/2
port link-type access
port default vlan 50
3) 配置trunk口
在SW1(2.3.4)中输入命令:
interface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
在SW5(8) 中输入命令:
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan all
interface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
在SW6(7)中输入命令:
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan all
interface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan all
nterface GigabitEthernet 0/0/24
port link-type trunk
port trunk allow-pass vlan all
4) 配置网关地址
在LW9中输入命令:
interface Vlanif 1
ip address 172.16.201.1 30
interface Vlanif 10
ip address 10.1.10.254 23
interface Vlanif 20
ip address 10.1.10.20.254 23
interface Vlanif 30
ip address 10.1.30.254 25
在LW10输入命令:
interface Vlanif 1
ip address 172.16.201.2 30
interface Vlanif 40
ip address 10.1.40.254 26
interface Vlanif 50
ip address 10.1.50.254 26
5) 链路聚合
在LW5(8)输入命令:
int Eth-Trunk 0
port link-type trunk
port trunk allow-pass vlan all
mode lacp-static
interface GigabitEthernet 0/0/24
eth-trunk 0
interface GigabitEthernet 0/0/23
eth-trunk 0
在LW9(10)中输入命令:
int Eth-Trunk 0
port link-type trunk
port trunk allow-pass vlan all
mode lacp-static
interface GigabitEthernet 0/0/1
eth-trunk 0
interface GigabitEthernet 0/0/2
eth-trunk 0
interface GigabitEthernet 0/0/3
eth-trunk 0
6) 树协议
LW9中输入命令:
Stp enable
Stp mode stp
Stp root primary
Undo stp root
Stp priority 8192
在LW10中输入命令:
Stp enable
Stp mode stp
Stp root secondary
Undo stp root
Stp priority 4096
7) IPV4
LSW9:
ip route-static 0.0.0.0 0.0.0.0 172.16.201.2
LSW10:
ip route-static 0.0.0.0 0.0.0.0 172.16.201.1
8) 网络测试:
1.检查各部门是否能ping通各自的网关:
2.各部门互ping
财务ping研发 财务ping销售1
财务ping销售 财务1ping综合
在此次课设中,我对于接口配置,根桥配置有了进一步了解,还有就是ipv4这个协议配的勉勉强强,我一开始自己配的时候就一直显示错误,后来请教了舍友好人同学才知道问题出在哪。
通过此次试验我收获颇丰,不仅将自己不熟悉的知识进行进一步的加固,加深了对ensp软件使用的熟练度,我从一开始的懵懵懂懂到自主完成整个试验,大大提升了我的动手实践能力。从一开始的手忙脚乱找错误到最后的能比较和同学互相讨论此次的收获,我对此门课程有了更多的兴趣。
原文:https://www.cnblogs.com/cyqq/p/11953057.html