ManageIQ to configure static IP for Windows system - manageiq

How to set static IP address using cloud-config (customization script - ManageIQ) for Windows

Related

windows: ping url fails but ping -4 url works in local network

I have been learning some network and system administration and encountered a puzzling problem.
SETUP:
I setup a small local offline network with a Windows Server 2019 and a Ubuntu server hosting gitea. In the Windows Server I have assigned a static IP of 169.254.0.2 and installed DNS and DHCP roles. In the Ubuntu server I have assigned a static IP of 169.254.0.3.
DNS has been configured with a primary zone funlab.abc. I created a single A record for gitea.funlab.abc. to point to 169.254.0.3. DHCP has been configured to lease addresses from 169.254.0.100 to 169.254.255.254. Subnet mask is 255.255.0.0.
PROBLEM:
With this setup, I successfully got client machines to connect to the local LAN network, transparently get a dynamic IP address, and access gitea.funlab.abc through the browser.
But in windows 10 client machines, I am unable to run ping gitea.funlab.abc in command prompt. I get an error message :
Ping request could not find host gitea.funlab.abc. Please check the name and try again
Git clone/push operations involving the URL gitea.funlab.abc also does not work.
However I can run ping -4 gitea.funlab.abc successfully. Git clone/push operations can also work if I replace the URL with the static IP. nslookup gitea.funlab.abc works correctly as well.
QUESTION:
Why is this happening? What did I misconfigure such that ping and git commands do not work?
Turns out ping and git commands works just fine when I change the IP address to 192.168.X.X. I guess windows treat the 169.254.X.X addresses differently.

Obtain Docker host address WITHOUT 'Docker Desktop for Windows'

I have docker installed on Windows Server and need to access something running on the host machine. The containers are Windows containers.
All other answers I can find which state host.docker.internal, docker.for.win.localhost or docker.for.win.host.internal do not work as you cannot have 'Docker Desktop' installed on a Windows Server machine (these names do not resolve).
This is confirmed by the official Docker docs:
The host has a changing IP address (or none if you have no network
access). We recommend that you connect to the special DNS name
host.docker.internal which resolves to the internal IP address used by
the host. This is for development purpose and will not work in a
production environment outside of Docker Desktop for Windows.
So what's the alternative?

Can't access my flask app running on my virtual machine

I'm running a Ubuntu 18.10 LTS virtual box on my Windows 10 system.
In the network configuration I set the network to bridge.
After that my virtual machine appears in my local network with the ip 192.168.0.231.
A ping from my hosting system to the VM works fine.
I'm then starting a flask app with DEBUG=TRUE, TEST=TRUE, SERVER_NAME=127.0.0.1:5001. On the VM the server starts and is available under localhost:5001.
But from my hosting service I get Could not get any response, when I try to access 192.168.0.231:5001.
Do I have to open some ports on the VM?
Thanks!
You need to:
Start the VM with the port forwarded and be sure it is not used on your Host OS
use when starting the app --host=0.0.0.0 if you start it with flask run

Remote access jupyter notebook on Windows 10

My home network environment is using DHCP, the router uses D-link 600m, I want to make remote access jupyter notebook on Windows 10.
Here are the steps I used:
Windows network part:
Open command: Enter ipconfig /all to get my private ip, subnet mask, default gateway.
Go to the D-link settings page:
fix the dhcp ip with private ip & mac address
then go to the virtual server, enter the virtual ip, port 8000
Open windows network, change IPv4 settings to fixed ip, private ip, subnet mask, default gateway
Open windows firewall -> advanced settings -> Inbound Rules to add port 8000
Jupyter notebook part:
https://jupyter-notebook.readthedocs.io/en/stable/public_server.html
I am sure this part is ok.
When I done these two parts, I open whatismyip.com to check my public ip.
And, I type https://[my public ip]:8000. It shows nothing but ERR_CONNECTION_TIMED_OUT
Please help me, thanks !
Here is what I did.
generate config file.
jupyter notebook --generate-config
jupyter notebook password
edit file /users//.jupyter/../jupyter_notebook_config.py
c.NotebookApp.allow_remote_access = True
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password_required = True
c.NotebookApp.port = 8888
Allow TCP, inbound, port firewall
However, this is just for fast test. You should add https cert to avoid getting hacked.

Can't access vagrant urls from hosts.

I am trying to setup my vagrant virtual box enviorment for development. Everything works fine. I have the shared folder setup and can access the information from my browser but only using the ip address. I can't use the website.app urls from windows even after i put it in my hosts file.
I used https://puphpet.com/ for the configuration file.
This is my hosts file:
192.168.56.101 website.app

Resources