[meta-freescale] static ip

Hiromichi Matsumura matsumura.hiromichi at meta.co.jp
Thu Jul 16 18:05:36 PDT 2015


I have get the same experience before.

I'm working with SABRElite made by boundary devices inc..
Sorry there may be some differences in between two environments.

There are two network services executing on SABRELite
The one service is Linux network service(/etc/init.d/networking).
The another service is connman (/etc/init.d/connman).

First, static ip was set by Linux network service.
And then, ip address override by connman service.
So, static ip was invalidated by connman.

connman required mac address for setting up the static ip.

I'd like to set ip address in simple way.
So, I removed connman service from init.d .

I will be happy if I can be of any help.

Thanks,
Hiromichi


On Thu, 16 Jul 2015 08:17:16 +0000 (UTC)
Alvaro Martinez Tovar <alvaromartineztovar at yahoo.es> wrote:

> Hi all,
> 
> I am working with a sabresd platform and the following interfaces file
> 
> root at imx6qsabresd:~/# 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 static
> ? ? ? ? address 192.168.0.30
> ? ? ? ? netmask 255.255.255.0
> ? ? ? ? gateway 192.168.0.1
> 
> 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
> 
> After boot, this is what I can see with ifconfig eth0 command:
> NO static ip is set on eth0 for inet
> 
> eth0? ? ? Link encap:Ethernet? HWaddr 00:04:9F:03:9F:FD
> ? ? ? ? ? inet6 addr: fe80::204:9fff:fe03:9ffd/64 Scope:Link
> ? ? ? ? ? UP BROADCAST RUNNING MULTICAST? MTU:1500? Metric:1
> ? ? ? ? ? RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> ? ? ? ? ? TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
> ? ? ? ? ? collisions:0 txqueuelen:1000
> ? ? ? ? ? RX bytes:0 (0.0 B)? TX bytes:4642 (4.5 KiB)
> 
> However, if I execute:
> /etc/init.d/networking restart
> everything seems to work and I can connect to static ip
> 
> Any suggestion will be very appreciated.
> Thank you in advance
> 
> Alvaro

--------------------------------------------------------
株式会社メタテクノ(静岡技術センター)
第二事業部
セブンスウェーブシステム部
松村浩道
〒411-0943 静岡県駿東郡長泉町下土狩30-1 山光ビルB棟1階
Tel: 050-3535-0158  Fax: 055-980-1805
E-mail: matsumura.hiromichi at meta.co.jp
--------------------------------------------------------



More information about the meta-freescale mailing list