微云实施时网络配置

网友投稿 790 2022-05-28

交换机配置

cisco交换机配置示例

configure terminal

interface Port-channel 1                       创建一个以太网通道接口

interface range gigabitEthernet 0/23 - 24           在所有物理口上做同样的配置

switchport access vlan 1                       将接口设成默认的VLAN 1

switchport trunk encapsulation dot1q            设置封装类型为802.1Q

switchport mode trunk                        设置成802.1Q  trunk协议

channel-protocol lacp                         设置802.ad LACP端口聚合协议

channel-group 1 mode active                   设置模式为active

port-channel load-balance src-dst-mac           设置载均衡的模式

show etherchannel summary                   显示端口聚合状态

H3C交换机配置示例

system view                                 进入系统视图

interface bridge-aggregation 1                  进入二层聚合接口视图

link-aggregation mode dynamic                 配置成动态LACP聚合模式,部分使用不了

quit

interface ethernet 1/1                                 进入以太网1/1接口

port link-type trunk                           设置成trunk

port trunk permit vlan all                       允许所有VLAN在trunk上通过

port link aggregation group 1                   将二层以太网接口加入聚合组

interface ethernet 1/2

port link-type trunk                           设置成trunk

port trunk permit vlan all                       允许所有VLAN在trunk上通过

port link aggregation group 1                   将二层以太网接口加入聚合组

display link-aggregation summary                显示所有聚合组的摘要信息

华为交换机配置示例

System-view

interface eth-trunk 1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

max active-linknumber 4

max bandwidth-affected-linknumber 4

bpdu enable

mode lacp-static

lacp priority 100

Lacp preempt delay 100

interface gigabitethernet 0/0/1

eth-trunk 1

undo ntdp enable

undo ndp enable

interface gigabitethernet 0/0/2

eth-trunk 1

undo ntdp enable

undo ndp enable

在配置端口前,一定要将端口原有配置清空,全部undo掉,否则无法应用eth-trunk命令。如果之前端口配置过trunk口,可以使用undo port link-type清除trunk状态

display eth-trunk 1                      显示端口聚合状态

交换机聚合状态检查

思科交换机检查聚合状态

show etherchannel summary

Flags:  D - down        P - bundled in port-channel

I - stand-alone s - suspended

H - Hot-standby (LACP only)

R - Layer3      S - Layer2

U - in use      f - failed to allocate aggregator

M - not in use, minimum links not met

u - unsuitable for bundling

w - waiting to be aggregated

微云实施时网络配置

d - default port

Number of channel-groups in use: 6

Number of aggregators:           6

Group  Port-channel  Protocol    Ports

------+-------------+-----------+-----------------------------------------------

1      Po1(SU)         LACP      Gi0/1(s)    Gi0/2(P)    Gi0/3(D)

Gi0/4(D)

2      Po2(SU)         LACP      Gi0/5(P)    Gi0/6(P)    Gi0/7(D)

Gi0/8(D)

3      Po3(SU)         LACP      Gi0/9(P)    Gi0/10(P)   Gi0/11(D)

Gi0/12(D)

4      Po4(SU)         LACP      Gi0/13(P)   Gi0/14(P)   Gi0/15(D)

Gi0/16(D)

5      Po5(SU)         LACP      Gi0/17(P)   Gi0/18(P)   Gi0/19(D)

Gi0/20(D)

6      Po6(SU)         LACP      Gi0/21(P)   Gi0/22(P)

服务器上通过show命令检查服务器状态

show ?

?             display parameters

dcs           distributed coordination service information   显示分布式协调服务

dss           distribute storage service information         显示分布式存储服务

lss           local storage service information              显示本地存储

dbs           desktop backup service information             显示桌面备份服务

du            disk used for server                           显示本服务器本地硬盘使用

df            disk not mounted for server                    显示本服务器未挂载的硬盘

cache         disk cache information                         显示SSD固态盘Cache状况

lacp          display lacp status                            显示端口聚合状态

ip            display system ip settings                     显示服务器管理口mgt0 IP地址、网关及VLAN

link          ethernet interface link information            显示以太口链路状态

ver           show system version information                显示系统版本

tech          show system information for Tech-Support       显示技术支持信息

date          show current date and time                     显示系统时间

health        show server health                             显示服务器健康状况

网络 TCP/IP

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:技术分享 | web 控件的交互进阶
下一篇:GaussDB (DWS) 集群管理系列:CM启停功能的原理、流程和关键日志
相关文章