mp9546 post at 2019-1-7 18:11:37

How to set static ip in orange-pi-one for raspbian system.

Where to find the samples.
I had tried two cases

Case 1:
Sudonano /etc/dhcpcd.conf

interface eth0   ######====for raspberry pi3
static ip_address=192.168.8.119
static routers=192.168.8.1
static domain_name_servers=192.168.8.1

Case 2:
Sudonano   /etc/network/interfaces
# start ###
auto lo
iface lo inet loopback
# Static IP address
auto eth0      # ou auto enp0s7 (seeifconfig)
iface eth0 inet static
      address 192.168.8.119
      netmask 255.255.255.0
      gateway 192.168.8.1
# end ###

Werner post at 2019-1-7 20:42:21

https://wiki.debian.org/NetworkConfiguration

mp9546 post at 2019-1-7 23:26:38

Thanks.
I try again, it is unable to set successfully.
This is similar to the case 2, posted Previously.

Werner post at 2019-1-8 16:43:03

If you do not plan to use dhcp at all you can remove the package using APT (still assuming Raspbian base is Debian).
Did you check ifconfig to make sure the network interfaces device tag is actually eth0 and not something weird like enp0s7?

Did you try to reboot the board after setting the new configuration?

mp9546 post at 2019-1-9 01:02:36

Thanks.
I've got it.
The process is
~~~~~~~~~~
sudo nano /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth0   
iface eth0 inet static
address 192.168.8.119
netmask 255.255.255.0
gateway 192.168.8.254
~~~~~~~~~~~~~~~~~~~~
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

(remove all content)

~~~~~~result~~~~~~~~~~~~
root@orangepi:~# ifconfig
eth0      Link encap:EthernetHWaddr 7a:de:15:88:e4:fd
          inet addr:192.168.8.119Bcast:192.168.8.255Mask:255.255.255.0
          inet6 addr: fe80::78de:15ff:fe88:e4fd/64 Scope:Link
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
          RX packets:88 errors:0 dropped:0 overruns:0 frame:0
          TX packets:201 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9602 (9.3 KiB)TX bytes:10410 (10.1 KiB)
          Interrupt:114

xyzzsdfl post at 2022-3-2 02:18:16

Keep up to date the nice deliver the results, I actually learn very few discussions during this webpage plus There's no doubt that that your chosen website site is definitely serious helpful and has now became encircles with brilliant information and facts.        Packers and Movers Pune to Ranchi

xyzzsdfl post at 2022-3-24 06:21:12

You are welcome to initial ever before focused selling price evaluation web-site intended for area sights & sightseeing and tours tours, vacation organized excursions, boys and girls things to do, out of doors exercises, vino excursions while in the UK, The european union, US, Asia, Center Far east and also world-wide traveler hotspots.        Sightseeing tours

xyzzsdfl post at 2022-4-2 06:29:01

That is a good write-up When i viewed on account of write about the item. Really it is what exactly I need to to discover trust with foreseeable future you might go on intended for giving a really fantastic write-up.        Sightseeing tours

arrangedig post at 2023-9-19 12:59:28

In the beginning of breakout game, there are eight rows of bricks, with two rows of each color. From the bottom up, the colors are yellow, green, orange, and red. The player has one ball and must hit as many bricks as possible with it by using the walls and/or the paddle below to hit the ball into the bricks and knock them down.

FrankHopper post at 2024-2-10 00:02:52

Addresses play a crucial role in our daily lives, serving as vital identifiers of physical locations. Whether it's for sending mail, ordering goods online, or navigating to a destination, addresses provide essential information for communication and logistics. In today's digital age, the significance of addresses extends beyond the physical realm, with websites like https://www.searchusapeople.com offering platforms to search and verify individuals' addresses efficiently. These online tools streamline the process of locating people and businesses, facilitating communication and connection across distances.


page: [1]
View full version: How to set static ip in orange-pi-one for raspbian system.