Questions tagged [ip-address]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Raspberry Pi - dhcpcd vs connmand

I have a Raspberry Pi 3 Model B+ that is running Raspberry Pi OS 11. I set up a static IP address using /etc/dhcpcd.conf: # Static IP configuration interface eth0 static ip_address=10.100.102.12/24 ...
user avatar
0 votes
2 answers
31 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 ...
user avatar
  • 2,617
0 votes
1 answer
63 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 ...
user avatar
  • 103
0 votes
1 answer
66 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 ...
user avatar
0 votes
0 answers
38 views

RHEL 7.9 how to use nmcli to remove an ip address?

I want to use nmcli to remove an ip address on an interface. I want the interface to have no ip address. I tried the following but nothing works nmcli con mod eth0 ipv4.address; nmcli con up id eth0 ...
user avatar
  • 294
0 votes
1 answer
343 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 ...
user avatar
  • 1
0 votes
1 answer
180 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:...
user avatar
  • 791
3 votes
5 answers
1k 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 13
1 vote
2 answers
298 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, ...
user avatar
0 votes
2 answers
93 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 ...
user avatar
  • 307
-4 votes
1 answer
87 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?
user avatar
0 votes
3 answers
493 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 ...
user avatar
0 votes
0 answers
32 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-...
user avatar
0 votes
2 answers
101 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: $ ...
user avatar
  • 101
0 votes
0 answers
34 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 (...
user avatar
0 votes
1 answer
22 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 ...
user avatar
0 votes
1 answer
109 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 ...
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 ...
user avatar
  • 627
3 votes
1 answer
7k 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 ...
user avatar
  • 43
1 vote
1 answer
51 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 ...
user avatar
1 vote
1 answer
833 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 ...
user avatar
-1 votes
1 answer
57 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 ...
user avatar
  • 304
0 votes
1 answer
245 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,...
user avatar
0 votes
1 answer
419 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 ...
user avatar
  • 103
1 vote
1 answer
266 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 ...
user avatar
  • 609
0 votes
2 answers
325 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) ...
user avatar
5 votes
3 answers
12k 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 ...
user avatar
  • 51
1 vote
0 answers
671 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 ...
user avatar
  • 93
13 votes
2 answers
2k 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 ...
user avatar
0 votes
1 answer
62 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?
user avatar
  • 135
0 votes
1 answer
47 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 ...
user avatar
0 votes
1 answer
103 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 ...
user avatar
  • 1,519
-1 votes
1 answer
169 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 ...
user avatar
  • 111
2 votes
3 answers
2k views

Extract A record and query time from dig output

I am having the following output when executing a dig command : dig @1.1.1.1 google.com +noall +answer +stats ; <<>> DiG 9.11.4-P1 <<>> @1.1.1.1 google.com +noall +answer +...
user avatar
0 votes
4 answers
1k views

grep finding ipv4 as words instead of lines

I have to find the ipv4 in a file.The problem is if there are other words on the same line as the IP the script wont print it.Here is my script: #!/bin/bash if [ -e ip.txt ] then grep -E '^(([0-...
user avatar
0 votes
0 answers
67 views

Get OpenVPN gateway address

After connecting to a SSL VPN server, it assigns me an IP address. And it also gives me a gateway in the same network, I can use to connect to other networks reachable through the VPN tunnel. For ...
user avatar
  • 3,362
3 votes
3 answers
863 views

Parse command arp -a for only ip

I need to parse the command arp -a to get only the ip of the device. Right now I have arp -a | awk '{print $2}' | head -1 However this gives me (192.168.1.71) and I must remove the ( ) from ...
user avatar
0 votes
2 answers
135 views

Run command based on IP address received

I'm looking at if I can have a bash/python script that triggers a command based on the IP address Linux has received via DHCP. e.g. DHCP received: 10.50.10.51 /24 runs command XYZ DHCP received: ...
user avatar
  • 1
0 votes
1 answer
89 views

Solaris server not accessible after office relocation (including network change)

We had an office relocation activity as part of which one of our Solaris server was moved to a different location & different network. We forgot to change the ip of the server before the hardware ...
user avatar
0 votes
2 answers
212 views

sed deleting everything before ip address of host

I'm looking to delete every line before the IP address of the local host. I'm grepping the host's IP address successfully via: grep `hostname` /etc/hosts | awk '{print $1}' Now I'm looking how to ...
user avatar
0 votes
1 answer
941 views

DHCPD with two different ranges

I have set up a DHCPD service on a Linux server, which shall provide fixed public IP addresses for cable modem devices based on MAC addresses. Here is the configuration file of the DHCPD. The server'...
user avatar
  • 25
0 votes
1 answer
2k views

Is it possible to give alias name to ip address with port number in CentOS 7

I have one question regarding given alias to ip address with port number. For example I am executing jenkins in my local system in port number 8080 and nexus in port number 8081. I will accessing ...
user avatar
1 vote
0 answers
294 views

Gateway failover using netplan

I'm having trouble setting up 2 IP address so that if one fails it will use the secondary IP address. I've setup netplan as shown in the picture. I can connect via ssh using both IP address, I test ...
user avatar
3 votes
1 answer
7k views

Return the private IP of an EC2 instance from within the EC2 instance

What specific syntax can be used to return the private IP address of an Amazon Linux EC2 instance from the command line within that instance? So far, I have come up with the following: # Get ...
user avatar
  • 5,124
0 votes
1 answer
1k views

Find IP address of poe devices attached to my computer via ethernet

I'm currently trying to setup zoneminder on my computer that has Ubuntu as a host OS. Before I do all that, I want to know if the poe CCTV camera I purchased works, a Reolink RLC410-5MP There are ...
user avatar
  • 11
0 votes
1 answer
389 views

Symlinks with grub2 like pxelinux

I do want to do symlinks like pxelinux can, just with grub2. But I cant figure out how. The goal is to have different config-files which I can dynamicly pass to an IP. Grub2 does work so far but I ...
user avatar
  • 13
0 votes
0 answers
26 views

Fetching the IP address on OS X Mojave

I used this command to fetch the IP address of my workstation (running OS X 10.14.5 ) in a script, but I am wondering if somebody out there/OS X has a better solution. ifconfig en0 | grep netmask | ...
user avatar
1 vote
1 answer
3k views

Why does "hostname -i" return "Unknown host"?

We have created an AWS EC2 instance using AMI type Amazon Linux AMI 2018.03.0.20190514 x86_64 HVM. After we started up the instance, our software printed out an IP address error. When we tried ...
user avatar
1 vote
0 answers
27 views

bc command unexpected results [duplicate]

I am trying to compare a decimal and it seems like bc is ignoring it. The OS is CentOS release 6.9 (Final) and bash is bash-4.1.2-48.el6.x86_64, below is the code #!/bin/sh i=32.39 IP_LOW_2=32.0 ...
user avatar
  • 1,731