[以太网/USB/其他总线]

KSZ8863 RSTP配置

[复制链接]
48|0
手机看帖
扫描二维码
随时随地手机跟帖
lixl0918|  楼主 | 2024-9-20 15:33 | 显示全部楼层 |阅读模式
BLE, RS, AN, se
[size=13.3333px]基于SAMA5D3 EDS板的ksz8863生成树测试如下:
1. 在 U-Boot中启用KSZ8863 STP
按照以下命令将_chip 更改为ksz8863 并设置stp=1
setenv _chip 8863
setenv stp 1
saveenv
reset
2. Linux 中的RSTP 配置命令:
eth0 中删除默认 ip
ifconfig eth0 0.0.0.0

使用配置创建eth0.100 eth0.101
vconfig eth0 100
vconfig eth0 101

eth0.100 eth0.101 分配新的 MAC地址。
ifconfig eth0.100 hw ether 00:10:A1:94:77:11
ifconfig eth0.101 hw ether 00:10:A1:94:77:12

创建新网桥
brctl addbr br0

eth0.100 eth0.101 添加到网桥中
brctl addif br0 eth0.100
brctl addif br0 eth0.101

为网桥分配 IP地址,然后启用eth0.100 eth0.101
ifconfig br0 192.168.0.210
ifconfig eth0.100 up
ifconfig eth0.101 up

环路 PHY 端口 1 PHY 端口 2
通过命令“cat/sys/class/net/eth0/sw0/0_stp_info”和“cat/sys/class/net/eth0/sw1/1_stp_info”检查stp 信息:


使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

22

主题

32

帖子

1

粉丝