pxe前期网络准备

时间:2023-05-21 12:31:38

核心交换机:
[H3C12510-HEXIN]vlan 3010 //如果存在则不需要创建
[H3C12510-HEXIN]dis interface Bridge-Aggregation brief //找出下联至汇聚交换机的聚合组
[H3C12510-HEXIN]interface Bridge-Aggregation 19 // 进入聚合组
[H3C12510-HEXIN-Bridge-Aggregation19]port trunk permit vlan 3010 //放行vlan
[H3C12510-HEXIN-Bridge-Aggregation19]dis this
#
interface Bridge-Aggregation19
description ZTE9916-HUIJU-smartgroup1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 3010
link-aggregation mode dynamic
#

汇聚交换机:
ZTE9916-HUIJU#configure terminal
ZTE9916-HUIJU(config)#switchvlan-configuration
ZTE9916-HUIJU(config-swvlan)#vlan 3010 //如果存在则不需要创建
ZTE9916-HUIJU(config)#show interface brief include smar //找出下联至接入交换机和上联至汇聚交换机的聚合组
ZTE9916-HUIJU(config)#switchvlan-configuration
ZTE9916-HUIJU(config-swvlan)#interface smartgroup1 //进入聚合组(上联)
ZTE9916-HUIJU(config-swvlan-if-smartgroup1)#switchport trunk vlan 3010 //放行vlan
ZTE9916-HUIJU(config-swvlan-if-smartgroup1)#show this
!<switchvlan>
switchport mode trunk
switchport trunk vlan 512,3010
switchport qinq tpid external 0x8100
!</switchvlan>
ZTE9916-HUIJU(config-swvlan-if-smartgroup1)#exit
ZTE9916-HUIJU(config-swvlan)#interface smartgroup43 //进入聚合组(下联)
ZTE9916-HUIJU(config-swvlan-if-smartgroup43)#switchport trunk vlan 3010 //放行vlan
ZTE9916-HUIJU(config-swvlan-if-smartgroup43)#show this
!<switchvlan>
switchport mode trunk
switchport trunk vlan 3010
switchport qinq tpid external 0x8100
!</switchvlan>

接入交换机:
<HWCE6851>sys
[HWCE6851]vlan 3010 //如果存在则不需要创建
[HWCE6851]interface Eth-Trunk 1 //进入聚合组(上联)
[HWCE6851-Eth-Trunk1]port trunk allow-pass vlan 3010 //放行vlan
[HWCE6851-Eth-Trunk1]dis this
#
interface Eth-Trunk1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 3010
mode lacp-static
#
return
[HWCE6851]interface 10GE 1/0/1 //进入服务器对应端口
[HWCE6851-10GE1/0/1]port link-type access
[HWCE6851-10GE1/0/1]port default vlan 3010
[HWCE6851-10GE1/0/1]dis this
#
interface 10GE1/0/1
description yuliu
port default vlan 3010
stp edged-port enable
device transceiver 10GBASE-FIBER
#
return
[HWCE6851-10GE1/0/1]commit //使配置生效

接入交换机脚本:
HW
vlan 2504
quit
inte range 10ge1/0/1 to 10ge1/0/21
port default vlan 3010
quit
inte range 10ge2/0/1 to 10ge2/0/21
port default vlan 2504
commit
quit