I've created a project network where my goal was to establish connection between 5 devices, and be able to access the internet. I made this recovery plan in case things might go wrong. This recovery plan is tested, and working as it should. Be aware that once you start working on your Ubuntu client, you might need to update, upgrade etc..., before you can run some commands. Other than that, you're good to go.
- Requirements: VMWare - SRX Router - Ubuntu Desktop(client) - Web-Server - DNS-server
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- Download and install in VMWare, a Ubuntu client from https://www.ubuntu.com/download/desktop
- Download and install in VMWare, a Debian linux server from: https://www.debian.org/
- Download and install in VMWare, a SRX Router. (can be found on fronter or https://www.juniper.net
- Clone the SRX Router in VMWare. Name one router, Router-INT and the other Router-EXT
- Open Router-INT, go to edit mode, type:
set interfaces ge-0/0/0.0 family inet address 192.168.0.1/24
- Open Router-EXT, go to edit mode, type:
set interfaces ge-0/0/0.0 family inet address 10.0.1.1/24
- commit both routers
- IN VMWare right click Ubuntu client -> Settings -> Network Adapter -> choose: NAT, click OK
- Verify that you have internet connection now. Open terminal, type:
ping 8.8.8.8
- Open terminal on client and type:
sudo apt install git
- Open terminal on client and type:
git clone https://github.com/DKhalaf/Project_Network
- Open terminal on client and type:
sudo apt-get install ssh
- Open terminal on client and type:
sudo update-rc.d ssh enable
- Open terminal on client and type:
sudo service ssh start
- Go to VMWare, right click Router INT -> Settings -> NAT -> click OK
- Go to VMWare, right click Router EXT -> Settings -> NAT -> click OK
- Now both your routers should be able to ping 8.8.8.8
Reffering to step 5, copy the IP Address of your Router INT so we can push the configuration files. The following command will be used: scp router configuration file location root@ip of your router:~srxfile.conf
- Open terminal on client and type:
scp -r Project_Network/Routers/ROUTER-INT [email protected]:~/Router-INT.conf
- Remember to use the IP Address that you had given your interface!
- Open Router-INT. In edit mode, type:
load override INT.conf
- commit
Following command will be used: scp router configuration file location root@ip of your router:~srxfile.conf
- Open terminal on client and type:
scp -r Project_Network/Routers/ROUTER-EXT [email protected]:~/Router-EXT.conf
- Remember to use the IP Address that you had given your interface!
- Open Router-EXT. In edit mode, type:
load override EXT.conf
- commit
/////////////////////////////////////////////////////////////////////////////////////////////////////////
Open VWWare -> Edit -> Virtual Network Editor -> VMNet 8(NAT) -> Change settings -> Subnet IP: 10.0.0.0 and Subnet mask: 255.255.255.0
- Right click Ubuntu Client -> Settings -> Network Adapter -> Lan Segments... -> Add -> URSLAN -> click OK
- Right click Router-INT -> Settings -> Network Adapter -> Lan Segment -> URSLAN -> click OK
- Right click Router-INT -> Settings -> Network Adapter 2 -> Lan Segments... -> Add -> SVRLAN -> click OK
- Right click Router-INT -> Settings -> Network Adapter 3 -> Lan Segments... -> Add -> RouterConnection -> click OK
- Right click Router-EXT -> Settings -> Network Adapter -> Lan Segment -> RouterConnection -> click OK
- Right click Router-EXT -> Settings -> Network Adapter 2 -> Lan Segments... ->ADD -> DMZ -> click OK
- Right click Router-EXT -> Settings -> Network Adapter 3 -> Lan Segment -> NAT -> click OK
- Right click DNS-Server -> Settings -> Network Adapter -> Lan Segment -> SVRLAN -> click OK
- Right click Web-Server -> Settings -> Network Adapter -> Lan Segments -> DMZ -> click OK
For all the network adapters you use for each device, remember to mark "Connect at power on". -Remove the mark on the other adapters that you dont use!
- For all devices
Set these settings up for your servers. To edit, login and type: nano /etc/network/interfaces