LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-07-2019, 02:51 PM   #1
tkmagnet
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Rep: Reputation: Disabled
Cannot solve bridging wlan and eth0 on Debian


I'm new to Linux, so my knowledge is very limited. I am running Debian 9 and need to use it as a bridge. The wlan connects to an AP where I get my internet. The eth0 connects to a switch that has other 3 clients, 1 Windows server, and a file storage server. After much reading, I used the site below:
https://wiki.debian.org/BridgeNetwor...ctionsProxyArp

I configured as per the instructions, but the bridge still does not work. I tried to ping across networks, but can't (host unreachable). I also noticed that when I restarted my machine as per the instructions, I lost wireless connectivity to the internet.


wlan: 10.0.141.0/23
internal network: 192.168.1.0/24
 
Old 04-07-2019, 04:40 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
This might depend on your wifi hardware perhaps. In any case share all the definitive details...
Code:
ip a
Code:
ip r
Code:
lspci -nnk|grep -iA3 net
The paprouted daemon active?
Code:
ps -A|grep paprouted
 
Old 04-08-2019, 08:41 AM   #3
tkmagnet
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Here are the results:

Code:
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 34:e6:d7:1a:a8:71 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.125/24 brd 192.168.1.255 scope global dynamic eno1
       valid_lft 431921sec preferred_lft 431921sec
    inet6 fe80::a01f:ebc8:c290:1446/64 scope link 
       valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d0:53:49:b8:9d:1b brd ff:ff:ff:ff:ff:ff
    inet 10.0.144.180/31 brd 10.0.144.181 scope global wlp3s0
       valid_lft forever preferred_lft forever
    inet6 2620:58:4c00:96:47fd:a416:d87:11e5/128 scope global dynamic 
       valid_lft 1036046sec preferred_lft 690446sec
    inet6 2620:58:4c00:96:cf84:cac9:798f:35ca/64 scope global noprefixroute dynamic 
       valid_lft 2591888sec preferred_lft 604688sec
    inet6 fe80::fd1:78d2:6605:941a/64 scope link 
       valid_lft forever preferred_lft forever
Code:
# ip r
default via 192.168.1.1 dev eno1 proto static metric 100 
default via 10.0.144.1 dev wlp3s0 proto static metric 600 
10.0.144.1 dev wlp3s0 proto static scope link metric 600 
10.0.144.180/31 dev wlp3s0 proto kernel scope link src 10.0.144.180 metric 600 
169.254.0.0/16 dev wlp3s0 scope link metric 1000 
192.168.1.0/24 dev eno1 proto kernel scope link src 192.168.1.125 metric 100
Code:
# lspci -nk | grep -iA3 net
#
Code:
# ps -A | grep paprouted
#
 
Old 04-08-2019, 02:16 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Sorry that should have been 'parpouted'. Check that the daemon is active.
 
Old 04-08-2019, 02:17 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Another how to...
https://blog.pgeiser.com/posts/2017/...-an-arp-proxy/
 
Old 04-08-2019, 02:19 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
...and your 'lspci -nk...' command needed to be 'lspci -nnk...'
 
Old 04-09-2019, 04:10 PM   #7
tkmagnet
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Code:
# lspci -nnk | grep -iA3 net
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-LM [8086:153a] (rev 04)
	Subsystem: Dell Ethernet Connection I217-LM [1028:05be]
	Kernel driver in use: e1000e
	Kernel modules: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 04)
--
03:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless Network Adapter [168c:0032] (rev 01)
	Subsystem: Dell Wireless 1506 WLAN Half Mini-Card [1028:0208]
	Kernel driver in use: ath9k
	Kernel modules: ath9k
How do I check that the daemon is active?
 
Old 04-09-2019, 05:30 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Check the process table
Code:
ps -A|grep parprouted
It would usually have been started manually or via your '/etc/network/interfaces' config file

Code:
post-up /usr/sbin/parprouted eno1 wlp3s0
post-down /usr/bin/killall /usr/sbin/parprouted
 
Old 04-10-2019, 09:50 AM   #9
tkmagnet
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
This is what I have in my /etc/network/interfaces file:

Code:
# The loopback network interface
auto lo
iface lo inet loopback

# The ethernet network interface
#auto eno1
#iface eno1 inet static
#	address 192.168.1.10
#	netmask 255.255.255.0
#	gateway 192.168.1.254

# The wireless network interface
#auto wlp3s0
#iface wlp3s0 inet static
#	address 192.168.1.11
#	netmask 255.255.255.0
#	gateway 192.168.1.254

#bridgeProxyArp
auto eno1
allow-hotplug eno1
iface eno1 inet manual

auto wlp3s0
allow-hotplug wlp3s0
iface wlp3s0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
	post-up /usr/sbin/parprouted eno1 wlp3s0
	post-down /usr/bin/killall /usr/sbin/parprouted
	#clone the dgcp-allocated IP to eno1 so dhcp-helper will relay for the correct subnet
	post-up /sbin/ip addr add $(/sbin/ip addr show wlp3s0 | perl -wne 'm|^\s+inet (,*)/| && print $1')/32 dev eno1
	post-down /sbin/ifdown eno1
When I tried to run ps -A|grep parprouted, nothing showed up.
 
Old 04-10-2019, 02:21 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
But did you definitely install the parprouted package?
 
Old 04-11-2019, 12:16 PM   #11
tkmagnet
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
yes parprouted definitely got installed.

Code:
# aptitude install parprouted
parprouted is already installed at the requested version (0.70-2+b1)
parprouted is already installed at the requested version (0.70-2+b1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
 
Old 04-11-2019, 07:04 PM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
What happens if you run it manually?
Code:
/usr/sbin/parprouted eno1 wlp3s0
Then check
Code:
ps -A| grep parprouted
 
Old 04-12-2019, 08:33 AM   #13
tkmagnet
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Code:
# /usr/sbin/parprouted eno1 wlp3s0
#
# ps -A|grep parprouted
22301 ?        00:00:00 parprouted
#
 
Old 04-12-2019, 03:34 PM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Ok, and then is the proxy ARP working as expected?
 
Old 04-18-2019, 08:23 AM   #15
tkmagnet
LQ Newbie
 
Registered: Apr 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
I'm assuming not since i still cannot get internet from the clients.
 
  


Reply



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] wlan pci on Lenovo T520 Debian Wheezy not working stable; HowTo solve? floppy_stuttgart Linux - Wireless Networking 5 08-25-2015 04:01 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Debian 5 05-29-2009 02:02 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Linux - Newbie 2 05-28-2009 08:51 AM
VMWare's bridging vs Window's bridging - routing is messed up when Windows bridging brenan99 General 0 05-04-2008 10:24 PM
Bridging+Bonding for Bridging+HA+Load Balancing? kartheekpn Linux - Networking 0 08-13-2006 02:08 AM

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

All times are GMT -5. The time now is 12:45 PM.

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