In the morty image for i.MX6q board, ifconfig is not showing eth0.
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:7376 errors:0 dropped:0 overruns:0 frame:0
TX packets:7376 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560480 (547.3 KiB) TX bytes:560480 (547.3 KiB)
When I use ifconfig eth0 up, the following is the log I'm getting.
eth0 Link encap:Ethernet HWaddr 00:04:9f:03:5a:80
inet6 addr: fe80::204:9fff:fe03:5a80/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2508 (2.4 KiB) TX bytes:2284 (2.2 KiB)
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:8336 errors:0 dropped:0 overruns:0 frame:0
TX packets:8336 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:633440 (618.5 KiB) TX bytes:633440 (618.5 KiB)
This is not listing any ip address. I want to configure my device to another address of the range 10.18.*.*. Using ifconfig eth0 10.18.0.123, I'm able to set the IP address. But, I'm unable to ping google.com.
Also, there is no /etc/network/interfaces available. I've gone through certain links which mentioned about /etc/udev/rules.d/70-persistent stuff. But I couldn't find such file.
Please tell me how to set an IP, with which I can access the internet, within 10.18.*.* range.