Raspberry Pi B + saya menjalankan Raspbian (Linux versi 3.18.11+) diperbarui, dll.
Terhubung ke jaringan dengan ethernet. Saya ingin IP statis, dan telah menetapkan satu di / etc / network / interfaces (ditampilkan di bawah). Namun, setiap boot ia meminta alamat melalui DHCP dan ditugaskan satu! Alamat statis dan dinamis berfungsi untuk mengakses mesin di jaringan.
Di mana saya bisa menghentikan alamat DHCP dari yang diminta dan ditugaskan ??
/ etc / network / interfaces
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.7
netmask 255.255.255.0
gateway 192.168.1.1
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto wlan1
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
ip addr tampilkan eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether b8:27:eb:44:bb:23 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.7/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.1.55/24 brd 192.168.1.255 scope global secondary eth0
valid_lft forever preferred_lft forever
ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:44:bb:23
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11484 errors:0 dropped:4 overruns:0 frame:0
TX packets:10212 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4178807 (3.9 MiB) TX bytes:4019638 (3.8 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1