MYIMX6 Linux-3.14.52 Ethernet Bridge Test

来自明远智睿的wiki
跳转至: 导航搜索


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  
--------------------------------------------------------------------------------