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 12-08-2016, 01:31 AM   #16
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74

If you are certain that routing is not an issue, that is good. And actually you don't need to mess with iptables to begin with to check connnectivity. All you need to begin with is ip forwarding via sysctl.

See screenshot.
Attached Thumbnails
Click image for larger version

Name:	sample3.png
Views:	40
Size:	186.3 KB
ID:	23718  
 
Old 12-08-2016, 08:15 AM   #17
1ontheriver
LQ Newbie
 
Registered: Nov 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by c0wb0y View Post
If you are certain that routing is not an issue, that is good. And actually you don't need to mess with iptables to begin with to check connnectivity. All you need to begin with is ip forwarding via sysctl.

See screenshot.
I am not sure what you are getting at. I don't see any sysctl commands in your screenshot?

What I see is that AP01 knows two ways to reach the network 2003::/64.

1. Out the WLAN1 interface to the link local address of AP02 wlan1
2. Out the eth0 interface to the link local address of AP02 eth0

I need to eliminate option 2 from the equation I think. If I could configure IP6TABLES to drop packets to/from the link local address of AP02 eth0 I think the route should go down and it will use the one I want. I need help achieving this. If you think I can achieve the same with sysctl please provide the commands
 
Old 12-08-2016, 12:13 PM   #18
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
I was able to replicate your setup (minus the Client A). See screen shot. I'm not the best picture editor, so I left the hostnames as it is. Assume:

AP02 = debian-server
B = client1
AP01 = client2

You would notice that no firewall rules enabled there.
Attached Thumbnails
Click image for larger version

Name:	sample4.png
Views:	24
Size:	151.7 KB
ID:	23722  
 
Old 12-08-2016, 07:07 PM   #19
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 242Reputation: 242Reputation: 242
A couple of things:

1.
Quote:
you have to do # sysctl -p
to load the settings , just -w is not enough
isn't correct. "-p" is "load from a file" "-w" is "write it now". If you do both, you may overwrite what you just did. Use -w first, then once you get the whole thing worked out, put those commands in a file so you can load them all at next reboot with "sysctl -p /etc/whatever.file".


2. You shouldn't have to mess with ip6tables at all, unless you already blocked off yourself using it. Check ip6tables -L INPUT (and OUTPUT, FORWARD). If those tables are blank and policy is ACCEPT, let it like that, at least until you get this problem figured out.

3. In ipv6, a machine is either a host, or a router. Then was added (maybe only to Linux?) a "both". It's set via 'net.ipv6.conf.$INTERFACE.accept_ra'. That means is this a router (accept_ra=0), a host (accept_ra=1), or both (accept_ra=2). "ra" is Router Advertisement, whether to accept them or not. Figuring this out took a day or so when I was trying to get ipv6 up and working. If you're using Stateless Auto Configuration and everything is set right, ipv6 should configure addresses and routes for everything right on down the line using radvd. ipv6 really is a lot better to work with than ipv4.

4. Wouldn't it be simplier to just use one /64 prefix from your ISP? Certainly there is enough addresses in there? Pardon me if I mis-read your setup, as mine is somewhat different and sometimes it's hard to picture another's setup in terms of what one already knows. I'm not using mesh, but routing packets should be similar.
 
Old 12-09-2016, 04:05 PM   #20
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You don't need layer 3 switch, layer 2 is good enough. You can use AP01 and AP02 as inter-VLAN routing. The VLAN on switch is just used to separate advertising, don't mixing up advertising of two networks.
 
Old 12-10-2016, 12:33 PM   #21
1ontheriver
LQ Newbie
 
Registered: Nov 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jayjwa View Post
A couple of things:

3. In ipv6, a machine is either a host, or a router. Then was added (maybe only to Linux?) a "both". It's set via 'net.ipv6.conf.$INTERFACE.accept_ra'. That means is this a router (accept_ra=0), a host (accept_ra=1), or both (accept_ra=2). "ra" is Router Advertisement, whether to accept them or not. Figuring this out took a day or so when I was trying to get ipv6 up and working. If you're using Stateless Auto Configuration and everything is set right, ipv6 should configure addresses and routes for everything right on down the line using radvd. ipv6 really is a lot better to work with than ipv4.

4. Wouldn't it be simplier to just use one /64 prefix from your ISP? Certainly there is enough addresses in there? Pardon me if I mis-read your setup, as mine is somewhat different and sometimes it's hard to picture another's setup in terms of what one already knows. I'm not using mesh, but routing packets should be similar.
The goal here is to send simulated VOIP traffic from Client 1 to Client 2. It should follow a wired connection to AP01 then hop over wireless to AP02 before finally being sent to Client 2 over wired again. It should NOT use wired between AP01 and AP02.

The other important goal is that there must be routing involved. The main goal is to investigate if varying the routing protocol used on the mesh has any impact on the VOIP performance. This is why I don't use a single /64

With these two goals in mind, if there is a way to prevent/deny the wired route between AP01 and AP02?
 
Old 12-11-2016, 04:23 PM   #22
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Quote:
The goal here is to send simulated VOIP traffic from Client 1 to Client 2. It should follow a wired connection to AP01 then hop over wireless to AP02 before finally being sent to Client 2 over wired again. It should NOT use wired between AP01 and AP02.
This is a fair requirement. Isn't it one of the goals is to get them connected regardless of medium? You can simply 's/wired/wireless/'.


Quote:
The other important goal is that there must be routing involved. The main goal is to investigate if varying the routing protocol used on the mesh has any impact on the VOIP performance. This is why I don't use a single /64
Once routing table has been populated (and assuming it is the optimal route), the traffic does not distinguish or even care if the source of route comes from static source or from routing protocols. So I do not think there is any impact at all unless you introduce a more efficient route where the dynamic protocols can notice.

Quote:
With these two goals in mind, if there is a way to prevent/deny the wired route between AP01 and AP02?
Don't connect a cable?
 
Old 12-12-2016, 12:54 AM   #23
1ontheriver
LQ Newbie
 
Registered: Nov 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by c0wb0y View Post
This is a fair requirement. Isn't it one of the goals is to get them connected regardless of medium? You can simply 's/wired/wireless/'.
This is test lab for a Masters. The goal is to test the performance of VOIP over a wireless mesh, so yes it matters.

Quote:
Once routing table has been populated (and assuming it is the optimal route), the traffic does not distinguish or even care if the source of route comes from static source or from routing protocols. So I do not think there is any impact at all unless you introduce a more efficient route where the dynamic protocols can notice.
In reality there is a a large Mesh network between AP01 and AP05 over which the routing protocol will decide the best path at any one time. This information was not relevant to the question I was asking so I simplified the topology to eliminate the problem.

Quote:
Don't connect a cable?
If you don't connect a cable, how does Client 1 get to his first hop which is eth0 on AP01?
 
Old 12-12-2016, 01:12 AM   #24
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 350

Rep: Reputation: 60
just use tcpdump on AP01 and AP02 to check what traffic you are getting on the AP's.

compare ping output on AP's using different protocols, or try something like traceroute if possible.

If you know AP02 is not forwarding to client on its side , check AP02 settings.

you said there is AP05 , so how does AP01 know that it has to send to AP02 ?

Your setup makes me assume there is a minimal setup.

Routers just forward packets, I sense something wrong with the configuration , esp when other protos are working and bable isnt.
 
Old 12-12-2016, 01:13 AM   #25
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 350

Rep: Reputation: 60
correction : Your setup *made* me assume there is a minimal setup.
 
Old 12-12-2016, 01:38 AM   #26
1ontheriver
LQ Newbie
 
Registered: Nov 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pingu_penguin View Post

you said there is AP05 , so how does AP01 know that it has to send to AP02 ?
This is me just getting confused between the actual mesh and the simplified version I presented in the question. AP02 is AP05 here, sorry for confusion.

The problem is that the two access points have a choice of path. Wired or wireless. Both are working but wired is preferred as it is a better route. I need to find a way to make it not better or not work at all.
 
Old 12-12-2016, 10:14 AM   #27
1ontheriver
LQ Newbie
 
Registered: Nov 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
I solved the issue, thanks for all the help

I used the command below to drop all traffic on AP01 coming from the AP02 link local address in the active route. The wireless route was used instead and I can now ping end to end.

sudo ip6tables -A INPUT -s fe80::cdf9:b2a5:629e:f201 -j DROP
 
  


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
Deleting global unicast ipv6 addresses on an interfaces does not remove neigbors/direct connect ipv6 hosts from kernel nd_tbl haldermi Linux - Networking 1 06-07-2016 02:28 PM
Linux IPV6 routing issue with 2 interfaces dr.x Linux - Networking 30 09-30-2015 02:41 PM
IPv6 on Debian VPS (Routing Issue) Cinos Linux - Networking 0 07-26-2012 02:00 PM
Routing issues with dual interfaces on debian server flybob Linux - Networking 9 09-28-2009 07:41 AM
Two interfaces routing problem, Debian, kernel 2.4 clintp Linux - Networking 4 10-31-2008 12:24 AM

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

All times are GMT -5. The time now is 12:15 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