If you can replace a router with just a raspberry pi and some code












1















I'm trying to figure out the bare minimum in order to create a network. Wondering if you need to actually always buy a router, or if you can instead connect devices like Raspberry Pis directly with ethernet cords and have one of them with some OS or software that somehow handles its own virtualized routing. Basically I'm trying to figure out if there is a way to network machines (like Raspberry Pis) without a "router" like the ones you typically buy from the store. Instead, you could build a virtual router from an ordinary computer.










share|improve this question

























  • Yes, in theory. However, it will be glacially slow compared to a router, since the router's hardware is optimized for switching and the Pi is not; also, the router's code, is very carefully optimized and tweaked, but yours will not be.

    – K7AAY
    Jan 4 at 19:06
















1















I'm trying to figure out the bare minimum in order to create a network. Wondering if you need to actually always buy a router, or if you can instead connect devices like Raspberry Pis directly with ethernet cords and have one of them with some OS or software that somehow handles its own virtualized routing. Basically I'm trying to figure out if there is a way to network machines (like Raspberry Pis) without a "router" like the ones you typically buy from the store. Instead, you could build a virtual router from an ordinary computer.










share|improve this question

























  • Yes, in theory. However, it will be glacially slow compared to a router, since the router's hardware is optimized for switching and the Pi is not; also, the router's code, is very carefully optimized and tweaked, but yours will not be.

    – K7AAY
    Jan 4 at 19:06














1












1








1








I'm trying to figure out the bare minimum in order to create a network. Wondering if you need to actually always buy a router, or if you can instead connect devices like Raspberry Pis directly with ethernet cords and have one of them with some OS or software that somehow handles its own virtualized routing. Basically I'm trying to figure out if there is a way to network machines (like Raspberry Pis) without a "router" like the ones you typically buy from the store. Instead, you could build a virtual router from an ordinary computer.










share|improve this question
















I'm trying to figure out the bare minimum in order to create a network. Wondering if you need to actually always buy a router, or if you can instead connect devices like Raspberry Pis directly with ethernet cords and have one of them with some OS or software that somehow handles its own virtualized routing. Basically I'm trying to figure out if there is a way to network machines (like Raspberry Pis) without a "router" like the ones you typically buy from the store. Instead, you could build a virtual router from an ordinary computer.







networking router raspberry-pi






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 18:30









Jamie Hanrahan

18.4k34279




18.4k34279










asked Jan 2 at 3:37







user39251




















  • Yes, in theory. However, it will be glacially slow compared to a router, since the router's hardware is optimized for switching and the Pi is not; also, the router's code, is very carefully optimized and tweaked, but yours will not be.

    – K7AAY
    Jan 4 at 19:06



















  • Yes, in theory. However, it will be glacially slow compared to a router, since the router's hardware is optimized for switching and the Pi is not; also, the router's code, is very carefully optimized and tweaked, but yours will not be.

    – K7AAY
    Jan 4 at 19:06

















Yes, in theory. However, it will be glacially slow compared to a router, since the router's hardware is optimized for switching and the Pi is not; also, the router's code, is very carefully optimized and tweaked, but yours will not be.

– K7AAY
Jan 4 at 19:06





Yes, in theory. However, it will be glacially slow compared to a router, since the router's hardware is optimized for switching and the Pi is not; also, the router's code, is very carefully optimized and tweaked, but yours will not be.

– K7AAY
Jan 4 at 19:06










1 Answer
1






active

oldest

votes


















0














The Raspberry PI has only one Ethernet interface, but you can add a USB Ethernet dongle, adding a second network interface. You can then configure as a router.



For the Wi-Fi, some Raspberry Pis have a Wi-Fi chip and can act as Access Points, or you can a USB Wi-Fi dongle and use that as an access point.



My advice would be to purchase a router compatible with openwrt.



Openwrt (https://www.openwrt.org) is a 100% open-source firmware for very common hardware you can purchase on the market.






share|improve this answer


























  • "Raspberry PI has only one network card " -- The RPi is a SBC (single board computer) or a single card (board). You're misusing the term "card" when you actually mean "interface". Back in the day of PCs and modular computers, an interface would be implemented on an expansion board, aka a "card". It's called a "card" because it resembled an index card.

    – sawdust
    Jan 2 at 4:54













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1389665%2fif-you-can-replace-a-router-with-just-a-raspberry-pi-and-some-code%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown
























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The Raspberry PI has only one Ethernet interface, but you can add a USB Ethernet dongle, adding a second network interface. You can then configure as a router.



For the Wi-Fi, some Raspberry Pis have a Wi-Fi chip and can act as Access Points, or you can a USB Wi-Fi dongle and use that as an access point.



My advice would be to purchase a router compatible with openwrt.



Openwrt (https://www.openwrt.org) is a 100% open-source firmware for very common hardware you can purchase on the market.






share|improve this answer


























  • "Raspberry PI has only one network card " -- The RPi is a SBC (single board computer) or a single card (board). You're misusing the term "card" when you actually mean "interface". Back in the day of PCs and modular computers, an interface would be implemented on an expansion board, aka a "card". It's called a "card" because it resembled an index card.

    – sawdust
    Jan 2 at 4:54


















0














The Raspberry PI has only one Ethernet interface, but you can add a USB Ethernet dongle, adding a second network interface. You can then configure as a router.



For the Wi-Fi, some Raspberry Pis have a Wi-Fi chip and can act as Access Points, or you can a USB Wi-Fi dongle and use that as an access point.



My advice would be to purchase a router compatible with openwrt.



Openwrt (https://www.openwrt.org) is a 100% open-source firmware for very common hardware you can purchase on the market.






share|improve this answer


























  • "Raspberry PI has only one network card " -- The RPi is a SBC (single board computer) or a single card (board). You're misusing the term "card" when you actually mean "interface". Back in the day of PCs and modular computers, an interface would be implemented on an expansion board, aka a "card". It's called a "card" because it resembled an index card.

    – sawdust
    Jan 2 at 4:54
















0












0








0







The Raspberry PI has only one Ethernet interface, but you can add a USB Ethernet dongle, adding a second network interface. You can then configure as a router.



For the Wi-Fi, some Raspberry Pis have a Wi-Fi chip and can act as Access Points, or you can a USB Wi-Fi dongle and use that as an access point.



My advice would be to purchase a router compatible with openwrt.



Openwrt (https://www.openwrt.org) is a 100% open-source firmware for very common hardware you can purchase on the market.






share|improve this answer















The Raspberry PI has only one Ethernet interface, but you can add a USB Ethernet dongle, adding a second network interface. You can then configure as a router.



For the Wi-Fi, some Raspberry Pis have a Wi-Fi chip and can act as Access Points, or you can a USB Wi-Fi dongle and use that as an access point.



My advice would be to purchase a router compatible with openwrt.



Openwrt (https://www.openwrt.org) is a 100% open-source firmware for very common hardware you can purchase on the market.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 2 at 17:01









Run5k

11k73051




11k73051










answered Jan 2 at 4:19









EchoMike444EchoMike444

1162




1162













  • "Raspberry PI has only one network card " -- The RPi is a SBC (single board computer) or a single card (board). You're misusing the term "card" when you actually mean "interface". Back in the day of PCs and modular computers, an interface would be implemented on an expansion board, aka a "card". It's called a "card" because it resembled an index card.

    – sawdust
    Jan 2 at 4:54





















  • "Raspberry PI has only one network card " -- The RPi is a SBC (single board computer) or a single card (board). You're misusing the term "card" when you actually mean "interface". Back in the day of PCs and modular computers, an interface would be implemented on an expansion board, aka a "card". It's called a "card" because it resembled an index card.

    – sawdust
    Jan 2 at 4:54



















"Raspberry PI has only one network card " -- The RPi is a SBC (single board computer) or a single card (board). You're misusing the term "card" when you actually mean "interface". Back in the day of PCs and modular computers, an interface would be implemented on an expansion board, aka a "card". It's called a "card" because it resembled an index card.

– sawdust
Jan 2 at 4:54







"Raspberry PI has only one network card " -- The RPi is a SBC (single board computer) or a single card (board). You're misusing the term "card" when you actually mean "interface". Back in the day of PCs and modular computers, an interface would be implemented on an expansion board, aka a "card". It's called a "card" because it resembled an index card.

– sawdust
Jan 2 at 4:54




















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1389665%2fif-you-can-replace-a-router-with-just-a-raspberry-pi-and-some-code%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...