We are testing the connection between PLCnext and the camera. Both the OpenCV and the camera’s SDK have been configured, but a problem was found when collecting image data.
The camera needs to transfer a large amount of data quickly, so a larger MTU value is required, but I tried several methods and failed to modify the MTU value of the system.
The default maximum value of this value is 1500, which can only be modified to a value smaller than 1500, and cannot be increased.
When I try to use the ifconfig command(ifconfig enp6s0 MTU 9000) to modify the command line, I get an error: ifconfig: SIOCSIFMTU: Invalid argument
If I directly modify /etc/network/interfaces and add new line MTU 1500, the network will be interrupted, and it will not be restored after a restart.
If this value is limited to 1500, the system cannot support high-speed camera data collection of more than 900K pixels.
Does there have any suggestions?
root@rfc4072s:/opt/plcnext/# ifconfig
enp1s0 Link encap:Ethernet HWaddr A8:74:1D:94:E1:54
inet addr:192.168.89.10 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::aa74:1dff:fe94:e154/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3407585 errors:0 dropped:5547 overruns:0 frame:0
TX packets:57985 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5137727670 (4.7 GiB) TX bytes:3859316 (3.6 MiB)
Memory:dd100000-dd11ffffenp2s0 Link encap:Ethernet HWaddr A8:74:1D:94:E1:56
inet addr:192.168.189.33 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:dd000000-dd01ffffenp6s0 Link encap:Ethernet HWaddr A8:74:1D:94:E1:58
inet addr:192.168.3.10 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::aa74:1dff:fe94:e158/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4495 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:444519 (434.1 KiB)
Memory:d8200000-d821fffflo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:14678 errors:0 dropped:0 overruns:0 frame:0
TX packets:14678 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1176370 (1.1 MiB) TX bytes:1176370 (1.1 MiB)root@rfc4072s:/opt/plcnext/# ifconfig enp6s0 MTU 9000
ifconfig: SIOCSIFMTU: Invalid argumentroot@rfc4072s:/opt/plcnext/# ifconfig
enp1s0 Link encap:Ethernet HWaddr A8:74:1D:94:E1:54
inet addr:192.168.89.10 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::aa74:1dff:fe94:e154/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3409362 errors:0 dropped:6112 overruns:0 frame:0
TX packets:64073 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5137868003 (4.7 GiB) TX bytes:4275086 (4.0 MiB)
Memory:dd100000-dd11ffffenp2s0 Link encap:Ethernet HWaddr A8:74:1D:94:E1:56
inet addr:192.168.189.33 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:dd000000-dd01ffffenp6s0 Link encap:Ethernet HWaddr A8:74:1D:94:E1:58
inet addr:192.168.3.10 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::aa74:1dff:fe94:e158/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4944 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:488942 (477.4 KiB)
Memory:d8200000-d821fffflo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16142 errors:0 dropped:0 overruns:0 frame:0
TX packets:16142 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1293490 (1.2 MiB) TX bytes:1293490 (1.2 MiB)root@rfc4072s:/opt/plcnext/# ifconfig enp2s0 MTU 9000
ifconfig: SIOCSIFMTU: Invalid argument
root@rfc4072s:/opt/plcnext/# ifconfig enp2s0 MTU 3000
ifconfig: SIOCSIFMTU: Invalid argument
root@rfc4072s:/opt/plcnext/# ifconfig enp2s0 MTU 1300
root@rfc4072s:/opt/plcnext/# ifconfig enp2s0 MTU 1500