微云實施時網絡配置
交換機配置
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 ?
????????????? 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小時內刪除侵權內容。
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。