首页 > 技术文章 > 关于某企业交换路由作业

597lyq 2019-11-28 15:55 原文

(1)LSW5、LSW6配置
vlan batch XX (LSW5创建vlan 10 20 30、LSW6创建VLAN40、50)
int e0/0/X (X为所在接口号)
port link-type access
port default vlan XX
(2)LSW3、LSW4配置
vlan batch 10 20 30 40 50
interface GigabitEthernet 0/0/X (X为接口号)
port link-type trunk
port trunk allow-pass vlan all

(3)LSW1、LSW2配置
vlan batch 10 20 30 40 50
interface GigabitEthernet 0/0/3或4
port link-type trunk
port trunk allow-pass vlan all

 

步骤三:在核心交换机配置业务Vlan的网关地址
LSW1、LSW2
Interface vlanif
Ip address 10.162.XX.254 255.255.YY.0
(XX为vlan编号,vlan40和50的网关为255.255.254.0)

步骤四:在核心交换机配置链路聚合
Interface eth-trunk 1
bpdu enable
mode lacp-static
port link-type trunk
port trunk allow-pass vlan all
int e(g)0/0/X(如果连接电路是E口则为e,若G口则为g)。
eth-trunk 1
int e 0/0/X
eth-trunk 1
步骤五:在交换机配置生成树协议
(1) 在LSW3、LSW4、LSW1、LSW2上启用STP:
[S3]stp mode stp
[S4]stp mode stp
[S1]stp mode stp
[S2]stp mode stp

(2设置优先级(S1为根桥)
[S1]undo stp root
[S1]stp priority 4096
[S2]undo stp root
[S2]stp priority 8192

推荐阅读