Questions tagged [ip]
IP or Internet Protocol. Use this tag for questions about IP addresses or configuration, or the protocol as applied to Ubuntu.
560
questions
0
votes
2
answers
35
views
Can I configure Ubuntu Desktop network using ip command?
I have Ubuntu 22.04.1 desktop installed. Can I change my network settings using the ip command while NetworkManager is running?
0
votes
1
answer
28
views
about assigning ip's in a network
Ok I have the isp to a router called router 1 first ten ip's reserved so the dhcp pool is 10 an above. (hence network 1)
then the network goes to a router 2 which is staticed to the first router with ...
0
votes
0
answers
29
views
Hostname address
How can I change my IP address on Ubuntu VMware ESXi?
When I use if config not working you told me It have to be installed, and I can’t installed it becuase I have no network access.
I want to change ...
0
votes
1
answer
81
views
Same IP but for two different interfaces netplan
I have an ubuntu server 22.04 installation on a laptop with two interfaces wlp3s0 (wireless) and enp3s0 (ethernet). Wireless connection is used at home, ethernet connection is used at the office.
The ...
0
votes
0
answers
23
views
Unable to resolve hostname of Ubuntu 20.04 server after adding second ip address on a second adapter - no local DNS server
I recently needed to add a second IP address to a server using a previously unused Ethernet adapter. When I did this, suddenly no workstations could resolve the hostname of that server. When I undid ...
0
votes
0
answers
45
views
Discover new IP address by calling MAC address
I have two devices that is located on a remote network:
A Raspberry Pi running Ubuntu 20.04. Let us call it Alex.
Raspberry Pi Pico Wireless running my code only. Let us call it Bob.
Alex acts as a ...
0
votes
1
answer
469
views
ubuntu 22.04 routing using netplan
Hi I have a new ubuntu server with 2 interfaces and i wrote a netpaln config for it like this:
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
addresses:
- ...
0
votes
0
answers
136
views
Ubuntu Server 22.04.2 - Changed IP, but DNS Server still pointing to old IP
I have a Ubuntu 22.04.2 server that I setup with a static IP and joined to a Windows Domain. The IP was configured on /etc/netplan/00-installer-config.yaml and /etc/netplan/01-netcfg.yaml.
From other ...
0
votes
1
answer
223
views
Assign multiple Static IP address to one NIC
Please, I need help on to assign multiple static IP's with different on one NIC for 2 different IP like 192.168.xx.xx/24 and 172.16.xx.xx/24. Any idea of how to configure it on Ubuntu Server 22.04.
I ...
1
vote
1
answer
123
views
How to reset `ip a` index to start at `1` and end at `number of devices`
The command ip a shows list of network ports and also shows an index.
For example, 1 for lo and 2 for enp5s0 here:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group ...
0
votes
0
answers
50
views
How to set up internet connecitivty on a daisy chain network with one NAT interface on Virtual Box?
I am creating a daisy chain network, and I have three Ubuntu virtual machines on Virtual Box: one gateway, one router (through which all network traffic passes), and an end-node. Each VM has two ...
2
votes
1
answer
6k
views
Authenticator provider $SSH_SK_PROVIDER did not resolve SSH Connection ubuntu server
Hi everyone I'm using an Ubuntu server and I want to allow the access through any network in the world.
I configured the static ip address.
I have mapped the port 22-22 in the router configuration
I'...
1
vote
0
answers
41
views
How to route from an outside IP to an bridged interface?
edit: Just to clarify my topology, everything is local and behind my ISP gateway/router. The server and laptop both connect to the gateway on 192.168.1.0/24. GNS3 is hosted on the ubuntu server and is ...
0
votes
0
answers
252
views
etc/init.d/bind9: No such or directory
I can't find the bind9 file in the init.d directory
I have installed bind9 many times, and nothing happens
etc/init.d/bind9
0
votes
0
answers
23
views
Multiple interface / Multiple IPV4?
I'm so sorry i'm french. I will try to translate
So i have a problem. I have 3 connections, one classic with cable in my box and 2 modem 4G (Huawei E3372H)
I want to make proxy with that (like with ...
0
votes
0
answers
24
views
What happens when unplugging a network cable in 18.04? How do I replicate this behaviour in 20.04?
I understand that network management changed between 18.04 and 20.04.
For connecting to a special network I have a script that sets up multiple vlans and virtual interfaces using a mix of ifconfig, ...
0
votes
0
answers
116
views
Could not get the IP adress in Virtual Box in bridge mode of network
I have Windows 11 operating system. I installed Ubuntu 18.04.6 on this operating system with Virtual Box. I want Host machine(Windows) and Guest Machine(Ubuntu) to get IP over same network. But when I ...
0
votes
0
answers
30
views
Why does 10.0.0.0/8 private IPV4 address have a default network mask of 10.0.0.0/24?
$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.201 netmask 255.255.255.0 broadcast 10.0.0.255
…
The mask means that only the final 8 bits of the ...
-1
votes
1
answer
41
views
Connect 2 server
Hi guys i need tunnel my server to another server
My country block to much website.
example
I have server from iran
And have from Germany
I need tunnel my iran server to Germany
Please i need help ❤️
...
0
votes
2
answers
633
views
Temporarily add multiple ip addresses to interface in 22.04
I need to temporarily, dynamically add and remove ip addresses from the netplan.conf (/etc/netplan/myNetplanConfig.conf).
In earlier versions the ip command could be used to temporarily add ip ...
0
votes
1
answer
56
views
ip addr shows mutiple interfaces and multiple IPs... Which is the right IP address in the output?
I just want to find my PC's IP address...
ip -c addr
I can't... For the life of me decypher what this output is...
19: eth0: <> mtu 1500 group default qlen 1
link/ether a4:4c:c8:33:f1:9b
...
0
votes
0
answers
59
views
UBUNTU - Setting up secondary Network Interface for secondary IP Address
I'm trying to setup a Wireguard server so my Home Server can use the SECONDARY IP of the VPS, hiding my HOME's IP.
I'm using Ubuntu 22.04 LTS, the server also runs a Pterodactyl Panel and Wings, that'...
0
votes
1
answer
476
views
Unreachable network after restart
I have a machine with duel boot
windows loads network perfectly
ubuntustudio 22.04.1 LTS Don't
however I could use sudo netdiscover to see my router ip
browsers can't open it's page or surfe the ...
0
votes
0
answers
22
views
Point DNS to my Ubuntu VM
I'm running Ubuntu VM on bridged connection with my main machine, so the public IP is the same for both. I have pointed a no-ip.com DNS to the public IP, however I still cannot access the domain. I ...
0
votes
1
answer
236
views
Disable VPN for certain local devices, such as an embedded Linux board I need to ssh into (Allow local (LAN) access when using VPN)
I have the Cisco Annyconnect VPN on my Ubuntu 18.04 machine. I also have an embedded Linux board plugged in that I need to connect to over ssh.
Whenever I connect to my VPN, however, I can no longer ...
2
votes
1
answer
66
views
ubuntu 20.04 wrong ip in LAN
After updating Ubuntu 20.04 and installing wireguard I'm facing an issue. My machine wasn't reachable via ssh and pings anymore.
ping 192.168.178.42 (the LAN ip of the ubuntu machine) outputs:
$ ping ...
0
votes
0
answers
39
views
tp-link wireless usb adapter doesn't have IP
I've added a new TP-LINK TL-WN722N to my 20.04.1-Ubuntu, but when I run ifconfig I don't get an IP for it, only the MAC address:
wlxb4b02434988b: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
...
2
votes
1
answer
8k
views
how to set/change a static IP in "Ubuntu on Windows" (WSL)
I have installed ubuntu on my PC (Windows) but I can not set an IP...
It seems there is a default IP(eth0) and we are not able to change it...
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc ...
0
votes
1
answer
76
views
Ubuntu DNS connect domain to IP of name server
I have a VPS on ubuntu. Also I configured DNS (ns1.example.com, ns2.example.com) and connected 2 test domains to those NS (I wrote those NS in record in domain registration site for 2 example domains)....
0
votes
0
answers
332
views
How to disallow connection by ip country except one?
I want to disallow incoming connection from all country except one.
I know https://www.ip2location.com/free/visitor-blocker and what files I have to download and allow and select 1 country.
Then how ...
1
vote
0
answers
184
views
Auto assign link-local IP address if DHCP not present?
In Ubuntu 22.04 network settings I have the option to manually choose to use a link-local address (which will be configured automatically if I do). I'm looking for the equivalent of the link-local ...
0
votes
2
answers
202
views
Fail2Ban, ban all ip except for myself
I am trying to whitelist ONE ip (myself) from accessing a device via ssh. How do I ban ALL ip except myself (1 ip that i am using?)
Context: I saw there are 500 ip attacks yesterday, I just wanna make ...
0
votes
1
answer
515
views
Ubuntu server behind a firewall
I have a problem regarding a server behind a firewall, essentially, the whole internet is blocked, and I can't use the "add-apt-repository", problems like "X user or team does not exist&...
0
votes
0
answers
16
views
Where to find ip.h file on ubuntu server? [duplicate]
I am using ubuntu server 22.04.1 LTS on raspberry pi 4. I want to know where ip.h file is located inside it. And where would I find the source codes for traceroute and ifconfig on the ubuntu server as ...
0
votes
0
answers
67
views
How can i add following routes in ubuntu netplan for persistant routing
Hi i am adding static routes on my virtual machine using static ip this code is working fine
/usr/sbin/ip route flush all
/usr/sbin/ip route add 51.115.109.254 dev ens33
/usr/sbin/ip route add default ...
0
votes
1
answer
129
views
Install a CDN on a subdomain in a different IP: error 523
HAPPY MONDAY
I have Ubuntu running on 2 servers:
Server1: Docker, Cloudflare-OZNU-API and Nginx Proxy Manager, wildcard for: domain.app and *domain.app.
Server2: Apache2 - PHP7.2, Certbot for DNS-...
0
votes
1
answer
368
views
Several IP Addresses fetched with hostname -I
Kubuntu 20.04 LTS is returning 2 IP addresses after hostname -I. The second one is probably from docker0 network interface, so no big worries about that. Problem is that first IP address which have ...
0
votes
1
answer
58
views
Automatic Internal Static IP
Can we set up something like
Automatic Static IP, instead of DHCP?
I don't want to edit netplan every Virtual Machines..
Thank you.
-1
votes
1
answer
2k
views
how to change th IP of a server Ubuntu 20.04?
how to change the IP, Network, Gateway,Broadcast, Netmask and Prefix of a Ubuntu Server 20.04?
I need to change all this and i am not sure which files to change. If i do it wrong, i loose the remote ...
0
votes
0
answers
1k
views
How can I find the IP of my NTP server on Ubuntu 22.04?
I tried to do both of the methods [here][1] to find the IP of my NTP server, but I was unable to do so successfully. In fact, the second method does not list the NTP server. Ironically, I need to find ...
1
vote
1
answer
900
views
Why would `dig +short myip.opendns.com @resolver1.opendns.com` output nothing?
I am trying to find out what is my public IP address and stumbled upon the above utility but it outputs nothing.
By the way, I am trying to ssh to my Ubuntu server outsite my private network but ...
0
votes
1
answer
439
views
Ubuntu gets/has wrong private IP address
When I log in via SSH to my Ubuntu server (current LTS 20.04), I get a greeting message with the eth0 private IP.
I now needed to change my IPs in my home network from the default 192.168.178.0/24 to ...
1
vote
1
answer
545
views
podman container ip address should remain same with disconnect and connect
Assume podman network net1 and container cont1.
I connect podman network to a container during creation with --net net1. Also use podman network disconnect/connect net1 cont1 commands to dis-and-...
0
votes
0
answers
237
views
Connect openVpn
I'm trying to connect via openVpn. I have ubuntu 20.04.
My client.ovpn:
client
dev tun
proto udp
remote vpn.stend1.vs.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert n....
0
votes
0
answers
78
views
connecting to ssh on different network
I want to be able to connect to my server when I am not home, but when I try connecting with my public IP, it shows the message:
'ssh: connect to host ...** port 22: Connection refused'
I have ...
0
votes
1
answer
328
views
Remmina RDP - Issues with IP range on VPN
I've recently switched to ubuntu after many year using windows 10. After this switch, I couldn't remote connect to my work server (over VPN - OpenVPN). The error in Remmina was "Couldn't connect ...
0
votes
0
answers
271
views
How to have a same static IP address in all the networks
Imagine, I have an application at office which is bound to use 10.x.x.x IP address once it is installed. The gateway of this address will be 10.x.x.1 and this IP is set as static.
So, when I move the ...
0
votes
0
answers
89
views
iptable rules to allow downloading stuff while default policy is on DROP
I was trying to install bind and for some reason I was getting issues most likely due to my iptable rules , I can ping google.ca anybody have any reccomndations down below are my current rulesets
...
1
vote
2
answers
3k
views
How to disable temporary dynamic ipv6 addresses in Ubuntu 21.10?
By default Ubuntu 21.10 (should be the same for 20.04) does generate temporary/privacy IPV6 addresses. I would like to disable this behavior in order to make my computer into a server, and to do so I ...
0
votes
0
answers
48
views
Setting up Mail Server for multiple domains mapped to different ip addresses
We have taken dedicated hosting and using it for hosting multiple domains.
The different domains are mapped to different ip addresses.
for example
example1.com mapped to 1.0.0.1
and
example2.com ...