Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can get any router that has the features, and I would recommend one that supports open firmware.
Or, if you have two NICs and a switch you could make your computer a router and output to the switch, which can have as many ports as you like, but your computer would have to stay on all the time that you want internet.
Last edited by metaschima; 02-20-2014 at 07:39 PM.
- snip -
You can get any router that has the features, and I would recommend one that supports open firmware.
Thanks for your advice and link.
I have searched some routers. I'll post them later for advice..
Quote:
Or, if you have two NICs and a switch you could make your computer a router and output to the switch, which can have as many ports as you like, but your computer would have to stay on all the time that you want internet.
1)
That is my most interest learning how to share Internet connection to a second computer (I have only 2 computers and a spare Gigabit NIC resting on shelves). I know it is impossible. I'll make some search later.
2)
On each PC there are about 10 VMs installed but not all running at the same time. If without a router how can the VM be accessed on Internet (outside). Should I need to buy a switch I prefer to buy a router instead
I have searched some routers. I'll post them later for advice..
1)
That is my most interest learning how to share Internet connection to a second computer (I have only 2 computers and a spare Gigabit NIC resting on shelves). I know it is impossible. I'll make some search later.
2)
On each PC there are about 10 VMs installed but not all running at the same time. If without a router how can the VM be accessed on Internet (outside). Should I need to buy a switch I prefer to buy a router instead
If you only have two computers, you don't need a switch. Just connect one to the ONT and set it up as a router, and connect them together. So you need 3 NICs total. This is what I have done in the past and it works fine, and you save some money in some cases.
Lot of thanks. Otherwise I have to googling around for instruction.
Quote:
If you only have two computers, you don't need a switch. Just connect one to the ONT and set it up as a router, and connect them together. So you need 3 NICs total. This is what I have done in the past and it works fine,
I'll start after making some house keeping copying the important data to the backup HD.
Computer-1 (for daily working)
SSD 120G - OS (Ubuntu 12.04)
HD-1 2TB - for data and VMs
HD-2 1TB - for data backup
Computer-2 (spare)
SSD 120G - OS (Debian 7.3)
HD-1 1.5TB - for data and VMs
HD-2 1TB - for data backup
I'll install Computer-1 as router
Quote:
and you save some money in some cases.
Absolutely agreed. Additionally I will learn to setup a PC as router.
The static IP address is provided by my ISP, say 2xx.2xx.2xx.1xx. Nameservers (2 nameservers) are also provided by ISP. Where can I get netmask and gateway addresses? Ask ISP?
Thanks
bridge-utils is already running on Computer-1 which runs Oracle VirtualBox as virtualizer.
Edit
====
Port forwarding
If I need to forward port 80/8080 to IP 192.168.0.28 (for example) which is the IP address of a VM on Computer-1 how can I set this request? Domain will point at the static IP so that users can browse the website running on this VM.
You should ask for the rest of the info, or you can use DHCP, which is much easier and more flexible. You may want to setup a DHCP server on your router.
You can forward all ports, not just port 80, unless there is a specific reason.
You should ask for the rest of the info, or you can use DHCP, which is much easier and more flexible. You may want to setup a DHCP server on your router.
You can forward all ports, not just port 80, unless there is a specific reason.
Can I install the router and DHCP server on a VM instead on the host? I expect keeping the host clean only for running Oracle VirtualBox.
I found some tutorials on setup and configuring DHCP server:
I haven't dealt much with VMs, so I can't be sure if it would work. It depends on the VM and privileges.
In the past I did try to setup static IP based networks, but I have found them to be too inflexible. If I change anything I have to redo configs. Setting up the dhcp server is reasonably simple.
I haven't dealt much with VMs, so I can't be sure if it would work. It depends on the VM and privileges.
In the past I did try to setup static IP based networks, but I have found them to be too inflexible. If I change anything I have to redo configs. Setting up the dhcp server is reasonably simple.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.