Raspberry Pi: Network and not separated


I setup OpenWrt on a Raspberry Pi, enabled wifi, created a new static interface with address on that wifi and enabled dhcp. I disabled the dhcp and the bridge to wifi on the default interface

When I connect to that wifi with my laptop I got an IP as expected. But why can I successfully ping on that laptop?

Shouldn't and be totally separated?

Could someone explain why it is possible to ping when I'm in network?

What do I have to change, to separate the and network?

Thanks in advance,

The fact that you can ping all addresses of the openwrt router doesn't mean the networks aren't separated. I can't see any reasons to allow ping to only one and not all IP addresses of the router.

But why can a device with IP ping a device with when it is in a total different network?

Because and are on the same router.
When your laptop tries pinging, which is not in, it forwards packet to the gateway, which is your Raspberry Pi. Unless some policy-based routing or firewall rule is set, your router will reply to the echo request and send the echo reply packet via the same interface. Therefore, you're doing nothing but pinging your router.

You explicitly bridged the two networks into one. You have two subnets on the same "wire".

Edit: Are you trying to create a "guest network"? If so there are many threads here as well as likely wiki pages on the OpenWrt wiki that would be of help.

1 Like

No, I disabled the bridge between wifi and the default interface So the interface is only bound to wifi and the interface is only bound to eth0.

I just wanted to create an independent wifi an lan network. I did not expect, that i can ping from the network.

Your PC and the OpenWrt forum server are apparently in total different network, but why can you log in here?
Creating a different subnet only isolates broadcast domains and blocks L2-only traffic. To access-control L3 traffic, you must set up firewall and/or PBR.
In OpenWrt firewall settings, you can create a different firewall zone for your WiFi interface.
Please refer to guest network setup guide for details