Hi there. So I said I am making a switch but that is not completely true but that describes it well. I have an RPI. ethernet on it used to connect to the internetses.
Rpi has two usb adapters - WiFi and Ethernet. I am sharing network to this adapters, nat, pf. WiFi is a AP. That is where things get complicated
I want the adapters to share the subnet, let's say 192.168.2.0/24 so create a bridge0 and add them to the bridge
I give bridge0 an IP
I bring all the interfaces up. Everything seems to work
I run dhcpd on bridge0 since it is the only interface with subnet definition.
Now, the part I don't understand: When I connect a client to ethernet adapter, immediately
That said, another glitch I observed was that device on wifi and another device on ethernet had the same IP address but that happened once and didn't reproduce so I thing it is ust glitched because of the setup testing and it might have had an arp record etc.
Any way, please let me know if I missed some details. I would appreciate any help I can get.
Rpi has two usb adapters - WiFi and Ethernet. I am sharing network to this adapters, nat, pf. WiFi is a AP. That is where things get complicated
I want the adapters to share the subnet, let's say 192.168.2.0/24 so create a bridge0 and add them to the bridge
ifconfig bridge0 addm ue1 addm wlan0
I give bridge0 an IP
ifconfig bridge0 inet 192.168.2.1 netmask 255.255.255.0
I bring all the interfaces up. Everything seems to work
I run dhcpd on bridge0 since it is the only interface with subnet definition.
Now, the part I don't understand: When I connect a client to ethernet adapter, immediately
ue1
gets an IP address from dhcpd range as well as client getting an IP address. It doesn't seem to affect anything at the moment however I understand that something is misconfigured and will cause some problems in the future. Hence I wanted to find out what.That said, another glitch I observed was that device on wifi and another device on ethernet had the same IP address but that happened once and didn't reproduce so I thing it is ust glitched because of the setup testing and it might have had an arp record etc.
Any way, please let me know if I missed some details. I would appreciate any help I can get.