All of lore.kernel.org
 help / color / mirror / Atom feed
* static ip
@ 2015-07-16  8:17 Alvaro Martinez Tovar
  2015-07-16  8:31 ` Wally Yeh
  2015-07-17  1:05 ` Hiromichi Matsumura
  0 siblings, 2 replies; 9+ messages in thread
From: Alvaro Martinez Tovar @ 2015-07-16  8:17 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]

Hi all,

I am working with a sabresd platform and the following interfaces file

root@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

[-- Attachment #2: Type: text/html, Size: 2999 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-20  7:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-16  8:17 static ip Alvaro Martinez Tovar
2015-07-16  8:31 ` Wally Yeh
2015-07-16 10:03   ` Alvaro Martinez Tovar
2015-07-16 10:17     ` Wally Yeh
2015-07-17  0:24     ` Bob Cochran
2015-07-20  7:44       ` Alvaro Martinez Tovar
2015-07-16 12:55   ` Diego
2015-07-17  1:05 ` Hiromichi Matsumura
2015-07-20  7:31   ` Alvaro Martinez Tovar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.