【米尔-瑞萨RZG2UL开发板-试用评测】- 第二篇: 网络通讯功能测试和验证
<div class='showpostmsg'><div> 本篇主要是查询了开发板网口的功能,分别对网口的功能参数进行修改和验证,并且通过虚拟机连接开发板以及在虚拟机上传送文件到开发板,测评结果为完全正常。</div><ol>
<li>验证开发板的网口功能,操作如下:<br />
通过一个百兆的交换机连接了电脑和开发板,查看开发板的IP地址。<br />
root@Beyond:~# ifconfig<br />
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500 metric 1<br />
inet 169.254.102.210 netmask 255.255.0.0 broadcast 169.254.255.255<br />
ether 22:05:74:ad:bf:17 txqueuelen 1000 (Ethernet)<br />
RX packets 109 bytes 13910 (13.5 KiB)<br />
RX errors 0 dropped 10 overruns 0 frame 0<br />
TX packets 103 bytes 18810 (18.3 KiB)<br />
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br />
device interrupt 152<br />
eth1: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500 metric 1<br />
inet 169.254.121.181 netmask 255.255.0.0 broadcast 169.254.255.255<br />
ether 66:d9:68:8a:bc:61 txqueuelen 1000 (Ethernet)<br />
RX packets 193 bytes 26930 (26.2 KiB)<br />
RX errors 0 dropped 10 overruns 0 frame 0<br />
TX packets 18 bytes 6066 (5.9 KiB)<br />
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br />
device interrupt 155<br />
截图如下:<br />
<br />
查看电脑的IP地址,如下:<br />
<br />
由于开发板的IP地址和电脑IP地址不在一个网关,所以更改开发板的IP地址与电脑IP地址为同一个网关。<br />
root@Beyond:~# ifconfig eth0 192.168.8.22<br />
root@Beyond:~# ifconfig eth1 192.168.8.33<br />
root@Beyond:~# ifconfig<br />
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500 metric 1<br />
inet 192.168.8.22 netmask 255.255.255.0 broadcast 192.168.8.255<br />
ether 22:05:74:ad:bf:17 txqueuelen 1000 (Ethernet)<br />
RX packets 874 bytes 138587 (135.3 KiB)<br />
RX errors 0 dropped 35 overruns 0 frame 0<br />
TX packets 426 bytes 132872 (129.7 KiB)<br />
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br />
device interrupt 152<br />
eth1: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500 metric 1<br />
inet 192.168.8.33 netmask 255.255.255.0 broadcast 192.168.8.255<br />
ether 66:d9:68:8a:bc:61 txqueuelen 1000 (Ethernet)<br />
RX packets 1116 bytes 198248 (193.6 KiB)<br />
RX errors 0 dropped 35 overruns 0 frame 0<br />
TX packets 183 bytes 74119 (72.3 KiB)<br />
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br />
device interrupt 155<br />
这时用电脑分别连接开发板的两个网口试一下,如下图<br />
<br />
<br />
由于开发板设计为两个千兆网口,所以用笔记本电脑的网口挨个直接连接开发板的网口,确认是否为千兆网口。<br />
[ 1309.349394] ravb 11c20000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off<br />
[ 1312.421030] ravb 11c20000.ethernet eth0: Link is Down<br />
[ 1314.629398] ravb 11c30000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off<br />
[ 1317.701035] ravb 11c30000.ethernet eth1: Link is Down<br />
再用百兆交换机转接笔记本和开发板。<br />
[ 1330.853271] ravb 11c20000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off<br />
[ 1333.061406] ravb 11c30000.ethernet eth1: Link is Up - 100Mbps/Full - flow control off<br />
截图如下,说明开发板的网口工作完全正常。<br />
</li>
<li>在虚拟机上利用SSH远程连接开发板。下图中可以看到,在虚拟机上通过网络已经连接到了开发板并且读取了根目录下的文件<br />
</li>
<li>在虚拟机上利用SSH传输文件到开发板。</li>
</ol>
<div> 虚拟机上的指令主要是新建文件(Test_Beyond.test),并且在文件中输入Test_Beyond并且查看,然后将此文件传到开发板的根目录下</div>
<div> 开发板中的指令为分别查看传送文件之前和之后根目录下的文件,当文件传输成功后,查看文件内容,如下图:</div>
<div></div>
<div>测试环境如下图:</div>
<div></div>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script> <p>楼主的shell用得这么好呀,期待精彩作品继续哦!</p>
lugl4313820 发表于 2024-3-4 08:02
楼主的shell用得这么好呀,期待精彩作品继续哦!
<p>过奖了,论坛中高手如云,我顶多算是个入门</p>
页:
[1]