标签:地址 交换网 eth access brief otto ethernet his ctr
项目网络地址规划
|
接口 |
IP地址 |
子网掩码 |
可用 |
销售部 |
Vlanif10 |
10.39.10.1 |
/23 |
510 |
技术部 |
Vlanif20 |
10.39.20.1 |
/24 |
254 |
财务部 |
Vlanif30 |
10.39.30.1 |
/24 |
254 |
综合部 |
Vlanif40 |
10.39.40.1 |
/24 |
254 |
研发部 |
Vlanif50 |
10.39.50.1 |
/23 |
510 |
1:在各部门配置IP 掩码 网关
销售部:IP地址10.39.10.1 ,子网掩码255.255.254.0,网关10.39.10.254
技术部:IP地址10.39.20.1 ,子网掩码255.255.255.0,网关10.39.20.254
财务部:IP地址10.39.30.1 ,子网掩码255.255.255.0,网关10.39.30.254
综合部:IP地址10.39.40.1 ,子网掩码255.255.255.0,网关10.39.40.254
研发部:IP地址10.39.50.1 ,子网掩码255.255.254.0,网关10.39.50.254
2:把接口加入到规划的Vlan中;
LSW1:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan bat
[Huawei]vlan batch 10 20 30
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int e
[Huawei]int Eth
[Huawei]int Ethernet0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 10
[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 20
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]port default vlan 30
LSW2:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan b
[Huawei]vlan batch 40 50
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 40
[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 50
3:配置链路聚合;
LSW1:
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]mode lacp-static
[Huawei-Eth-Trunk1]int g0/0/1
[Huawei-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
LSW3:[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]mode lacp-static
[Huawei-Eth-Trunk1]int e0/0/1
[Huawei-Eth-Trunk1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
右边LSW2和LSW4配置与上类似
在核心交换机上配置链路聚合
LSW5:
[Huawei]int Eth-Trunk 2
Huawei-Eth-Trunk2]int e0/0/2
[Huawei-Ethernet0/0/2]eth-trunk 2
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]eth
[Huawei-Ethernet0/0/3]eth-trunk 2
Info: This operation may take a few seconds. Please wait for a moment...done.
4:在核心交换机配置业务Vlan的网关地址;
[Huawei]vlan batch 10 20 30 40 50
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int Vlan 10
[Huawei-Vlanif10]ip add 10.39.10.254 23
[Huawei-Vlanif10]int vlan 20
[Huawei-Vlanif20]ip add 10.39.20.254 24
[Huawei-Vlanif20]int vlan 30
[Huawei-Vlanif30]ip add 10.39.30.254 24
[Huawei-Vlanif30]int vlan 40
[Huawei-Vlanif40]ip add 10.39.40.254 24
[Huawei-Vlanif40]int vlan 50
[Huawei-Vlanif50]ip add 10.39.50.254 23
LSW6与上类似
5:在交换机配置生成树协议;
LSW5:
[Huawei]stp enable
[Huawei]stp mode stp
[Huawei]stp root primary//为主根桥
[Huawei]dis stp brief //查看stp生成树
LSW6同上
标签:地址 交换网 eth access brief otto ethernet his ctr
原文地址:https://www.cnblogs.com/hy190263933/p/11955048.html