Questions tagged [ip-address]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
212 views

Meaning of prefix length with ip addr add noprefixroute

When assigning an ip address to a network interface with ip addr add noprefixroute, what effect will the specified prefix length have? When noprefixroute is not used, the prefix length is used to ...
p0ny's user avatar
  • 123
0 votes
0 answers
102 views

Chrony's "sources with unknown address" in `activity` and `sources -a` when using NTP Pool Servers

I found chronyc's activity command outputting something like this: chronyc> activity 200 OK 5 sources online 0 sources offline 0 sources doing burst (return to online) 0 sources doing burst (return ...
U. Windl's user avatar
  • 1,411
0 votes
0 answers
50 views

Migrate from Ubuntu 16.04.7 to 22.04.2 / 2 IP's / 2 NIC's same Subenet / Same Gateway

I need to migrate an application from an Ubuntu Server 16.04.7 to 22.04.2. The hosted service requires two IP addresses, one for each of the two NICs. The default section with the nexthop info from ...
CookieKiller's user avatar
0 votes
2 answers
782 views

Making a device accessible with SSH from another device over the internet

I'd like to run a Raspberry Pi, on which I'd like to log in with ssh, connected to my router. Then I would like to access it from another RPi, which is connected to another router with physical (and ...
Nepumuk's user avatar
  • 697
2 votes
1 answer
227 views

Is there way to print IPv6 address selection precedence in command line?

I can print address' label via ip addrlabel and override label and precedence in /etc/gai.conf, but how to print current precedence in command line? In https://man7.org/linux/man-pages/man8/ip-...
chansey's user avatar
  • 153
1 vote
0 answers
41 views

Command “W” shows that my TTY and FROM are both “tty2”

I use dual boot windows and Ubuntu on a thinkpad T14 and in my terminal (in the Ubuntu graphical interface) command w shows that my TTY and FROM are both tty2 not sure how this is possible I ...
Owen's user avatar
  • 11
1 vote
1 answer
48 views

Changed my IPv4 to ssh into OpenWRT on rpi2 - did dhclient on my host afterwards- Now I have two IPv4 on one NIC - and it works! How?

as described in the title, sorry I wanted to have a specific title and I could not get it specific and short and the same time, I did the following: Flashed a SD Card with OpenWRT to test it on a ...
superurmel's user avatar
0 votes
1 answer
180 views

Reachability of IP address of virtual machine

I have a virtual machine (Linux) installed in my PC (Windows) and I was wondering the reachability of the IP address assigned to the virtual machine. According to ipconfig on Windows and ifconfig on ...
Yiyang Yan's user avatar
0 votes
0 answers
220 views

How to add an additional temporary IP to the connection that currently provides internet via nmcli?

I need to add a specific IP to the interface that actively provides the internet connection, like so: network_dev=$(nmcli --get-values DEVICE connection show --active | grep w) sudo ip a add 192.168....
ceremcem's user avatar
  • 2,351
0 votes
1 answer
974 views

connman and changing ip addresses back and forth with dhcp

The rules for setting up an IP address on your computer in Linux has changed and now there is this connman thing. I'm on a Beaglebone black: Linux beaglebone 4.19.94-ti-rt-r72 #1buster SMP PREEMPT RT ...
Jonathan Leslie's user avatar
1 vote
1 answer
1k views

Configuring fixed IP address based on MAC with dnsmasq give duplicate IP error

In order to allow monit to use ping to check whether devices are 'up' I want to have fixed IP addresses. I am using dnsmasq and have a separate file to configure these. e.g. dhcp-host=00:27:02:13:be:...
David Norbury's user avatar
0 votes
0 answers
343 views

WGet fails to download with an IPv6 address

When I try to download something with WGet, usually it fails if the domain name is translated to an IPv6 address. That happens more often when there's a link redirection. For example: $ wget --inet6-...
markfree's user avatar
  • 365
0 votes
1 answer
3k views

How to find link-local address of the other device?

What command can I use to find the link-local address of the device I am connected to? I am connected to the other device via link-local ONLY so entering its normal IPv4 address no longer works. ip ...
sted5453's user avatar
0 votes
1 answer
73 views

Why I see IP in traceroute not in ifconfig, netstat etc

If I issue traceroute I see my server IP (213.79.101.145): traceroute to google.com (108.177.14.138), 30 hops max, 60 byte packets 1 213.79.101.145 (213.79.101.145) 10.660 ms 10.630 ms 10.655 ms ....
maskalev's user avatar
  • 125
1 vote
1 answer
71 views

IP addresses from same network? [closed]

I have a client who was falsely accused of a crime. In order to show that he didn't do it, I need to show that the following IP addresses were likely sent from the same network/person: 209.85.218.46, ...
Geoff's user avatar
  • 11
0 votes
2 answers
89 views

Extract all subnets from its first common octet

I have a list of subnets in a file. I just need to extract those subnets which have common octet as mentioned. I tried using grep "grep -oP '1.[^"]+' but still I got some different results....
ph3ro's user avatar
  • 378
0 votes
0 answers
98 views

How can I make a port inside a virtual machine accessible to the host if the virtual interface has its traffic forwarded through a TPROXY target?

I have a virtual machine connected to virtual interface that has all its traffic sent through a TPROXY transparent proxy: ip tuntap add tap0 mode tap ip link set tap0 up ip addr add 10.0.0.1/24 dev ...
phantomcraft's user avatar
0 votes
1 answer
783 views

Unique Mac address for Secondary IP address?

Using one Ubuntu machine with one physical NIC, I want to make it seem that there are two or more additional machines on my real network, all controlled by this one Ubuntu machine. For example, I have ...
Andrew Campi's user avatar
0 votes
2 answers
370 views

"Reverse" SSH to Raspberry Pi with mobile internet access

I have a Raspberry Pi, which can access internet via mobile provider. I can install any software on this Pi and can program it to connect to any external host. But it has no static IP. Can I make this ...
Dims's user avatar
  • 3,255
0 votes
1 answer
216 views

IP Subnetting /16 into 5 equal parts [closed]

I having a hard time understanding IP subnetting for /16 mask. I went through some tutorials and understood the host part and non-vlsm but with vlsm and dividing into equal parts, is something I am ...
Atihska's user avatar
  • 103
0 votes
1 answer
512 views

What are all the IPs that I see in the result of `ip a`

So I issued a command ip a which list all the IP addresses. However I don't understand what all the other Ip addresses and details it printed. In this output I just understood that inet W.X.Y.Z/20 brd ...
Himanshuman's user avatar
2 votes
1 answer
9k views

How to SSH on alphine linux with iSH on ipad?

Iam trying out linux on Ipad through the iSH app, however, i cant seem to find my username it always returns 'root' when i do whoami. So now iam confused how I can ssh into another computer or even ...
Mj _'s user avatar
  • 21
2 votes
1 answer
1k views

how do i get interface name, ip and mac from active interface only (except lo)

I use this command to get the name of my network interfaces and their mac address ip -o link | awk '$2 != "lo:" {print $2, $(NF-2)}' | sed 's_: _ _' out: enp2s0 XX:XX:XX:XX:XX:XX wlp1s0 YY:...
acgbox's user avatar
  • 951
3 votes
5 answers
2k views

How to replace a string that does NOT match IP address with a dummy IP address?

I have a file with a list of IP addresses, but some of the strings are not IP addresses and I want to replace such strings with a dummy IP address. I am using this grep to search for IP; but don't ...
Javier Gonzalez's user avatar
1 vote
1 answer
7k views

Changing ip addresses of multiple servers

I have set of servers which are moving to another network. I have a file which has hostnames and corresponding new IP addresses . I looked across how to achieve this using Ansible but that requires ...
Tushar's user avatar
  • 13
2 votes
2 answers
949 views

How does Apache webserver is able to detect CNAME

I was quite curious how does Apache web server can detect a subdomain even when all the subdomains point to same IP address, since my understanding is that an IP address that cannot have a subdomain, ...
satyamfifa's user avatar
0 votes
2 answers
1k views

How can I find IP address of my MacOS Laptop that others can ssh connect to?

My MacOS laptop does not have a static Public IP. I just connect to the Internet on my MacOS Laptop using a wifi connection. There is a server having static non-changing IP in another country that ...
Ashar's user avatar
  • 491
-4 votes
1 answer
168 views

Is 172.20.0.2/24 an ip address or subnet? [duplicate]

Can we also assign a subnet to a computer as an ip address?
Nitin Kumar's user avatar
0 votes
3 answers
1k views

Difference between ip addr and ifconfig?

If it's subnet then it should have 254 hosts. But it's showing me that it's my private ip address of my linux VM but it looks like subnet. If i use ip addr command it shows my ip is 10.0.1.178/24 as ...
Nitin Kumar's user avatar
0 votes
0 answers
129 views

How can I solve the problem that no DNS request occured after proxychains' file setup?

May i know how to solve the problem that make DNS request occur? Thanks a lot! Below is the command that i have typed in guee@Kali:~$ sudo apt-get update Hit:1 http://kali.cs.nctu.edu.tw/kali kali-...
JS GUEE's user avatar
0 votes
2 answers
235 views

Linux nslookup reverse lookup returning error

I am on a Linux machine and am trying to lookup the machine name of a remote Windows computer using it's IP address. When I use nslookup to get the IP address from the machine name, it works: $ ...
mosk915's user avatar
  • 101
0 votes
0 answers
159 views

Overriding assigned IP address using DHCP on FreeBSD 12

Is there some way to assign a preferred IP address despite using DHCP? i.e., to use DHCP to find the router and network mask, but assign the IP address manually (ideally with fallback). /etc/rc.conf (...
Noldorin's user avatar
  • 107
0 votes
1 answer
62 views

VMWare CentOS 6 Guest OS IP address is on a different network

Good day. I am not sure if "network" is the right terminology but my Windows PC and VMWare Guest OS has a different network address. Windows PC: 192.168.3.x CentOS 6 Guest: 192.168.239.x On ...
Mr. Kenneth's user avatar
0 votes
2 answers
383 views

kubernetes PersistenceVolume NFS IP change

We are running kubernetes on centos7 on premises from past 3years, Recently our NFS storage device was migrated to different VLAN and there was a change in IP address, now none of pods are functioning ...
Nitin Mestry's user avatar
18 votes
7 answers
3k views

Find the IP address of a newly-booted Raspberry Pi

I've attached a Raspberry Pi running Ubuntu to my home network with a cable. It is booted up and connected to the network. The Pi has no keyboard, mouse, or monitor. If I know the IP address that was ...
pitosalas's user avatar
  • 637
4 votes
1 answer
13k views

bash: ip: command not found

I want to run for example this command : ip addr on my remote system. I do it like this : ssh username@ip ip addr but I got this error : bash: ip: command not found when I connect to remote system ...
fa7eme's user avatar
  • 43
1 vote
1 answer
120 views

Grep not working for strings with ips

I am trying to print all the following entries in my file as my output.Expected output is as follows (with differnt ip address) all files calculateTotalcount 0 #211.4.2.10#expctd data flows all files ...
user2359877's user avatar
1 vote
2 answers
2k views

Cannot ping second IP address on another machine's interface

I have an OpenVPN client connected to an OpenVPN server. The server has the following routes: default via 10.109.185.65 dev eth0 proto dhcp src 10.109.185.84 metric 100 10.8.0.0/24 dev tun0 proto ...
pacoverflow's user avatar
-1 votes
1 answer
82 views

Why eth0 and eth1 is up after 10 minutes login screen appears

Question is First question: Why I need to wait for the link is up for eno3 for 5 minutes and eno4 for 10 minutes after login screen appear. is it something I can do about it ? If I try manually up ...
danone's user avatar
  • 304
0 votes
1 answer
726 views

Ansible - Change Exact IP address

Assume that shorewall rules config contain ACCEPT net:1.234.5.253 all tcp 3306 ACCEPT net:1.234.5.2 all tcp 80 ACCEPT net:1.234.5.2 all tcp 80 ACCEPT net:1.2.3.4,1.234.5.22,...
Petr Schönmann's user avatar
0 votes
1 answer
1k views

Linux Ping not working and ssh cannot connect to linux

I am new to linux and have been trying to connect ssh for a whole day but it is just not working: I am using VMware to host virtual linux. Initially I discovered that my virtual linux is not on the ...
z.z's user avatar
  • 103
1 vote
1 answer
710 views

In IPV6, what should I do if the last 2 boxes only contain 3 characters?

I'm setting up a new router which actually allows me to change both my IPV4 and IPV6 DNS Servers. I'm adding AdGuard DNS for both and setting up the IPV4 was no problem at all since I've done it a ...
Ev-'s user avatar
  • 639
0 votes
2 answers
634 views

Why does my network connection fail when using a static address?

When I try to change my IP address to static from DHCP, my internet connection goes off from centos. Host os : MacOS High Sierra VM : vmware fusion Guest OS : CentOS Linux release 7.7.1908 (Core) ...
Sivakumarj's user avatar
11 votes
3 answers
38k views

What does this mean /16 after an IP address

I came across an ip like this the other day 255.255.255.1/16 I thought the /16 referred to the number of subnetting addresses the IP could generate. However, I suspect I may be horribly wrong and ...
lsn00b's user avatar
  • 119
1 vote
0 answers
1k views

How to set the lifetime of the IP address with ip addr

I'm trying to learn the ip addr command because it seems it's on every distro now. The problem is that, while I can successfully add and remove addresses, I can't change the lifetime of them, i.e; set ...
Vita's user avatar
  • 151
13 votes
2 answers
3k views

How can you determine the hostname associated with an IP on the network?

How can you determine the hostname associated with an IP on the network? (without configuring a reverse DNS) This was something that I thought was impossible. However I've been using Fing on my ...
Philip Couling's user avatar
0 votes
1 answer
212 views

How can I restrict my computer's ability to connect to other ip's

I have a comma seperated list of IP addresses in a text file like this: 192.xxx.xxx.xxx,213.www.www.www,255.yyy.yyy.yyy Can I block my Ubuntu 19 from connecting to those IP addresses? If yes, How?
Hemanbabu's user avatar
  • 145
0 votes
1 answer
57 views

PHP ip request -- repeat every 5 seconds with the date in the output

I have a code in php and it shows ip adress. But it works only for once when I enter. So I want to use this code to works in every 5 second. your ip : 5.4.3.2.1 ; 18:05 your ip : 5.4.3.2.1 ; 18:10 ...
Mert Kütükçü's user avatar
0 votes
1 answer
203 views

Give file permissions based on the IP of the windows machine logged in to Linux

We connect to the Linux server from windows using putty and we all share the common user and password. I'm creating a file and I want to give read only permission to others but if I login (from my ...
Aravind's user avatar
  • 1,599
-1 votes
1 answer
612 views

IP address not changed using Tor via CLI

I have installed Tor via the CLI and rebooted. I call service tor start and get prompted to enter my root password. To confirm the service is running I call service tor status which confirms Tor is ...
Barb's user avatar
  • 111