|
|
|
@ -27,7 +27,7 @@ echo ""
|
|
|
|
read -p "Enter the Static IPv4 Address (e.g., 192.168.1.100): " IP_ADDR
|
|
|
|
read -p "Enter the Static IPv4 Address (e.g., 192.168.1.100): " IP_ADDR
|
|
|
|
read -p "Enter the Netmask (e.g., 255.255.255.0): " NETMASK
|
|
|
|
read -p "Enter the Netmask (e.g., 255.255.255.0): " NETMASK
|
|
|
|
read -p "Enter the Gateway IP Address (e.g., 192.168.1.1): " GATEWAY
|
|
|
|
read -p "Enter the Gateway IP Address (e.g., 192.168.1.1): " GATEWAY
|
|
|
|
read -p "Enter the Nameservers (space-separated, e.g., 1.1.1.1 8.8.8.8): " NAMESERVERS
|
|
|
|
read -p "Enter the Nameserver (e.g., 1.1.1.1 8.8.8.8): " NAMESERVERS
|
|
|
|
|
|
|
|
|
|
|
|
# --- 3. Format ConnMan IPv4 String ---
|
|
|
|
# --- 3. Format ConnMan IPv4 String ---
|
|
|
|
# ConnMan's IPv4 format: <IP>/<NETMASK_LONG>/<GATEWAY>
|
|
|
|
# ConnMan's IPv4 format: <IP>/<NETMASK_LONG>/<GATEWAY>
|
|
|
|
|