LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2014, 11:32 AM   #1
Toet
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Rep: Reputation: Disabled
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?
 
Old 04-05-2014, 03:19 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,522

Rep: Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224Reputation: 6224
If you want eth1 and Wlan0 to be on the same subnet (i.e. 10.0.0.0/24) then you must bridge them together.

http://www.cyberciti.biz/faq/debian-...th0-eth1-eth2/
https://wiki.archlinux.org/index.php/Bridge_with_netctl
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux as a router, wireless router as a switch Harunobu Linux - Networking 3 09-15-2012 07:01 AM
Adding new Linux firewall/router on network with pre-existing gateway/router grittyminder Linux - Networking 4 08-13-2008 03:17 AM
tell me the process router to router, hub to hub and switch to switch communication. yakuza003 Linux - Networking 4 06-21-2008 08:55 AM
Disabling wireless manually on dsl/router by adding switch for disconnection linchat Linux - Wireless Networking 5 07-24-2007 01:08 PM
>1 router, one switch glj Linux - Networking 4 10-01-2002 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration