“MYIMX6 Linux-3.14.52 Ethernet Bridge Test”的版本间的差异
来自明远智睿的wiki
(创建页面,内容为“ <br /> ### 基本信息 -------------------------------------------------------------------------------- ##### 支持的设备 * MY-IMX6-A9系列:MY-IMX6-EK200...”) |
|||
(未显示同一用户的1个中间版本) | |||
第2行: | 第2行: | ||
<br /> | <br /> | ||
− | ### | + | ### Information |
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
− | ##### | + | ##### Supported devices: |
− | * MY-IMX6- | + | * MY-IMX6 of Cortex-A9:MY-IMX6-EK200、MY-IMX6-EK314、MY-IMX6-EK336 |
− | * MY-IMX6- | + | * MY-IMX6 of Cortex-A7:MY-IMX6-EK140P |
− | ##### | + | ##### Tested on device: |
* MY-IMX6-EK200-6Q | * MY-IMX6-EK200-6Q | ||
第17行: | 第17行: | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
− | ##### | + | ##### Extracting ethernet bridge tools |
<pre> | <pre> | ||
# tar xf ~/my-demo/myimx6_l31452_bridge16.tar.bz2 -C / | # tar xf ~/my-demo/myimx6_l31452_bridge16.tar.bz2 -C / | ||
</pre> | </pre> | ||
− | ##### | + | ##### Creating a new instance of the ethernet bridge |
<pre> | <pre> | ||
# brctl addbr myzr_br0 | # brctl addbr myzr_br0 | ||
</pre> | </pre> | ||
− | ##### Eth0 is ready to join the bridge | + | ##### Eth0 is ready to join the bridge |
<pre> | <pre> | ||
# ifconfig eth0 0.0.0.0 | # ifconfig eth0 0.0.0.0 | ||
第37行: | 第37行: | ||
</pre> | </pre> | ||
− | ##### | + | ##### Making the interface eth0 of the bridge |
<pre> | <pre> | ||
# brctl addif myzr_br0 eth0 | # brctl addif myzr_br0 eth0 | ||
第44行: | 第44行: | ||
</pre> | </pre> | ||
− | ##### | + | ##### Making the interface eth1 of the bridge |
<pre> | <pre> | ||
# brctl addif myzr_br0 eth1 | # brctl addif myzr_br0 eth1 | ||
第51行: | 第51行: | ||
</pre> | </pre> | ||
− | ##### | + | ##### Configuring the ethernet bridge |
<pre> | <pre> | ||
# ifconfig myzr_br0 192.168.137.98 netmask 255.255.255.0 up | # ifconfig myzr_br0 192.168.137.98 netmask 255.255.255.0 up | ||
第61行: | 第61行: | ||
</pre> | </pre> | ||
− | ##### | + | ##### Checkint the network configuration |
<pre> | <pre> | ||
# ifconfig | # ifconfig | ||
第93行: | 第93行: | ||
</pre> | </pre> | ||
− | ##### | + | ##### The host sends ICMP packets to test the network |
<pre> | <pre> | ||
> ping 192.168.137.11 | > ping 192.168.137.11 | ||
第115行: | 第115行: | ||
<pre> | <pre> | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
− | * | + | * Looking forward to communicating with you for more functions and field applications. |
* 珠海明远智睿科技有限公司 | * 珠海明远智睿科技有限公司 | ||
* ZhuHai MYZR Technology CO.,LTD. | * ZhuHai MYZR Technology CO.,LTD. | ||
− | * | + | * Latest Update: 2018/06/15 |
− | * | + | * Supporter: Tang Bin |
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
</pre> | </pre> |
2018年6月15日 (五) 18:13的最新版本
目录
- 1 Information
- 2 Steps
- 2.1 Extracting ethernet bridge tools
- 2.2 Creating 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 Making the interface eth0 of the bridge
- 2.6 Making the interface eth1 of the bridge
- 2.7 Configuring the ethernet bridge
- 2.8 Checkint the network configuration
- 2.9 The host sends ICMP packets to test the network
Information
Supported devices:
- MY-IMX6 of Cortex-A9:MY-IMX6-EK200、MY-IMX6-EK314、MY-IMX6-EK336
- MY-IMX6 of Cortex-A7:MY-IMX6-EK140P
Tested on device:
- MY-IMX6-EK200-6Q
Steps
Extracting ethernet bridge tools
# tar xf ~/my-demo/myimx6_l31452_bridge16.tar.bz2 -C /
Creating 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
Making the interface eth0 of the bridge
# brctl addif myzr_br0 eth0 device eth0 entered promiscuous mode
Making the interface eth1 of the bridge
# brctl addif myzr_br0 eth1 device eth1 entered promiscuous mode
Configuring the 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
Checkint the 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)
The 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
-------------------------------------------------------------------------------- * Looking forward to communicating with you for more functions and field applications. * 珠海明远智睿科技有限公司 * ZhuHai MYZR Technology CO.,LTD. * Latest Update: 2018/06/15 * Supporter: Tang Bin --------------------------------------------------------------------------------