the IP protocol and IP addresses

learn more… | top users | synonyms

1
vote
2answers
60 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 ...
0
votes
1answer
160 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
32 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
70 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
94 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 ...
0
votes
0answers
8 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
106 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
175 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 ...
0
votes
4answers
281 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
12 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
82 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
213 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
82 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
34 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
36 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
122 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
65 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
65 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
78 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
215 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
195 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
47 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
65 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
58 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
0answers
945 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
30 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
282 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
265 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: ...
1
vote
1answer
25 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
90 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
46 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
100 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
490 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: ...
0
votes
1answer
210 views

Routing tables with two network interfaces

When I try to access the internet with my raspberry pi via ethernet, it works, but when I do ifdown eth0 and try to ping any server outside my home network, it tells me connect: Network is ...
0
votes
1answer
107 views

Problems setting up Ubuntu Machine as a router

I have been at this for over 24 hours, here is what I have so far. -I have an Ubuntu Server running version 14.04.2.amd64, called SV-01 -SV-01 has two NICs. ETH1 is for the external network (goes to ...
2
votes
3answers
65 views

Is there a command to deny an IP

Looking at the access log I found excessive access from an IP address. I then edit either .htaccess or .conf files to deny access from that IP. I wonder if there is a command or a oneliner that can do ...
1
vote
2answers
136 views

`ip addr` in one-line per interface

I would like to print specific information about network configuration for different interfaces over all the servers I manage: the interface name the interface ipv4 address the interface hardware ...
0
votes
1answer
25 views

What things should be kept in mind while assigning static IP addresses to Virtual Machines

I always face problems pinging the base machine whenever I assign statics IPs to VMs. I also don't understand what gateway IP should I give,to connect to the internet or just to be able ping the Base ...
0
votes
0answers
79 views

Packet loss when turning off net.ipv4.conf.all.accept_redirects

I applied this rule: /sbin/sysctl -w net.ipv4.conf.all.accept_redirects=0 /sbin/sysctl -w net.ipv4.conf.default.accept_redirects=0 and in /etc/sysctl.conf I added these lines ...
0
votes
3answers
56 views

Can't identify IP addresses

I got several interesting :) e-mails from IP addresses where I can't identify country and owner (internet provider), it's by example 10.180.221.97 10.220.113.130 10.52.135.39 I tried several IP ...
0
votes
0answers
66 views

How to communicate with modem over Ethernet?

I have an old modem I was considering repurposing. The first step I thought to do was connect my computer with the modem and try to map the open ports. I found that, upon connecting the device, that ...
5
votes
2answers
475 views

How safe is it to change the Linux Ephemeral Port range

I see the following ephemeral port range on my Linux box. sysctl net.ipv4.ip_local_port_range net.ipv4.ip_local_port_range = 32768 61000 I want to extend the port range to start from around ...
1
vote
1answer
64 views

Forwarding traffic coming from SSH tunnel to VPN tunnel on a Linux device

I want to route network traffic that comes from one end of an ssh tunnel (constructed by ssh dynamic port-forwarding) into one end of a VPN tunnel. Given four Linux devices A, B, C and D, for ...
0
votes
2answers
382 views

Tell socat to listen to connections from a single IP address

socat TCP-LISTEN:22,fork TCP:192.168.0.15:5900 How can I tell to socat, that port 22 is only trusted from the remote IP address 8.8.8.8, and it should not accept connections from other IP addresses? ...
1
vote
1answer
49 views

Delay after a MAC change

I am writing a script that will change my ethernet MAC address on a local network. It will work as follows: Initially eth0 will be brought down MAC will be changed using the ifconfig utility eth0 ...
0
votes
1answer
34 views

Letting a device access the Internet through an Ethernet port via a laptop [duplicate]

I have Internet access to my laptop, over Wi-Fi. I have connected a device with an Ethernet port (with an Ethernet cable from my laptop to the device), and set up a local area network between the two, ...
0
votes
0answers
44 views

Script to remove IPs or network ranges from an IP space

As per the tittle, I have a tool that accepts both lists of IPs or network ranges (CIDR format) to perform a task. Unfortunately, it does not support exclusions of IPs or ranges from the IP space ...
1
vote
0answers
473 views

Hostname resolves to wrong IP address

When I ping the hostname of my phone from a RaspberryPi (with Raspbian installed), it resolves to the wrong IP address: pi@raspberrypi ~ $ ping isimon.fritz.box PING isimon.fritz.box ...
0
votes
1answer
145 views

Gentoo: how do I get an IP assigned to the network interface?

I'm noob. I'm trying to install Gentoo from the LiveCD (just for fun as well as for getting better understanding what's going on under the Linux's hood) on my notebook. I've faced an issue which is ...
0
votes
0answers
393 views

VirtualBox network interface with custom CIDR and internet access

I have an OpenStack setup running on VirtualBox. The host OS is Ubuntu, and the guest OSes are all Ubuntu. I use 3 VirtualBox VMs to setup and install OpenStack. My OpenStack setup further spawns ...