the IP protocol and IP addresses

learn more… | top users | synonyms

4
votes
5answers
69 views

terminal command | grep IP

ifconfig -a | grep 10.16 inet 10.16.x.xx netmask 0xffffff00 broadcast 10.16.x.xxx inet 10.16.x.xx netmask 0xffffff80 broadcast 10.16.x.xxx I have replaced the numbers with x My aim is to ...
0
votes
1answer
2k views

scp ssh: connect to host 10.0.0.109 port 22: No route to host lost connection

I use SCP command on Debian Linux to transfer a file to my colleague via LAN. But I encounter the problem: $ scp filename.file username@10.0.0.109:/tmp ssh: connect to host 10.0.0.109 port 22: No ...
0
votes
2answers
23 views

if a HTTP request is like HTTP://IP/path with a http proxy, will it go to Internet or Ethernet [on hold]

AWS enterprise VPC http proxy exists Without the HTTP proxy, curl http://169.254.169.254/lastest/meta-data successful, but disconnect to the Internet. This IP address is not Category A, B, C. Use ...
0
votes
1answer
22 views

Why do I have more packets than bytes? [on hold]

I don't know how to explain this. mind blown. ip -s link 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether RE:DA:...
0
votes
1answer
43 views

Is there a way to figure out a modem/router web IP address?

I bought a Modem/Router d-link dsl-2750u couple of years back. I changed the web IP Address and now I don't remember what IP Address did I put in its place. Is there a way to figure out at what IP ...
3
votes
0answers
23 views

“ip route get” shows wrong source IP address

I have a machine with an interface which has two IP addresses: inet 192.168.1.15/32 scope global eth0 inet 10.10.118.45/24 brd 10.10.118.255 scope global eth0:hosts4 If I execute for example ip -s ...
1
vote
3answers
47 views

Dnsmasq points nonexistent subdomains point to local IP

There's a specific remote subdomain mymachine.home.com whose the IP changes on all the time that I need to update DNSMasq to have it resolve correctly. But I tested pinging xxxxxx.home.com which ...
1
vote
1answer
40 views

List *all* IP routes to a destination in the Linux routing table

ip route get 2607:f8b0:4005:804::200e will show me the best (longest prefix) route to google.com, but it does not show all routes that can take me there. Right now I am using ip -6 route show | grep ...
5
votes
4answers
482 views

How to check if any IP address is present in a file using shell scripting?

I have a script that generates some output. I want to check that output for any IP address like 159.143.23.12 134.12.178.131 124.143.12.132 if (IPs are found in <file>) then // bunch of ...
0
votes
2answers
31 views

How can I resolve an IP address to a hostname in Arch Linux? [duplicate]

What is the most concise way to resolve a hostname to a local IP address in Arch Linux?
1
vote
2answers
237 views

SSH: shell opened in IP namespace

I'm trying to force users logging in through SSH to have a shell inside IP namespace. I've tried replacing the shell in /etc/passwd with something like ip netns exec sshns /bin/bash but it didn't ...
0
votes
1answer
153 views

Updating IP for port

In below unix output of netstat -pln, can the IP address 127.0.1.1 be changed to 0.0.0.0 for port 7077 via a unix command or is that determined by the process that is running on port 7077? netstat -...
2
votes
1answer
2k views

Static IP address shifting to 192.168.1.251

I have a system with a static IP address of 192.168.1.150. I configured /etc/network/interfaces manually (i.e. without using NetworkManager.) It is a web server hosting three sites. I am having ...
0
votes
1answer
31 views

view IPs from apache access.log for date period

I have seen someone use this command -- and it works where it pulls back all the IPS in a list/group: cat access.* | awk '{ print $1 }' | sort | uniq -c | sort -n However, I want to choose the past ...
1
vote
1answer
12 views

OpenWrt: do manually configured ip assignments survive a reboot?

As far as I know if I want to make an ip address static, I have to put it into /etc/ethers file. But does it survive a reboot 100% (stored in persistent storage)? I don't want to mess with it and ...
1
vote
1answer
229 views

Need to grab IP of visitors from the Apache logs

I want to store the IP of the visitors to my website, and I want to use PHP. Should I use cron for it or how will be the visitors' IP will be automatically stored?
-1
votes
2answers
33 views

check ip address of a linux server to upload the file [duplicate]

I am working on a linux server remotely. Are there any command that can allow me to figure out the IP address of this linux server, so that I can ftp some files to this server.
3
votes
2answers
1k views

Keep losing IP with dhcpcd

I have an Arch Linux install in a VirtualBox VM, and as I'm working all of a sudden, it will lose its dynamic IP address. When this happens, if I check on the status of the dhcpcd service, it says ...
2
votes
2answers
136 views

Find IP owners from apache log file

I have the top 10 IPs making the most requests and the number of requests made from Apache log file example. I used this bash command to handle a request: cat access_log|cut -d' ' -f1|uniq -c|sort -r|...
1
vote
0answers
25 views

Are source IPs included in Linux's Ephemeral Port Uniqueness?

From http://aleccolocco.blogspot.com/2008/11/ephemeral-ports-problem-and-solution.html (2008) Linux shares the assigned list of ephemeral ports across all local IPs for unconnected sockets. ...
0
votes
0answers
43 views

Is IP over USB 3.1 type-C between two Linux hosts at 10Gbps possible?

I've been unable to determine on my own if I can do this. I'm wondering if it is possible to connect two Linux systems with USB 3.1 with type-C connectors to setup a point to point network (IP or ...
0
votes
1answer
25 views

prompt for network setup during kickstart installation centos7

I am trying to set the ip manually during kickstart installation using centos 7. During the installation it has to prompt for the network setup. I tried using the below configuration : network --...
-1
votes
4answers
85 views

Extracting IPs from a web list

I am trying to extract IPs from a huge web generated list which contains a mix of text, IPv4 & IPv6 IPs, newlines, IP ranges etc. Below is a snippet from the list: ; Spamhaus DROP List 2016/07/...
2
votes
2answers
78 views

i don't get ipv6. Why cannot I ping ipv6.google.com?

I am trying to send ipv6 pings from a computer in a LAN. Unfortunately it does not work. It seems that I have an ipv6 address in the LAN, but somehow the ping -Ieth1 ipv6.google.com just prints a ...
2
votes
2answers
2k views

Set a local static IP address on a network interface and have it permanent even after restart

I have openSUSE 13.2. My laptop connects to the internet through a WiFi network but I have an embedded device which I need to connect to it through the ethernet interface. It has an IP address of 192....
2
votes
2answers
216 views

How can I change the IP and gateway addresses permanently?

I recently installed Linux Ubuntu 14.04 to my computer. To enable internet connection I needed to change my IP and Gateway address. I did the following as a root user # ifconfig eth0 "my ip address ...
0
votes
1answer
30 views

change IP address

I tried to change my private IP address with the following commands: sudo ifconfig wlp3s0 down sudo ifconfig wlp3s0 192.168.1.12 sudo ifconfig wlp3s0 up They just work fine becouse the IP changes ...
0
votes
2answers
52 views

Why can't I configure a static IP on my CentOS7 system?

my /etc/sysconfig/network-scripts/ifcfg-eth0 is like this: And I have issued the command "systemctl restart network". But when I issued "ifconfig", it shows that the ip on eth0 is 192.168.1.117,but ...
0
votes
0answers
12 views

Configure vpn and non-vpn proxy or how to let application bypass a vpn

I have icedove configured with a gmail account amongst others. However everytime I use or change a vpn, google complains and icedove can't receive the gmail emails. The process to fix this is rather ...
1
vote
2answers
87 views

Can not ping other nodes in private network

I am setting up a small cluster (four nodes running ubuntu14) and I have this configuration: # Internet and lab - 192.168.10.0/24 iface eth0 inet dhcp dns-nameservers 192.168.100.1 # privte network ...
0
votes
0answers
55 views

tcpdump: Couldn't find user 'pcap'

I am using RHEL 5.4, tcpdump is already installed also there is a user pcap but I am getting following message. [root@localhost ~]# tcpdump tcpdump: Couldn't find user 'pcap' [root@localhost ~]# ...
1
vote
1answer
43 views

NIC cards in a LINUX server

I have below doubts, Can someone clarify, please? Four interfaces(say eth1, eth2,eth3,eth4) are configured with different subnet IP addresses in my LINUX server, so does that mean are there four ...
1
vote
1answer
3k views

Trouble switching from DHCP to a static IP on Kali Linux

When I installed Kali Linux 64bit, I forgot to set up a static IP address, and now DHCP determines my address with my router. I have already modified /etc/hosts and /etc/network/interfaces to declare ...
1
vote
2answers
176 views

move IP address from one interface to another without interruption

When I need to move IP address from one interface to another, I have usually done simply for example ip addr flush dev eth0; ip addr add 10.10.10.181/26 dev eth0.35 over an SSH session. So far I have ...
6
votes
2answers
307 views

Looking for elegant iproute2 solution for host w/ 2 interfaces on 2 networks and 3 gateways

I've got a Linux webserver with 192.168.0.2/24 assigned to eth0 and 172.16.0.2/24 assigned to eth1. I must not change this. Here's the routing so far: 172.16.0.0/24 dev eth1 proto kernel scope link ...
146
votes
21answers
142k views

How can I get my external IP address in a shell script?

I need to find my external IP address from a shell script. At the moment I use this function: myip () { lwp-request -o text checkip.dyndns.org | awk '{ print $NF }' } But it depends on perl-...
1
vote
1answer
28 views

Use same IP for 2 Ethernet Adapters in different Physical networks

We have a Linux Panel with 2 Network Interfaces. On this Panel runs a software wich needs to comunicate to our devices in our network, and needs to be accessible from the customers network. One ...
2
votes
3answers
247 views

Append data of multiple files to new file separated by a line

I have more than a hundred firewall rules for many different customers in discrete files in a folder. Suppose the filenames are: 1.wawa.com_firewall_rule 2.newa.com_firewall_rule Each file ...
3
votes
1answer
35 views

Can I get just the list of network interfaces from ip?

I am looking to retrieve a list of network interfaces. Currently I am returning the results of ip addr and then doing some regex/string searching from output like this: 1: lo: <LOOPBACK,UP,...
3
votes
0answers
17 views

What is the default behaviour of IPv4LL on Linuxsystems?

I'm looking for a good source and confirmation about Dynamic Configuration of IPv4 Link-Local Addresses. The rfc Dynamic Configuration of IPv4 Link-Local Addresses didn't really help answer my ...
1
vote
0answers
18 views

If it possible to permanently set a loose source routing option to all ip packages to a specific ip address?

First of all, the loose source routing is a kind of ip options which requires a selected hop to route this package. I wonder if it possible to set loose source routing option on specific ip packages(...
1
vote
0answers
20 views

Why I'm able to configure IP address on bridged interface?

Consider following bridge setup: brctl addbr mybridge brctl addif mybridge eth0 I see a lot of people failing their setup on configuring the IP on eth0 rather than the mybridge interface, so I was ...
1
vote
0answers
9 views

Report Multiple IPs to tracker rtorrent

There is an option in rtorrent to report an IP to the tracker. I have a seeding rtorrent box connected to 4 WAN connections. I have configured port forwarding on all 4 wan connections and also made ...
1
vote
0answers
31 views

Does anyone use Netem anymore? Alternatives?

When simulating an IP network you can use Linux built-in network emulator Netem. Together with bridge-utils of course. Simulating packet drop, duplicate packets, jitter et cetera. Is anyone using ...
4
votes
2answers
79 views

Send my IP to remote server every time booting

I want to send my computer's IP automatically every time it boots. I edit /etc/rc.local sleep 10 ifconfig > /tmp/myip scp /tmp/myip <server> exit 0 I tried, and there is no inet addr, ...
2
votes
1answer
54 views

Unprivileged ping6 not working

I am trying to get my CentOS v7 server to run IPv6. Root works, it can ping using "ping6 ipv6.google.com", and ifconfig looks great; I see the lines: eth0: flags=4163<UP,BROADCAST,RUNNING,...
3
votes
1answer
380 views

vsftpd conditional pasv_address (internal ip vs. external ip)

I have a vsftpd server setup that i'd like to be able to access with passive transfer from an external ip (use of my domain name) and also from my local network (192.168.1.x). Currently I have /etc/...
1
vote
1answer
37 views

tcp tunnel inside local network with iptables and bridge involved

I want to configure outside and inside forwarding rules to behave the same way, and simplified problem that i have with 'inside part' is like this: if i have compA - eth0 192.168.0.1 compB - br0 ...
0
votes
1answer
342 views

Apache server in raspberry PI not visible from outside( public IP)

I have made a fresh install of Arch Linux ARM into a Raspberry PI and I mounted there a LAMP, all fresh. I have another Arch(x86) in my laptop with Apache also there, and as far as I know, two web ...
2
votes
0answers
50 views

DHCP to assign different addresses for multiple interfaces and subnets

First of all, I'd like to point out that I've read any related questions asked here. So, on my desktop computer (running Ubuntu) I have three NICs - eth0, eth2, eth3. I have links connecting these ...