RZ/G2L支持兩個(gè)通道的千兆以太網(wǎng)口,有必要給大家介紹一下這兩個(gè)千兆網(wǎng)口可實(shí)現(xiàn)的三種應(yīng)用場(chǎng)景,方便大家有針對(duì)性地給客戶的應(yīng)用場(chǎng)景做推廣。
1
RZ/G2L SMRAC EVK雙千兆網(wǎng)口支持信息
2
RZ/G2L的千兆網(wǎng)口的技術(shù)規(guī)范
3
兩個(gè)千兆網(wǎng)口可以在三種使用場(chǎng)景下實(shí)現(xiàn)三種使用模式
(1)BASIC模式
基礎(chǔ)模式最簡(jiǎn)單,也是最靈活的模式,但默認(rèn)的功能比較簡(jiǎn)單,只實(shí)現(xiàn)了基礎(chǔ)的網(wǎng)絡(luò)通訊功能,需要用戶自行實(shí)現(xiàn)報(bào)文轉(zhuǎn)發(fā),路由跳轉(zhuǎn)等。VLP3.0.X中兩個(gè)ethX通過connman管理。
動(dòng)態(tài)IP配置:
connmanctl config ethernet_001122334455_cable --ipv4 dhcp
靜態(tài)IP配置:
connmanctl config ethernet_001122334455_cable --nameservers 8.8.8.8 4.4.4.4 connmanctl config ethernet_001122334455_cable --ipv4 manual 192.168.1.100 255.255.255.0 192.168.1.255
(2)SWITCH模式
想要實(shí)現(xiàn)SWITCH模式,首先需要在內(nèi)核開啟bridge功能:
source poky/oe-init-build-env MACHINE=smarc-rzg2l bitbake linux-renesas -c menuconfig MACHINE=smarc-rzg2l bitbake linux-renesas -c compile -f MACHINE=smarc-rzg2l bitbake linux-renesas -c deploy -f [*] Networking support ---> Networking options ---> [*] Network packet filtering framework (Netfilter) ---> <*> Bridged IP/ARP packets filtering Core Netfilter Configuration ---> <*> Netfilter Xtables support (required for ip_tables) <*> Ethernet Bridge tables (ebtables) support ---> <*> ebt: broute table support <*> ebt: filter table support <*> ebt: nat table support <*> ebt: 802.3 filter support <*> ebt: among filter support <*> ebt: ARP filter support <*> ebt: IP filter support <*> ebt: limit match support <*> ebt: mark filter support <*> ebt: packet type filter support <*> ebt: STP filter support <*> ebt: 802.1Q VLAN filter support <*> ebt: arp reply target support <*> ebt: dnat target support <*> ebt: mark target support <*> ebt: redirect target support <*> ebt: snat target support <*> ebt: log support <*> 802.1d Ethernet Bridging
然后在VLP3.0.X中添加bridge-utils工具包到根文件系統(tǒng):
vim conf/local.conf IMAGE_INSTALL_append = " bridge-utils" MACHINE=smarc-rzg2l bitbake core-image-qt -f
開機(jī)后通過以下命令配置:
ifconfig eth0 up ifconfig eth1 up ip link add name br0 type bridge ip link set dev eth0 master br0 ip link set dev eth1 master br0 ifconfig br0 192.168.0.3 netmask 255.255.255.0
此時(shí)開發(fā)板的兩個(gè)ethX相當(dāng)于交換機(jī)的兩個(gè)端口,兩個(gè)端口的數(shù)據(jù)包可以自由透?jìng)鳌?/p>
關(guān)于RZ/G2L的雙千兆網(wǎng)口switch性能,我們做了專門的測(cè)試,可以提供測(cè)試用例和測(cè)試報(bào)告。
(3)ROUTER模式
這是最復(fù)雜的模式,涉及到的知識(shí)點(diǎn)較多,ROUTER模式下的兩個(gè)ethX口分別作WAN口和LAN口使用。要實(shí)現(xiàn)ROUTER模式需要添加相關(guān)的軟件功能,VLP3.0.X默認(rèn)不會(huì)添加相關(guān)的軟件,如果只是想快速使用路由模式,不想了解過多的實(shí)現(xiàn)過程,可以使用OpenWRT,
如果希望在VLP3.0.X上實(shí)現(xiàn)ROUTER模式,需要添加DHCP Server、開啟內(nèi)核轉(zhuǎn)發(fā)功能、添加iptable轉(zhuǎn)發(fā)規(guī)則,如有需要可以聯(lián)系瑞薩。
-
Switch
+關(guān)注
關(guān)注
1文章
533瀏覽量
58456 -
BASIC
+關(guān)注
關(guān)注
0文章
36瀏覽量
12454 -
Router
+關(guān)注
關(guān)注
0文章
26瀏覽量
12931 -
千兆網(wǎng)口
+關(guān)注
關(guān)注
0文章
13瀏覽量
3567
原文標(biāo)題:RZ/G2L雙千兆網(wǎng)口使用場(chǎng)景
文章出處:【微信號(hào):瑞薩MCU小百科,微信公眾號(hào):瑞薩MCU小百科】歡迎添加關(guān)注!文章轉(zhuǎn)載請(qǐng)注明出處。
發(fā)布評(píng)論請(qǐng)先 登錄
相關(guān)推薦
瑞薩RZ/G2L串口SCI的使用(下)
![瑞薩<b class='flag-5'>RZ</b>/<b class='flag-5'>G2L</b>串口SCI的使用(下)](https://file1.elecfans.com/web2/M00/BD/DA/wKgaomWnVcOAMuN4AAARqFzuHgU655.png)
評(píng)論