Score:1

How to setup Linux machine to act as a Router

co flag

How to setup Linux machine to act as a Router which is responsible for distributing internet traffic to other devices connected to switch. I want to use this scenario in order to assign Ip-based Bandwidth limit to each nodes connected to switch (Traffic Shaping). i mean instead of using taffic shaping tools or physical Router Device i want to use linux kernel.

Doug Smythies avatar
gn flag
You can implement the router and firewall functions with [iptables](https://man7.org/linux/man-pages/man8/iptables.8.html) and traffic control with [tc](https://man7.org/linux/man-pages/man8/tc.8.html).
ru flag
@DougSmythies I'd suggest making a detailed answer explaining how that works. If youd on't, I will 'cause I have such a 'router' in place on my singular subnet for test labs.
Doug Smythies avatar
gn flag
@ThomasWard : While my main gateway/router/firewall is a linux iptables based server, I have never actually used tc (been meaning to). Go ahead with an answer.
Score:0
in flag

You can achieve this by using a protocol suite called Quagga, installing it on Linux gives you a command prompt that resembles that of Cisco routers.

I have used this in one of my projects, I am using a network emulator called Mininet which you may not need, but you can follow the same installation instructions that I provide in the repo.

As for the traffic-shaping part, you can look into using an SDN for that, but I am not sure about how you would set it up.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.