MYIMX6 Linux-3.14.52 Ethernet Bridge Test
来自明远智睿的wiki
Admin(讨论 | 贡献)2018年6月15日 (五) 16:44的版本 (创建页面,内容为“ <br /> ### 基本信息 -------------------------------------------------------------------------------- ##### 支持的设备 * MY-IMX6-A9系列:MY-IMX6-EK200...”)
目录
- 1 基本信息
- 2 Steps
- 2.1 Extract ethernet bridge tool.
- 2.2 Creates a new instance of the ethernet bridge.
- 2.3 Eth0 is ready to join the bridge.
- 2.4 Eth1 is ready to join the bridge
- 2.5 Make the interface eth0 of the bridge.
- 2.6 Make the interface eth1 of the bridge.
- 2.7 Configure ethernet bridge
- 2.8 Check network configuration
- 2.9 Host sends ICMP packets to test the network
基本信息
支持的设备
- MY-IMX6-A9系列:MY-IMX6-EK200、MY-IMX6-EK314、MY-IMX6-EK336
- MY-IMX6-A7系列:MY-IMX6-EK140P
测试使用的开发板
- MY-IMX6-EK200-6Q
Steps
Extract ethernet bridge tool.
# tar xf ~/my-demo/myimx6_l31452_bridge16.tar.bz2 -C /
Creates a new instance of the ethernet bridge.
# brctl addbr myzr_br0
Eth0 is ready to join the bridge.
# ifconfig eth0 0.0.0.0
Eth1 is ready to join the bridge
# ifconfig eth1 0.0.0.0
Make the interface eth0 of the bridge.
# brctl addif myzr_br0 eth0 device eth0 entered promiscuous mode
Make the interface eth1 of the bridge.
# brctl addif myzr_br0 eth1 device eth1 entered promiscuous mode
Configure ethernet bridge
# ifconfig myzr_br0 192.168.137.98 netmask 255.255.255.0 up myzr_br0: port 2(eth1) entered forwarding state myzr_br0: port 2(eth1) entered forwarding state myzr_br0: port 1(eth0) entered forwarding state myzr_br0: port 1(eth0) entered forwarding state
Check network configuration
# ifconfig eth0 Link encap:Ethernet HWaddr 1C:87:76:51:15:1A inet6 addr: fe80::1e87:76ff:fe51:151a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:224 errors:0 dropped:0 overruns:0 frame:0 TX packets:154 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:22386 (21.8 KiB) TX bytes:17938 (17.5 KiB) eth1 Link encap:Ethernet HWaddr EE:FE:48:A5:40:6E inet6 addr: fe80::ecfe:48ff:fea5:406e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:229 errors:0 dropped:0 overruns:0 frame:0 TX packets:118 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:18183 (17.7 KiB) TX bytes:14643 (14.2 KiB) ...... myzr_br0 Link encap:Ethernet HWaddr 1C:87:76:51:15:1A inet addr:192.168.137.98 Bcast:192.168.137.255 Mask:255.255.255.0 inet6 addr: fe80::1e87:76ff:fe51:151a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:179 errors:0 dropped:0 overruns:0 frame:0 TX packets:29 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:13161 (12.8 KiB) TX bytes:6127 (5.9 KiB)
Host sends ICMP packets to test the network
> ping 192.168.137.11 正在 Ping 192.168.137.11 具有 32 字节的数据: 来自 192.168.137.11 的回复: 字节=32 时间=2ms TTL=64 来自 192.168.137.11 的回复: 字节=32 时间=1ms TTL=64 来自 192.168.137.11 的回复: 字节=32 时间=1ms TTL=64 来自 192.168.137.11 的回复: 字节=32 时间=1ms TTL=64 192.168.137.11 的 Ping 统计信息: 数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失), 往返行程的估计时间(以毫秒为单位): 最短 = 1ms,最长 = 2ms,平均 = 1ms
-------------------------------------------------------------------------------- * 更多功能及具体应用场景期待与您沟通! * 珠海明远智睿科技有限公司 * ZhuHai MYZR Technology CO.,LTD. * Last Update: 2018/06/15 * Support: Tang Bin --------------------------------------------------------------------------------