turn my ebox guest into a router for a cable-modem conection
Posted: 18. Dec 2010, 20:50
Hello all!
As you know, cable-modem assign a public IP to the host connected, and you can only connect one host.
A solution is getting a router, which is what i did with an old PC, a linux distro, and some iptables work.
The old PC's fan is starting to fail, its noisy and i thought, what if i virtualize it? so i want to go further, and i want to keep my old-pc-as-router, but virtualized inside another PC of the LAN.
Before, lets write down the schema:
internetttttttttttttttttttt -> the pc with 2 interfaces and router virtualized inside -------------> switch ------> LAN
88.123.123.123 -------> router get that address in one interface, and 192.168.1.254 in the other, static address. ---> switch -------> LAN 192.168.1.x
Problems.
The HOST pc could have a 192.168.1.x address, and 192.168.1.254 as gateway. right? (Host PC is not a spare PC, its just another PC with me working on it)
The virtualized router inside should have 2 network adapters, which adapters? bridged? internal? NAT? H-O?
The guest should get via DHCP the leased ip from the cable-modem, but the host should have a static IP.
I dont know if that could work, so before spend a whole day testing and virtualizing, i prefer to confirm if its possible/it has been made before.
thank you
As you know, cable-modem assign a public IP to the host connected, and you can only connect one host.
A solution is getting a router, which is what i did with an old PC, a linux distro, and some iptables work.
The old PC's fan is starting to fail, its noisy and i thought, what if i virtualize it? so i want to go further, and i want to keep my old-pc-as-router, but virtualized inside another PC of the LAN.
Before, lets write down the schema:
internetttttttttttttttttttt -> the pc with 2 interfaces and router virtualized inside -------------> switch ------> LAN
88.123.123.123 -------> router get that address in one interface, and 192.168.1.254 in the other, static address. ---> switch -------> LAN 192.168.1.x
Problems.
The HOST pc could have a 192.168.1.x address, and 192.168.1.254 as gateway. right? (Host PC is not a spare PC, its just another PC with me working on it)
The virtualized router inside should have 2 network adapters, which adapters? bridged? internal? NAT? H-O?
The guest should get via DHCP the leased ip from the cable-modem, but the host should have a static IP.
I dont know if that could work, so before spend a whole day testing and virtualizing, i prefer to confirm if its possible/it has been made before.
thank you