Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ip-address]

The tag has no usage guidance.

0
votes
2answers
22 views

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

I tried accessing a webpage in a server within the local network with the host name of the device followed by its folder path and the name of the file(it is a basic php file). In first system it ...
0
votes
1answer
41 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
42 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
259 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
142 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
105 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
52 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
36 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 ...
0
votes
2answers
131 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
70 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
19 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
87 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
21 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
196 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
2
votes
1answer
61 views

what does the following egrep command do in combination with the “ip a” command?

ip a | egrep '([0-9]{1,3}\.){3}[0-9]{1,3}' Can somebody explain what the above command will do?
1
vote
1answer
34 views

interface stops retrieving pages when static ip is set

Below is my current setup, the main ethernet connection is configured with a static ip and it's working fine. The two other interfaces are connected to different Android hotspots using DHCP. I have ...
0
votes
0answers
559 views

Preconfigure static IP address with connmanctl on Beaglebone Black

Short Version How can I used connmanctl to set a static IP address for an Ethernet interface on a Beaglebone Black running Debian 9 - prior to connecting the device to an Ethernet cable? Longer ...
0
votes
0answers
62 views

adding a fully qualified name for the server in /etc/hosts for oracle installation

So this is a area I don't clearly understand (adding ip addresses, hostnames and mapping etc...). In the guide for oracle database installation here, it is mentioned that adding a qualified name for ...
1
vote
2answers
270 views

Assign IP range in centOS 7 to network interface

Helllo to all, I'm very new to server administration, so I have a big question for me. What is the best way to assign a ip range to the network interface on the server? - I found some examples but I ...
0
votes
0answers
49 views

Inconsistent interface name between “ip addr” and file “ifcfg-xxx” and its “NAME” field on CentOS 7

I'm running CentOS 7 over VirtualBox VM. I installed the OS with one virtual network adapter and then added another one later, using VirtualBox. The first adapter is normal. It has a normal name '...
0
votes
1answer
70 views

How to find a private class A IP address assigned to cable modem by DHCP server?

How to find a private (Class A) cable RF IP address (10.x.x.x) assigned to cable modem by provisioning system in DOCSIS cable network node? In certain situations, when device is online, the IP address ...
-4
votes
2answers
3k views

ping google.com by using IP address [closed]

host google.com ping google.com nslookup google.com After these commands, I don't know how to ping the server by using IP address.
-2
votes
1answer
51 views

How to install MySQL on Ubuntu with a particular IP address on a particular port?

How do I install MySQL on ubuntu 14.04 with the bind address as a particular IP address on port 1723?
1
vote
1answer
531 views

Check overlapped subnets

I want to know if there's a way to check if some subnets are (or not) overlapped with a List of IPs For example, we have this List: 197.26.9.128/25 193.36.81.128/25 194.33.24.0/22 188.115.195.80/28 ...
1
vote
1answer
122 views

ip address “@” (at) in output

I'm having hard time reading the output of ip a command. Normally it prints something like this: 3: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP ...
0
votes
2answers
98 views

How to make linux sed command find match ip address

In my Linux system, executing listdata.sh outputs: { "111.111.111.111:11957": 1, "222.222.222.222:9999": 1, "333.333.333.333:9999": 1, "[::]:0": 1, "444.444.444.444:9999": 1, "...
0
votes
3answers
140 views

How to filter ranges of IP addresses?

How could I filter a single IP address or a range of IP addresses to prevent them from accessing my computer? Examples: Block 31.13.76.102 Block from 216.58.192.0 to 216.58.223.255 Block from 173....
4
votes
2answers
6k views

How can I resolve hostname to ip using different DNS servers?

For my task, I need to block some hostnames, but since some websites may reply with different IP addresses to different DNS queries (for example, Google DNS and any other DNS server), I'd like to ...
0
votes
1answer
1k views

Script to print the interfaces and IP addresses [duplicate]

I would like to run a script to get all network interfaces and their IP addresses of a standalone PC, such that the command line can print out, for example: <interface1> <IP address> ...
0
votes
1answer
137 views

Single line command for logging IP

Is there a way to write something (in this case an external IP) with date & time and append it to a file? Is it possible to do it in one line? I can do this: curl ipinfo.io/ip >> ip.log ...
4
votes
3answers
7k views

How do I get my IP address from the command line? [duplicate]

I'm using Debian 8. How do I get my external IP address from a command line? I thought the below command would do the job ... myuser@myserver:~ $ /sbin/ifconfig $1 | grep "inet\|inet6" | awk -F' ' '...
0
votes
3answers
120 views

bash scripts fail while trying to use list

I found a bash script to validate ip addresses here: http://www.linuxjournal.com/content/validating-ip-address-bash-script When i try to run it I get the error : test.sh: line 22: syntax error: ...
1
vote
2answers
3k views

How to get different IPs on cloned machines with VirtualBox?

I created a virtual machine with a CLI iso of Lubuntu 16.04 with VirtualBox. Now I need several machines with the same characteristics (but different IPs, in order to test a C network application I ...
1
vote
1answer
317 views

busybox regular expression for group of IP addresses

I need to be able to validate a group of IP addresses that will appear in a file that looks like this: IP_SUBNETS=['10.1.111.0','10.2.111.0','10.2.123.0'] I'd like to write a regular expression ...
2
votes
0answers
43 views

Setting the same host address on different networks

I have a set of devices to be deployed on different local networks which have to be configured without DHCP. Every network has the same subnet mask and the gateway and the device in every network ...
6
votes
1answer
13k views

How to filter by host name in Wireshark?

Display filter in form ip.src_host eq my.host.name.com yields no matching packets, but there is traffic to and from this host. DNS name is resolved successfully, and filters using ip addresses like ip....
2
votes
1answer
45 views

How do I set up a Linux system with multiple IP6 addresses? [closed]

I'm interested in setting up a Linux machine with several IP6 addresses. How do I do this? Also, is there a theoretical and/or practical limitation on how many addresses a machine can have?
1
vote
1answer
989 views

Network Interface VLAN static addressing

I have been trying to configure the static IP addresses with Ubuntu 16.04 Dabian version. The network as follows in the graph I have been failing to ICMP (ping echoing) between the Client and the ...
1
vote
0answers
28 views

IP aliasing preference

all. I have create a virtual interface: auto eth0 iface eth0 inet dhcp auto eth0:1 iface eth0:1 inet static address 192.168.2.40 netmask 255.255.255.0 I can see with ipconfig the ...
2
votes
1answer
1k views

Static IP address on beaglebone

I am connecting a USB to Ethernet adapter to the USB2.0 port, this adapter is then connected to the ethernet cable and to the network switch. Now this shows up as the eth1 port on the ifconfig and I ...
-1
votes
1answer
731 views

OpenWRT via static ethernet address

I can't get my Onion Omega2, which runs OpenWRT, to connect to my ethernet via a static IP address and two DNS addresses. To connect my PC, I have to set the following: IP address: 82.149.xxx.xxx ...
1
vote
1answer
521 views

Chat with friend using netcat

I have tried using nc to chat and transfer files over my local network. However, I am having trouble doing it over internet (with my friend). While doing it locally, i would be using ifconfig to view ...
0
votes
1answer
489 views

iproute2 get inet for interface

Things I tried: scope inet gives Error: argument "inet" is wrong: invalid "scope" to inet gives Error: ??? prefix is expected rather than "inet". (flag) inet gives Error: either "dev" is duplicate, ...
0
votes
1answer
121 views

Monitor the number of not leased yet IP address in Window DHCP Server with Nagios in Linux

Sometimes, the IP address are used up and they don't change their state letting the server to allocate all address. How to use Nagios to monitor the number of not leased yet ip address in pool in ...
1
vote
3answers
147 views

deleting alias from file using sed

I created a ping sweep program that saves gotten IP to a file called hosts. Then, I wanted to delete my own IP address from the file without knowing what my IP address is, so I tried doing the ...
1
vote
1answer
142 views

Apache httpd on CentOS doesn't mask IP to domain

I was following this tutorial to the letter and when I entered my domain name in the browser, I get my page. Except the fact that the browser never masks the domain to www.example.com, instead it ...
0
votes
1answer
4k views

Sed: Replace ANY IP address with 127.0.0.1 [duplicate]

I'm trying to do an in-place replacement of an IP address in a file using sed. I know that . is a wildcard, so I've tried doing the following: sed -i -e 's/.\..\..\..\./127.0.0.1/g' /.../myfile.txt ...
4
votes
4answers
2k views

How to remove lines containing IP address? [closed]

I have a file like: http://example.mx https://test.com http://4.3.4.4 http://dev.somedomain.com http://1.3.4.2 I want to get rid of the ones with IPs so that the result should be: http://example.mx ...
3
votes
1answer
54 views

Where are my settings that say use DHCP rather than Static?

I am running Lubuntu 16.10 on a VM, its using DHCP (because that's the default at installation, and i did not do anything special to change it). My host OS is Win10 connected via Wi-Fi / wireless. Dr ...
3
votes
1answer
258 views

What is the symbolic variable for “public address”?

Please forgive my ignorance for asking this question. I'm having a heck of a time discovering how to specify "public address" instead of hard coding and IP address. According to the Apache manual ...