the IP protocol and IP addresses

learn more… | top users | synonyms

2
votes
3answers
191 views

Arithmetic on variable containing ip address

I've got variable network="198.168.1.x" # for ex. 198.168.1.254 I want to create new variables: next_serv="198.168.1.(x-1)" # for ex. 198.168.1.253 max_host="198.168.1.(x-2)" # for ex. 198.168....
2
votes
1answer
103 views

Grepping and sedding IP from ip addr show

I'm trying to get just the local IP of my Arch VM. I've managed to get just the line containing what I want with grep, but I also want to trim it down with sed. inet <<192.168.0.16>>/24 ...
1
vote
1answer
167 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?
0
votes
0answers
21 views

How do you interpret these routes? or more or more specifically, what is scope link?

I don't understand completely what these routes mean: [root@samplehost ~]# ip route show ...#default route here 10.68.172.0/24 dev eno33557248 proto kernel scope link src 10.68.172.20 169.254.0.0/...
0
votes
2answers
31 views

Which ip is used when two net cards all can be used?

There are two net cards in used status in my pc. ifconfig eth0 Link encap:Ethernet HWaddr e0:3f:49:57:4b:d1 inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 ...
0
votes
1answer
48 views

Adding route entries to the routing table

I have a device that has a default IP address of 10.1.1.102 with netmask 255.255.255.0. Rather than changing it, I tried to add a routing entry to my routing table using route add. sudo route add -...
0
votes
2answers
58 views

Show netmask using ip tool

I would like to know how to get the mask of a network interface. With ifconfig it is very simple, but I have to use the ip tool, and ip addr show is not showing me what I want. Here is an example ...
1
vote
1answer
19 views

Translate from IPv4 to IPv6 and backwards

I have the following situation: Two computers, one running Debian, the other one Ubuntu. The first one is connected to the internet via an interface which somehow only allows IPv6-connections, and ...
0
votes
1answer
70 views

Access from unknown IP tracks to non-existent website

Just had a warning that my Gmail's been accessed from the following IP: 151.230.107.114 which routes to something called htc_frisbee.com , which doesn't appear to be a real website. Could this just be ...
0
votes
0answers
20 views

ip-tunnel: “Tunneling with a fixed ttl always makes pmtu discovery” - why?

The manual page for ip-tunnel says: ...fixed ttl is incompatible with [no PMTU discovery] option: tunneling with a fixed ttl always makes pmtu discovery. What is the reason for this? I do not see ...
1
vote
0answers
30 views

How to force dhcpcd to forget an old static address after editing dhcpcd.conf?

How can I force dhcpcd to forget a previously configured static address after setting a new one in /etc/dhcpcd.conf? I changed: static ip_address=192.168.1.1/24 to static ip_address=192.168.1.2/...
1
vote
1answer
639 views

Virtual Box guest on different subnet than host

I currently have my Debian VM using NAT and it is on subnet 10.0.2.x where my host is on 192.168.0.x how can I get my guest on the same subnet as my host? Host: Ethernet adapter VirtualBox Host-...
1
vote
1answer
649 views

Zookeeper DNS name problems with leader elections when migrating from Windows to Debian

I am migrating a kafka/zookeeper cluster on Windows to Debian wheezy. Java version: 1.7.0_80 Debian version: 7.9 Zookeeper version: 3.3.5+dfsg1-2 0 Kafka version: 2.10-0.8.2.1 If I configure ...
0
votes
0answers
72 views

linux to linux IP MASQUERADING failed (can't ping ip server)

I'm new in linux, i'm trying to IP MASQ. So the diagram is like linux A is connected to HUB and Internet, and linux B is connected only to HUB. In linux A i have eth1 (10.10.10.5) and eth0 (192.168.1....
2
votes
1answer
71 views

How do you add a virtual network IP address from the kernel command-line?

I would like to add a virtual IP address, something you normal do with: ifconfig eth0:0 192.168.1.1 (or via /etc/network/interfaces). But, I'd like to do it from the kernel command-line, which has ...
1
vote
0answers
31 views

Any potential problems when configure multiple NIC for isolated networks to have same subnet?

System I have an ARM Linux (kernel 3.17) for field use and it has multiple NIC, say eth0, eth1, and wlan0. On the left side, I need to use a PC0 to configure the ARM Linux so that it can change it's ...
1
vote
1answer
175 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 ...
1
vote
2answers
88 views

Why are `netmask`, `network`, `gateway` and `dns-nameservers` needed for setting up a static IP?

When setting up a static IP, you need to change /etc/network/interfaces to: auto eth0 iface eth0 inet static address 10.253.0.50 netmask 255.255.255.0 network 10.253.0.0 gateway 10.253.0....
0
votes
1answer
448 views

On switching from NAT to bridge, have network issues in kali 2.0

Found few similar questions but none of them are answered so re-asking a similar question. I have a vmware 12, have kali 2.0 latest installed. First I try on NAT it works great but when i switch to ...
0
votes
0answers
55 views

My wlan1 shows 2 different ip-addresses

I have a raspberry pi which I'd like to use as a router and access point. I have a working eth0 connection and a working wlan0 connection. However, something is wrong with my wlan1. I noticed the ...
1
vote
1answer
119 views

Get IP Address of Main Interface in Ubuntu and Mac

I need to write a script that gets the IP address of the interface that is used for unknown routes (e.g. where 0.0.0.0/0 is routed through) That script should work on Ubuntu, Debian, Arch and Mac OS ...
1
vote
2answers
272 views

What's the use for the special ipv6 addresses in /etc/hosts?

I have the following block in my /etc/hosts: # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::...
0
votes
0answers
10 views

Fedora17 ip forwarding issue

I am trying to setup a hostapd in Fedora17. I have configured both hostapd and dhcpd .. Now, the client is also getting IP address, but i am not able to configure iptables correctly to enable NAT and ...
0
votes
2answers
395 views

Check whether an IP belongs to a specific range

I have a log file that lists whitelisted IP ranges in this manner: "217.29.0.0-217.29.255.255", "204.12.0.0-204.12.255.255", "198.54.223.0-198.54.223.255", I am also working on a bash script which, ...
1
vote
2answers
180 views

How to count how many ip in bash?

Does anybody know how to count how many ip in bash? For example: Command: root@ubuntu:~$ dig www.google.com A +short | grep -oE "\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?\.){3}(25[0-5]|2[0-4][0-9]|[01]...
1
vote
4answers
549 views

Device vs network interface IP addresses

I'm trying to understand the relationship between: A "networked" Linux device; and The physical NIC card located on that device (giving it the ability to be "networked"); and Various Ethernet/Wi-fi ...
0
votes
0answers
14 views

Connecting to a LAN Device from Different Interfaces on Different Networks

Is there a way to connect to a LAN Device when many different network interfaces are connected to different networks? I find that it can differentiate when the IP address is within only one of the ...
3
votes
1answer
233 views

add route in Linux if sub-net, where gateway is situated, is not configured

I have a PC which has 192.168.1.1/24 configured to eth0 interface. Now if I try to add routes via 10.10.10.254, the ip utility reports that No such process: root@PC:~# ip neigh add 10.10.10.254 ...
3
votes
3answers
371 views

Unable to reconnect 3g connection after new IP was given

I use Debian Jessie 8.2 and I am using a 3G connection using this modem. The 3G connection works fine, except after 24 hours the connection drops and I cannot reconnect. If I reboot the computer, ...
0
votes
2answers
142 views

How can I change Ubuntu server IP Address to the web address?

How can I change Ubuntu server IP Address to the web address? For example, the address that I need to access on the browser is 192.168.x.xxx. How can I change to dev.robi.local? Thanks!
3
votes
1answer
38 views

How can I find my client's linux box on the internet automatically?

I'm looking for a way to have a client's machine "phone home" periodically so that I can easily do a ssh login if necessary. I was thinking a simple script that grabs the public IP address and posts ...
2
votes
1answer
43 views

mechanism of IP alias

I am a Linux admin beginner and knew that Linux can do so called ip alias today for the first time. My question: How can one NIC have two IPs at the same time? IP addresses must be identified by MAC ...
3
votes
2answers
256 views

IPv4 link-local address in Linux

I remember that in Windows XP, when DHCP client did not receive an IPv4 address from DHCP server, the host assigned itself an IPv4 link-local address from 169.254.0.0/16. However, I have never seen ...
1
vote
2answers
86 views

Meaning of address netmask without route to subnet?

My understanding is that the netmask of the interface tells what subnet the interface belongs to. Meaning of this information is that the routing system knows that packets to this subnet should be ...
-2
votes
2answers
83 views

my linux pc not pingable using hostname

From a remote machine I am able to ping my computer by its IP address, but not by its hostname. How can I make it accessible by its hostname as well?
1
vote
1answer
225 views

How to add static route in Virtual Guest to reach Host network?

I have a Linux mint virtual machine running with public IP as 203.x.x.x with bridge mode Ethernet adapter whereas my physical machine IP Address is 145.17.x.x subnet. To access my physical PC's ...
2
votes
1answer
366 views

IP address assigned when using 3G USB modem

If I use a 3G USB modem with a SIM card on my linux machine, do I get the IP address assigned by the carrier just as my phone when it uses the same SIM card, or do I get a different IP address (as it ...
0
votes
0answers
252 views

Can't find connected devices on wifi network

I've been having some issues with finding my devices on the network.. Ettercap & nmap and everything else I have tried does not find a host that is connected to my gateway? I have three devices; ...
0
votes
0answers
59 views

server1 ssh's to server2 but server2 sees server1 by it's private ip due to both servers being on the same firm/network

I ssh into server1 via it's public IP from server2. I then ask server1 what my IP is. i.e. server2's IP. It shows me server2's private IP. I want it to show me server2's public IP. If server2 was ...
1
vote
1answer
74 views

Networking fundamentals: what IP is assigned a NIC if there is no successful DHCP negotiation?

On Windows computers, when there is no DHCP server found on the network interface, it gets assigned some IP address like: 169.254.x.x So it is supposed you can find it on the network using tools ...
1
vote
0answers
100 views

conntrack -E - traffic counter reporting

I'm currently in the process of writing small solution which would continuously receive output from conntrack -E command and along with some other stats, it would count/monitor traffic. The only ...
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 ...
1
vote
2answers
34 views

How to use routing to use the next available inetface

My system has 2 interfaces (eth0, eth1). I open a socket and bind it with an ip attached to eth0, now I want the OS to route the packets to another ip (which attached to eth1 but i'm not sure it's ...
0
votes
1answer
622 views

Arch-Linux after system-update no internet connection but connection lan

Yesterday I updated my Arch Linux after 2 Months with sudo pacman -Syu and after the reboot I don't get any connection with the Internet neither from Browser nor with Skype, etc. When I try to ping ...
2
votes
1answer
492 views

Local port is not accessible with public IP address

I have a linux server which has public IP and Private IP. So, when ever I login with public IP, the terminal directly shows private IP. example: $ ssh root@55.27.XX.XX root's password: root@10.1....
1
vote
1answer
27 views

installed application keeps open port

I installed an application (a text editor) and it keeps a connection alive. I blocked the IP with iptables, but the port stays open. netstat shows: tcp 0 0 127.0.0.1:<port> 0.0.0.0:* ...
2
votes
1answer
140 views

If I use an SSH tunnel to forward a remote port to a local one, and my IP address changes, will that tunnel still work?

Simple - trying to use my personal computer as a server, by forwarding a public static IP address's port to mine, but I'm worried about Comcast pulling out the rug from underneath my feet and changing ...
1
vote
0answers
68 views

Can two USB RNDIS gadgets with the same IP connect to one computer's VNC servers?

I have two android gadgets set to USB tether mode, connecting to one computer. I'd like to have one gadget connect to VNC on port 5900 and the other on port 5902. When they're both connected, the ...
2
votes
1answer
112 views

what does none in “tun0@none” stand for?

In the output of ip a I just got the lines: 4: tun0@NONE: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100 What does the NONE in there ...
3
votes
2answers
873 views

Bash: Permission denied when trying to echo data directly to Network

I am trying to send characters directly to the network stack as explained in this thread. Even when the process work OK under CygWin (Windows), the same lines do fail on Ubuntu v14.04: luis@...