Questions tagged [ip-address]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-3
votes
0answers
16 views

ping: domain: Name or service not known

My site is return error DNS_PROBE_FINISHED_NXDOMAIN. When I am trying to run ping domain it returns ping: domain: Name or service not known. But it is working with the IP URL.
0
votes
0answers
10 views

apache2 virtualhost config ip resolving DNS etc/hosts

I am setting up my first apache2 server in a VM based on Ubuntu server. This is my hello.bla.la.conf: <VirtualHost *:80> ServerName hello.bla.la DocumentRoot /var/www/html/public_html ...
0
votes
0answers
18 views

Multiple IPs - binding connection sockets for server (listening) sockets

I have a server that has multiple network interfaces (let's say eth0 and eth1), and they both have multiple IPs. I also have a server type of software that is listening on 0.0.0.0 (this is something ...
0
votes
3answers
149 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 ...
1
vote
0answers
76 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 ...
11
votes
2answers
770 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 ...
0
votes
1answer
53 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?
0
votes
1answer
35 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 ...
0
votes
1answer
46 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 ...
-1
votes
1answer
33 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 ...
1
vote
3answers
253 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 +...
0
votes
4answers
193 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-...
0
votes
0answers
27 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 ...
1
vote
3answers
174 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 ...
0
votes
2answers
45 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: ...
0
votes
1answer
35 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 ...
0
votes
2answers
49 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 ...
0
votes
1answer
103 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'...
0
votes
0answers
67 views

Gateway failover using netplan not working

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 ...
0
votes
1answer
291 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 ...
1
vote
0answers
125 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 ...
2
votes
1answer
1k 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 ...
0
votes
1answer
351 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 ...
0
votes
1answer
115 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 ...
0
votes
0answers
25 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 | ...
1
vote
1answer
843 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 ...
1
vote
0answers
24 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 ...
2
votes
3answers
688 views

Use sed to replace IP address with hostname in log output

I am trying to replace an IP address in a dnsmasq logfile with its hostname. The logfile is being 'watched' with the command 'tail -f /var/log/dnsmasq.log' on the console and I want to pipe the output ...
2
votes
1answer
194 views

Which network interface or IP address in the guest OS corresponds to which in the host OS?

I heard that a guest OS and a host OS in KVM can communicate via having network interfaces or IP addresses in the same private network. I also heard that You can see its IP addresses and network ...
0
votes
1answer
569 views

What IP address(es) can't be bound to a listening socket?

What IP address(es) can't be bound to a listening socket? For example, can a server process bind 255.255.255.255 to a listening socket? Thanks.
7
votes
4answers
1k views

why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`? [duplicate]

According to https://networkengineering.stackexchange.com/a/57909/, a packet sent to 192.168.1.97 "doesn't leave the host but is treated like a packet received from the network, addressed to 192.168.1....
0
votes
2answers
124 views

What does the action “loop back” mean? [closed]

I have some difficulty to picture a diagram for the meaning of loopback. https://en.wikipedia.org/wiki/Loopback#Virtual_loopback_interface Any traffic that a computer program sends to a loopback IP ...
0
votes
2answers
190 views

When does `[::]` or `0.0.0.0` mean this network and when this host? [duplicate]

Tanenbaum's Computer Networks says The IP address 0.0.0.0, the lowest address, is used by hosts when they are being booted. It means ‘‘this network’’ or ‘‘this host.’’ [::] is IPv6 version of ...
0
votes
0answers
88 views

When does an IP address not need to be assigned to a network interface?

ping 127.0.0.2 can receives response. $ ping 127.0.0.2 PING 127.0.0.2 (127.0.0.2) 56(84) bytes of data. 64 bytes from 127.0.0.2: icmp_seq=1 ttl=64 time=0.068 ms 64 bytes from 127.0.0.2: icmp_seq=2 ...
1
vote
2answers
131 views

Why is some virtual network interface assigned private IP address, while some is assigned loopback IP address?

Are docker0, lo and virbr0 are virtual network interfaces? Why are docker0 and virbr0 assigned private not loopback IP address? If private IP address can work like a loopback address, can lo be ...
-3
votes
1answer
735 views

What do `0.0.0.0:*`, `[::]:mysql`, and `[::]:*` mean in netstat output?

$ sudo netstat -ap | grep postg tcp 0 0 localhost:postgresql 0.0.0.0:* LISTEN 1567/postgres udp 0 0 localhost:57504 localhost:57504 ...
0
votes
2answers
1k views

How to access a device connected to local network with its hostname?

I tried accessing a webpage in a server within the local network with the hostname of the device followed by its folder path and the name of the file (it is a basic PHP-file). In the first system it ...
0
votes
1answer
66 views

How do I use grep to output only the names of files that contain any ipv4 address

I am using Red Hat Enterprise 6 and I'm trying to search through the /etc/ directory for files that contain any IPv4 address.
0
votes
2answers
47 views

Enter IP at the end of a specific line [closed]

I have the following file.txt that follows the same pattern and I want to modify it where this file is by adding an ip: # gfhfhgfh gfhfghgfhgfhgfh MACs # access USER CONSOLA *,!10.249.247.3,!10.249....
3
votes
1answer
3k views

How to automatically permanently ban IP addresses?

Currently I have been using iptables on a new Debian server running Asterisk. Every day I have been checking auth.log for IP addresses and manually doing iptables -A INPUT -s IPA.DRE.SS.0/24 -j DROP ...
1
vote
1answer
5k views

How to detect dot (.), underscore(_) and dash(-) in regex [closed]

I need to process information dealing with IP address or folders containing information about an IP host. I need a pattern that can identify (match) IP addresses, whether an actual url, name of ...
0
votes
4answers
455 views

How can a computer assign an IP address to itself? Aren't IP addresses assigned to computers by routers?

I can do this: /sbin/ip addr add 172.17.0.12 dev eth0 This possibility conflicts with my (apparently overly simplistic and untrue) mental model of how assigning IP addresses work. According this ...
0
votes
1answer
189 views

How to use sed to obfuscate an IPv6 address

I have the following sed command sed -i 'test.log' -e 's/\([0-9a-fA-F]\{1,4\}\:\)\{7,7\}[0-9a-fA-F]\{1,6\}/\1\w/g' The goal is to erase the last two blocks of the IPv6 address. However, this sed ...
0
votes
2answers
79 views

Looking up IPs and writing to file in Bash

I'm trying to reverse lookup a list of hostnames to find their IPs and write to a file. I'm referring to this tutorial and expand on it to work with a list of hostnames. I'm new to Bash scripting and ...
1
vote
2answers
1k views

dhclient command does not allocate ip address to my interface

So I was trying to access a website through my browser but I couldn't. So I issued the ifconfig command to see if there was something wrong with the IP address I noticed that the interface enp0s3 ...
0
votes
3answers
249 views

compare two IP address using bc

I am trying to compare two IP address using bc command however the IP with lower numeric value is not being trapped in the test. Here is my code: TEST=$(echo "$i < $IP_BRD && $i > $...
0
votes
0answers
23 views

Gaining information about a device using SD reader

I have a few SD cards which I forgot the static IP I assigned as well as the distribution. I can access the card using a SD reader. How can I gain this information? bacnet@gb-f75466e7-b8e8-4706-...
1
vote
0answers
210 views

Any way to advertise preferred IPv6 address with rtadvd

I have both native and HE-tunnel IPv6 addresses on my router (FreeBSD 10.3-RELEASE-p20). Hurricane electric prefix is static, native prefix is not guaranteed to be static, it is obtained by prefix ...
1
vote
2answers
23 views

Substitute numbers in a random IP address port with space

I have a file with IP and port numbers. I would like to take out the port number and leave the IP alone. xyz 10.93.10.13:58160). xyz 10.93.10.13:58161). xyz 10.18.104.181:12466). xyz 10.93.10.13:...
1
vote
1answer
521 views

check if input matches with ip format? [duplicate]

That's how I try to do it. read -p "enter ip " ip if [[ $ip =~ ^[1-255].[1-255].[1-255].[1-255]$ ]]; then echo "good"; fi Only work if the input is 1.1.1.1