If you can replace a router with just a raspberry pi and some code
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
add a comment |
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
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
add a comment |
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
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
networking router raspberry-pi
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
"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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
"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
add a comment |
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.
"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
add a comment |
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.
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.
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
add a comment |
"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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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