79kiko
Posts: 1
Joined: Mon Apr 16, 2018 9:28 am

Network setting

Mon Apr 16, 2018 9:30 am

I Have installed OH2 on RPi3 with Openhabian. I have two local networks with two internet connections.

1.Network has IP 192.168.1.1
2.Network has IP 192.168.2.1
How can I set network in RPi? First will be connected using WIFI and second with cable connection. Second will be primary with connection to internet. It is possible?

RWild
Posts: 1
Joined: Mon Apr 16, 2018 8:50 pm

Re: Network setting

Mon Apr 16, 2018 9:23 pm

This sequence of events is probably not quite correct but hopefully will be enough of a hint to help. I just did this a few days ago and have already forgotten the details. Believe I started by clicking a “up / down” arrows on the task bar and then used the drop down panels to assign a IPv4 address to the Ethernet adapter. My recollection is that the symbol on the task bar had changed to the typical wireless icon - sort of a broadcast disk. Just repeated the process of assigning a DHCP address manually for now.

I did the manual assigns as I am in the process of redoing all the address reservations and port forwards in both routers.

User avatar
KLL
Posts: 1413
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Network setting

Tue Apr 17, 2018 1:33 am

i not try, but possibly this does what you want? ( incl. fix IP )

sudo nano /etc/dhcpcd.conf

and add at end:

Code: Select all

interface eth0
static ip_address=192.168.1.100/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8 8.8.4.4

interface wlan0
static ip_address=192.168.2.200/24
static routers=192.168.2.1
static domain_name_servers=192.168.2.1 8.8.8.8 8.8.4.4


Return to “Beginners”

Who is online

Users browsing this forum: pcmanbob, seaodyssey, W. H. Heydt and 14 guests