Hi,
We use the LS1021A-IOT reference board and try to connect the board to our network.
When I connect the Ethernet cable between the board socket ETH0 and a network router the IP address does not adapt automatically.
What should I do to connect the LS1021A-IOT board to the network?
I verified the /etc/network/interfaces setting. Please see below. I also attached the log file.
Regards
Victor
root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 00:1f:7b:63:02:6d
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd5b:6a49:e38a::1/60 Scope:Global
inet6 addr: fe80::21f:7bff:fe63:26d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:261 errors:0 dropped:0 overruns:0 frame:0
TX packets:163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21823 (21.3 KiB) TX bytes:12790 (12.4 KiB)
eth0 Link encap:Ethernet HWaddr 00:1f:7b:63:02:6d
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:291 errors:0 dropped:0 overruns:0 frame:2
TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33186 (32.4 KiB) TX bytes:12068 (11.7 KiB)
Base address:0xc000
lo 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:1306 errors:0 dropped:0 overruns:0 frame:0
TX packets:1306 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:90396 (88.2 KiB) TX bytes:90396 (88.2 KiB)
root@OpenWrt:/# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
iface atml0 inet dhcp
# Wired or wireless interfaces
auto eth0
iface eth0 inet dhcp
iface eth1 inet dhcp
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
# Bluetooth networking
iface bnep0 inet dhcp
root@OpenWrt:/#
Original Attachment has been moved to: network.txt.zip
Enable DHCP support using kernel menu. See attachment.
Use udhcpc utility for starting the DHCP client on your board.
Look at the following pages for adding staring the udhcpc after boot:
http://manpages.ubuntu.com/manpages/saucy/man5/interfaces.5.html
https://www.opennet.ru/man.shtml?topic=interfaces&category=5&russian=2
Have a great day,
Pavel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------