Adding a switch to a router
Hi,
I've setup a wireless access point. It's connected to the internet via a router of my isp. So on the access point (Raspberry Pi running Rasbian), the config is as follows:
eth0 192.168.1.6 (got its ip via DHCP from the isp router)
wlan0 10.0.0.1 (gateway for the 10.0.0.0 network)
There are some iptable rules allowing traffic from wlan0 to eth0 and vice versa.
So I can gladly connect my wireless devices to the Raspberry Pi, and surf the internet.
Now I want to add a switch on a second ethernet port. Eth1. And want to hand out ip-addresses to the devices connected to the switch. I would like these devices to be in the 10.0.0.0 subnet.
I use isc-dhcp-server on the wlan0. And hostapd for the access point.
I've tried to bridge the eth1 with wlan0. I've tried to set up the eth1 as a dhclient. Tried to configure eth1 in /etc/network/interfaces as dhcp with 10.0.0.1 as a gateway.
None of these methods got me in the wanted setup.
What should my steps be?
|