Secondary wlan/eth0

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
pavelzagalsky

Secondary wlan/eth0

Post by pavelzagalsky »

Hi there!
First of all, really enjoying the project! Can't recommend enough to my friends!
Second, I have a weird problem that may or may not interfering with my Raspi's connections to outside world.
I sometimes use WLAN and sometimes I use the Wired connection. For both, for some reason I see 2 IPs
I configured Static connection for both of them with an available address but I get additional address for some reason..
ip addr:
eth0:
inet 192.168.8.121/24 brd 192.168.8.255 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.8.112/24 brd 192.168.8.255 scope global secondary eth0
valid_lft forever preferred_lft forever
wlan:

inet 192.168.8.120/24 brd 192.168.8.255 scope global wlan0
valid_lft forever preferred_lft forever
inet 192.168.8.115/24 brd 192.168.8.255 scope global secondary wlan0
valid_lft forever preferred_lft forever

My network/interfaces file:

# Ethernet
allow-hotplug eth0
iface eth0 inet static
address 192.168.8.121
netmask 255.255.255.0
gateway 192.168.8.1

allow-hotplug wlan0
iface wlan0 inet static
address 192.168.8.120
netmask 255.255.255.0
gateway 192.168.8.1

Thanks in advance!
Post Reply