This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SK-AM62P-LP:在最新的 SDCard 映像(tisdk-default-image-am62pxx-evm-10.01.10.04.rootfs.wic.xz)中、我已在电路板中配置了静态 IP 和网络掩码、重新启动 IP 正确之后、但网络掩码未出现

Guru**** 2468460 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1470809/sk-am62p-lp-in-latest-sdcard-image-tisdk-default-image-am62pxx-evm-10-01-10-04-rootfs-wic-xz-i-have-configured-the-static-ip-and-net-mask-in-the-board-after-reboot-ip-is-coming-properly-but-netmask-is-not-coming

器件型号:SK-AM62P-LP

工具与软件:

在最新的 SDCard 映像(tisdk-default-image-am62pxx-EVM-10.01.10.04.rootfs.wic.xz)中、我已在电路板中配置了静态 IP 和网络掩码 、重新启动 IP 正确后、 但网络掩码未出现。 参考我分享了下面的屏幕截图。

1. 在10-eth.network 文件中配置的静态 IP。

  

2、 设备重启后, IP 读数正确,但网络掩码读数不正确。

请求您帮助我解决此问题?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Karthikean、

    首先、澄清我们可以对 TI SoC 提供哪些支持:我们 可以支持专注于低级驱动程序软件或与 TI SoC 硬件相关的主题/问题。 此特定问题更多地是应用程序用例、通常由客户自行创建其特定实施、因为默认情况下、我们不会修改 systemd-networkd 服务来启用静态 IP。

    说明了这一点后、我有一个提示是您是否尝试将网络掩码添加到"Address"属性? 以下内容可能适合您的用例。

    root@am62xx-evm:~# cat /etc/systemd/network/10-eth.network
    [Match]
    Name=eth0
    
    [Network]
    DHCP=no
    Address=192.168.0.2/16
    root@am62xx-evm:~#
    root@am62xx-evm:~# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
           inet 192.168.0.2 netmask 255.255.0.0 broadcast 192.168.255.255
           inet6 fe80::1e63:49ff:fe0f:6114 prefixlen 64 scopeid 0x20<link>
           ether 1c:63:49:0f:61:14 txqueuelen 1000 (Ethernet)
           RX packets 4 bytes 1218 (1.1 KiB)
           RX errors 0 dropped 0 overruns 0 frame 0
           TX packets 30 bytes 4160 (4.0 KiB)
           TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    
    eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
           ether ae:e6:fa:14:33:4c txqueuelen 1000 (Ethernet)
           RX packets 0 bytes 0 (0.0 B)
           RX errors 0 dropped 0 overruns 0 frame 0
           TX packets 0 bytes 0 (0.0 B)
           TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
           inet 127.0.0.1 netmask 255.0.0.0
           inet6 ::1 prefixlen 128 scopeid 0x10<host>
           loop txqueuelen 1000 (Local Loopback)
           RX packets 18 bytes 2186 (2.1 KiB)
           RX errors 0 dropped 0 overruns 0 frame 0
           TX packets 18 bytes 2186 (2.1 KiB)
           TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    
    

    -道林