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 - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-20-2014, 06:50 PM   #16
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56

Quote:
Originally Posted by metaschima View Post
Here's a question, they are not providing a router, but are they providing a modem ?
They provide ONT(Optical-fibre Network Terminal) for fibre connection without router/firewall/networking features.

satimis
 
Old 02-20-2014, 07:37 PM   #17
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Ok, this is what an ONT is:
https://secure.dslreports.com/faq/12565
So you just need a router.

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.
 
Old 02-20-2014, 08:06 PM   #18
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by metaschima View Post
- 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

Thanks

Rdgs
satimis
 
Old 02-21-2014, 03:40 PM   #19
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by satimis View Post
Thanks for your advice and link.

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

Thanks

Rdgs
satimis
It is possible. If you run Ubuntu, here's a guide:
https://help.ubuntu.com/community/Router

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.
 
Old 02-21-2014, 10:31 PM   #20
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by metaschima View Post
It is possible. If you run Ubuntu, here's a guide:
https://help.ubuntu.com/community/Router
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.

I'll come back to report my progress. Thanks

satimis
 
Old 02-22-2014, 06:15 AM   #21
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi metaschima,

I'm now going through the documentation - Router
https://help.ubuntu.com/community/Router

Re. 4.3.1.3. For Static IP Address Only
Code:
....
auto eth0
iface eth0 inet static
    address xxx.xxx.xxx.xxx
    netmask xxx.xxx.xxx.xxx
    gateway xxx.xxx.xxx.xxx
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.

satimis

Last edited by satimis; 02-22-2014 at 09:02 AM.
 
Old 02-22-2014, 10:28 AM   #22
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 02-22-2014, 06:08 PM   #23
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by metaschima View Post
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:

Dynamic Host Configuration Protocol (DHCP)
https://help.ubuntu.com/12.04/serverguide/dhcp.html

How To Set Up A DHCP Server For Your LAN
http://www.howtoforge.com/dhcp_serve...x_debian_sarge

Setting up a DHCP server on Ubuntu 12.04 (Precise Pangolin) server
http://lani78.com/2012/07/23/setting...ngolin-server/

satimis
 
Old 02-22-2014, 06:11 PM   #24
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 02-24-2014, 05:18 AM   #25
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by metaschima View Post
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.
Hi,

Performed following test :
(Documentation referred
Router Guide
Setting up an Ubuntu Wired/Wireless Router
https://help.ubuntu.com/community/Router
)

VM - Ubuntu 12.04

$ cat /etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
    address 2xx.2xx.2xx.1xx
    netmask 255.255.255.0
    gateway 2xx.2xx.2xx.1xx

auto eth2
iface eth2 inet static
    address 192.168.0.1
    network 192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255

auto br0
iface br0 inet static
    address 192.168.0.1
    network 192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255
Two NIC detected as eth1 and eth2

Host - Debian 7.3
$ cat /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
Settings -> Network
Adapter 1
Attached to: NAT

Adapter 2
Attached to: Internal Network

Pulled out the cable connecting Cable Modem to Router and connected it to "network card 1". Unable to connect ISP server.

Also tried "network card 2", with same result.

satimis

Last edited by satimis; 02-24-2014 at 05:22 AM.
 
Old 02-24-2014, 11:05 AM   #26
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Try some more guides:
http://www.server-servers.com/homese...twork-gateway/
https://rbgeek.wordpress.com/2012/05...ateway-router/
http://www.yourownlinux.com/2013/07/...as-router.html

one of them has to work. Overall, the checklist is:
enable ip forwarding
fix firewall
setup a dhcp server
connect
 
Old 02-24-2014, 07:24 PM   #27
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by metaschima View Post
Try some more guides:
http://www.server-servers.com/homese...twork-gateway/
https://rbgeek.wordpress.com/2012/05...ateway-router/
http://www.yourownlinux.com/2013/07/...as-router.html

one of them has to work. Overall, the checklist is:
enable ip forwarding
fix firewall
setup a dhcp server
connect
Thanks for the links.

I suppose my real problem is to make the virtual NIC on VM to connect ISP directly without going through the host.

satimis
 
Old 02-25-2014, 10:32 AM   #28
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi,

I found following documents which are quite interesting to me:

1)
Notes/Virtual Linux Router with VirtualBox
http://wiki.smalleycreative.com/Note...ith_VirtualBox

2)
Tutorials:Using Linux Virtual Machine instead of router for VPN
http://wiki.hidemyass.com/Tutorials:...router_for_VPN

3)
Creating a Virtual Network of Linux Guests using VirtualBox
http://sandilands.info/sgordon/creat...ing-virtualbox

I haven't gone through all of them deeply. On 3) it seems needing 3 NICs?

satimis
 
Old 02-25-2014, 10:55 AM   #29
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by satimis View Post
I haven't gone through all of them deeply. On 3) it seems needing 3 NICs?

satimis
Only if you want two internal networks.
 
  


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
help with modem router cable paperplane Linux - Hardware 5 01-13-2008 01:55 PM
Wireless Router in the UK for cable davholla Linux - Hardware 6 09-27-2007 09:49 AM
Cable AND Dsl through router apberzerk Linux - Networking 4 02-02-2005 02:04 PM
DSL + Cable through one router apberzerk Linux - Networking 0 12-18-2004 04:01 AM
Help with Router /Cable connection Soulex Linux - Networking 1 02-17-2003 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:57 PM.

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