How can I make a virtual router on Ubuntu?
I have a 3G stick that I'm connected with to the network. I would like to share this connection with my PlayStation 3. How can I create a virtual router?
42 Answers
As many times mentioned, you can read how to share network connection here:
if it wont help, let us know.
just type
sudo apt-install hostapdThen you can configure pass and name of SSID as you want at /etc/hostapd/hostapd.conf. but you must at least have a hotspot-able wifi-chip(wifi-card) on your motherboard. Vender like Broadcom(in my case bit old Machintosh) doesn't have the one, so not in use as hotspot but simply as accessing other wifis. you can google a list of which vender's wifi-card can be used as hotspot(^O^)Y just check your wifi vender ID by typing in my case
lspci -vnn -d 14e4: or
sudo lshw -C networkSecondly, fix Interface by typing sudo vi /etc/network/interface or if you are on newer version like Ubuntu 18.04, type
sudo vi /etc/netplan/01-network-manager-all.yamlthen
sudo systemctl enable systemd-network.servicenext, need to stop /etc/network/interface(NetworkManager), by typing
sudo systemctl disable networkingcheck if interface is properly working, type
sudo systemctl is-enabled systemd-networkd.serviceand (enable) should appear if all good. then, type
rfkill list allif you get error saying ....soft blocked..., type
rfkill unblock wifithen,type
sudo ip link set wlp2s0 upthen, check the interface name for wifi, by typing
ifconfig -athe name allocated to your wifi interface is(mostly wlp2s0 not those like ens7 or enther9...) then finally type
sudo netplan apply(oUo)Y----have fun !!!!