Jump to content

Archived

This topic is now archived and is closed to further replies.

vellanix

Raspberry agent appear on VLAN instead of main LAN

Recommended Posts

vellanix

Hello,

 

I had my agent running on raspberry and appearing on the web portal on the ip 10.212.1.22.

 

Then I added the VLAN (I have a couple of network appliance on the VLAN with the ip 10.212.2.xx) setup to the raspberry, configured the switch and everything is running. Now I see also the other ip appliance on the VLAN.

 

The only problem is that on the web portal the raspberry agent now appears with the IP address of the VLAN (10.212.2.22) instead of the main ip (10.212.1.22).

 

Here's the setup of /etc/network/interfaces:

 

------------------------------

source-directory /etc/network/interfaces.d

 

auto lo
iface lo inet loopback
 

auto eth0
allow-hotplug eth0

 

iface eth0 inet dhcp
        post-up ifup eth0.102

iface eth0.102 inet static
        address 10.212.2.22
        netmask 255.255.255.0
-------------------------------------------------------------------------

 

any idea?

 

thank you

 

 

Share this post


Link to post
Share on other sites
Giancarlo

unfortunately, this is a known small issue (just from a front-end point of view). We have in our roadmap to fix, so that the Raspberry Pi will appear with all the IP addresses, starting from the one on the main VLAN. 

Share this post


Link to post
Share on other sites
insurroundsound

i think I'm having the same issue on my Domotz B box.  Can you confirm, Giancarlo, that this problem also exists there on the front-end?  I just added 5 VLANS to a B box, and now the Domotz box is showing up with the static IP address of the last VLAN instead of the primary internal IP address it had previously.

Share this post


Link to post
Share on other sites
Giancarlo
2 hours ago, insurroundsound said:

i think I'm having the same issue on my Domotz B box.  Can you confirm, Giancarlo, that this problem also exists there on the front-end?  I just added 5 VLANS to a B box, and now the Domotz box is showing up with the static IP address of the last VLAN instead of the primary internal IP address it had previously.

Yes, that's the same issue. Just a front-end one, showing the last VLAN IP instead of all of them (and the primary in the list).

Share this post


Link to post
Share on other sites
vellanix

it's since 5 days that the raspebbry agent appear on the main vlan (on the gui) and all the devices on the vlan 2 are marked offline, but they re online!

 

I didnt change anything on the raspberry configuration, was the agent updated in the last days (like the app) and the problem it's related on the update?

thank you

 

Share this post


Link to post
Share on other sites
Giancarlo
17 hours ago, vellanix said:

it's since 5 days that the raspebbry agent appear on the main vlan (on the gui) and all the devices on the vlan 2 are marked offline, but they re online!

 

I didnt change anything on the raspberry configuration, was the agent updated in the last days (like the app) and the problem it's related on the update?

thank you

 

No update of the Agent in the last 2 weeks. The issue might be something else. Did you check if the switch port connecting the Raspberry has changed something? It seems like the Agent hosted on the Raspberry cannot scan devices on the VLAN 2.

Share this post


Link to post
Share on other sites
vellanix

No changes to the switch.

Now i restarted the raspberry: it appears on the vlan 2 in the web interface and both devices on main vlan and vlan 2 are online.

So it seems that if the agent appears on the main vlan you can see only devices on the main vlan but if appear on the vlan 2 can see both vlan.

Sound possible?

thank you

carlo

 

Share this post


Link to post
Share on other sites
vellanix

A short and strange update...

I didnt change anything, no reboot, nothing and now the raspberry is on main vlan and all device on vlan 2 are offline (in the userf interface of course)

Whats going on?!?!?!

Share this post


Link to post
Share on other sites
Giancarlo
12 hours ago, vellanix said:

A short and strange update...

I didnt change anything, no reboot, nothing and now the raspberry is on main vlan and all device on vlan 2 are offline (in the userf interface of course)

Whats going on?!?!?!

 

Hi Carlo,

 

is it possible that something has changed on the port of the switch? Can you provide the output of the ifconfig when connected to the Raspberry Pi?

Share this post


Link to post
Share on other sites
vellanix

Hi Giancarlo, no nothing changer in the switch port.

 

Here's the actual ifconfig:

~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:f3:c5:43  
          inet addr:10.212.1.22  Bcast:10.212.1.255  Mask:255.255.255.0
          inet6 addr: fe80::dd48:b469:5f77:54f6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1701995 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6913017 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1713683153 (1.5 GiB)  TX bytes:567682472 (541.3 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:63664 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63664 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:4420182 (4.2 MiB)  TX bytes:4420182 (4.2 MiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:a6:90:16  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1          RX packets:2 errors:0 dropped:2 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:123 (123.0 B)  TX bytes:0 (0.0 B)
-----

 

it'a strange that only the main lan is visible. So I just rebooted and the ifconfig after reboot is:

 

$ ifconfig

eth0      Link encap:Ethernet  HWaddr b8:27:eb:f3:c5:43  
          inet addr:10.212.1.22  Bcast:10.212.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fef3:c543/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2434 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8183 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2360969 (2.2 MiB)  TX bytes:531188 (518.7 KiB)

eth0.102  Link encap:Ethernet  HWaddr b8:27:eb:f3:c5:43  
          inet addr:10.212.2.22  Bcast:10.212.2.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fef3:c543/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3134 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1993 (1.9 KiB)  TX bytes:137719 (134.4 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:273 errors:0 dropped:0 overruns:0 frame:0
          TX packets:273 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:18385 (17.9 KiB)  TX bytes:18385 (17.9 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:a6:90:16  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1          RX packets:3 errors:0 dropped:3 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:259 (259.0 B)  TX bytes:0 (0.0 B)
--------

 

with the vlan 2... only with reboot and without changes on the raspberry or on the switch...

 

and here's the interfaces config:

 


auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
        post-up ifup eth0.102

iface eth0.102 inet static
        address 10.212.2.22
        netmask 255.255.255.0

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.confpi@raspberry

 

-----

 

any idea?

thank you

carlo

 

 

Share this post


Link to post
Share on other sites

×
×
  • Create New...