[以太网/USB/其他总线] KSZ8863 RSTP配置

[复制链接]
1958|1
 楼主| lixl0918 发表于 2024-9-20 15:33 | 显示全部楼层 |阅读模式
ST, se, AN, RS, BLE
基于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 信息:


LEDyyds 发表于 2024-9-23 16:10 | 显示全部楼层
这是PHY芯片吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

24

主题

36

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部