OpenWrt on VirtualBox - Create One or More Virtual Sub-Nets

Published: 16 July 2022
on channel: ServerMatter
2,332
34

This video aims to bring together all the pieces of the puzzle - Firewall, SSH, Internet and multiple sub-nets if desired. I will try to demonstrate in the simplest possible terms how things are connected and what makes them work.

Commands used in this video can be copy / pasted below in your project:

set PATH=%PATH%;"C:\Program Files\Oracle\VirtualBox"
Vboxmanage convertfromraw --format VDI openwrt-21.02.3-x86-64-generic-ext4-combined-efi.img openwrt.vdi
vboxmanage modifymedium openwrt.vdi --resize 512
uci set dropbear.@dropbear[0].Port=XXXXX uci commit dropbear
uci commit dropbear
/etc/init.d/dropbear reload
uci set network.lan.ipaddr=192.168.XX.1
uci commit && reboot

Table Of Contents
00:00 Introduction
00:43 Add A 2nd VirtualBox "Host Network" on .60 subnet
02:08 Create OpenWRT VM - Includes Creation of OpenWRT VDI
07:32 Setup OpenWRT VM Network Settings Tabs
10:33 Start Your New OpenWRT Router
12:35 Set OpenWRT network.lan.ipaddress to Above "Host Network" Subnet ie; .60+.1
13:20 Change the default port 22 of OpenWRT to another using OpenWRT's "dropbear" instead of Openssh
14:08 Edit the firewall to Allow-ssh on above decided port number
15:05 SSH Into OpenWRT
15:50 Review Network Adapters From SSH environment
16:16 Comment Out Wan6 (dhcpv6)
17:08 Open Browser UI of OpenWRT at 192.168.60.1
17:27 Add New Router Interface Eth2 (which corresponds with VirtualBox 3rd Network Tab)
18:34 Create The Subnet Your Router Will Be Providing
19:32 Enable DHCP Server Of Your New Router
20:17 Verify New Network Interface From Command Line
21:15 Enable Internet On New Router Via Firewall Creation
23:15 Completed! New Router Ready To Use


Watch video OpenWrt on VirtualBox - Create One or More Virtual Sub-Nets online without registration, duration hours minute second in high quality. This video was added by user ServerMatter 16 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,332 once and liked it 34 people.