the IP protocol and IP addresses

learn more… | top users | synonyms

2
votes
3answers
132 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. ...
2
votes
1answer
36 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
137 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
16 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 ...
3
votes
1answer
551 views

Use two NICs for different subnets

In my office I have use a system with two network cards. I want to use both at same time. I have four subnets in my LAN. I want to route two subnets (192.168.2.0 and 192.168.4.0) through eth0 and ...
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
27 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
0answers
179 views

noip2 can't update my IP address correctly after computer reboot

I want to set up a server with using no-ip DDNS service. I follow this guide, but it can't update my IP address after reboot the following message is command # noip2 -S 1 noip2 process active. ...
2
votes
1answer
34k views

Unable to ping gateway & other Linux boxes on same network

I'm somewhat new to Linux, but I'm trying to network a few Linux machines. I can't seem to be able ping the gateway or the other Linux machines. My scenario: I have a few Linux boxes set up on a ...
0
votes
2answers
36 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
16 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
41 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
13 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
17 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 ...
1
vote
1answer
107 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 ...
5
votes
2answers
460 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 ...
0
votes
0answers
35 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 ...
2
votes
1answer
47 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
24 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
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 ...
1
vote
2answers
58 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
33 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, ...
1
vote
1answer
72 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
1answer
96 views

Connect to offline network on second interface

I have an offline router I'm using to connect a remote wireless device. The router cannot be configured as an access point, or I would just use it to extend the range of my existing WLAN and use the ...
0
votes
1answer
157 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
29 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
0answers
55 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 ...
2
votes
1answer
329 views

Is Traffic control inside namespace on ports created by OpenvSwitch supported?

I am trying to limit the bandwidth of an interface inside a namespace using tc without much success. Seems it's not supported according to ...
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
89 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
103 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, ...
4
votes
2answers
20k views

Set Static IP in CentOS 6.4?

Most guides seem to revolve around modifying ifcfg-eth0, which doesn't exist on my system.. [root@Azaz07]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 [root@Azaz07]# ls ...
0
votes
4answers
275 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 ...
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
1answer
221 views

ORACLE Weblogic IPV6 with oracle database on IPV4

I have one weblogic application currently working on IPv4 and jdbc connection to database is on IPv4. Since my machine has an additional Ethernet port that support IPv6, I am thinking to add an ...
19
votes
3answers
5k views

IP to Country console command

Is there a console command that takes an IP address as an input and shows its geographical information like city, country, ISP, etc.?
4
votes
6answers
992 views

Find my computer on a LAN network

Let's say that I have a computer plugged in to a local network using a dhcp connection, so it will get a different IP every time. Is there a way to find this computer (so the IP) from a different ...
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 ...
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 ...
0
votes
2answers
80 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!
1
vote
2answers
247 views

ifconfig command showing internal ip address

I'm using centOS 6.3 on virtualbox as guest OS on Win 7 host. My problem is when I use ifconfig command in terminal, I'm being thrown internal IP address(10.x.x.x). However, when I googled "my IP ...
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 ...
19
votes
3answers
37k views

show gateway IP address when performing ifconfig command

Currently, when using the ifconfig command, the following IP addresses are shown: own IP, broadcast and mask. Is there a way to show the related gateway IP address as well (on the same screen with ...
9
votes
1answer
3k views

Change remote host IP address without losing control (Linux)

How can I change a remote host primary IP address without getting disconnected at all (without being in a "no IP addr" state). The matter is poorly discussed on Internet (according to my research). ...
1
vote
2answers
64 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
76 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
211 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 ...