the IP protocol and IP addresses

learn more… | top users | synonyms

0
votes
3answers
208 views

Why do two Ubuntu systems in the same network behave differently in DNS resolution?

I have two systems, both running Ubuntu 12.04, which are within the same network (connected by hubs without routing logic). Both systems are configured quite similar, but not identical. In particular, ...
1
vote
3answers
895 views

Programmatically extract private IP address(es)

I'm looking for an easy way to programmatically extract the private IPv4 address(es) of a computer. Something similar to this question, but restricted to private IPs. As an example, I can extract ...
3
votes
2answers
472 views

Converting Webserver Logged IP Addresses to DNS

I'm trying to use a bash script to process a webserver log file and replace any IP's it finds with their corresponding DNS hostnames. An example entry of a single line from the log file is: ...
2
votes
4answers
9k views

SSH is suddenly not working anymore: “Write Failed:Broken Pipe”

I use a macbook pro at home and regularly ssh into the machines at my lab. For the past 3-4 days however, whenever I SSH into the machine in the lab, I get a Write Failed:Broken Pipe error, hardly ...
1
vote
2answers
345 views

Resolving pseudo domain name to private IP

Assume I have a VM running on OSX with private IP 10.0.0.1 which can be accessed from the host machine. I was wondering how can I map a pseudo domain, *.app.dev, to the private IP on my host machine ...
1
vote
3answers
289 views

Is there any alternative to echo daemon to display ip?

Is there any alternative to echo daemon to display ip instead of given string? For ex: my ip = 80.1.2.3 server ip = 1.2.3.4 root@my-machine bash$ telnet 1.2.3.4 Trying 1.2.3.4... Connected to ...
1
vote
1answer
1k views

explanation of the output's command “ifconfig ppp0”

I'm trying to understand the meaning the output of the command: ifconfig ppp0 Note that I'm using an internet-usb-board and so I'm sure that ppp0 interface is associated to it. In particular I have ...
1
vote
0answers
247 views

Share (masquerade) Internet connection from Debian desktop to a bunch of computers

I need to share the Internet connection of my Debian desktop to some other devices (a Mac Laptop, and an Android tablet). The Debian desktop is connected to the local network via eth0, and the rest ...
2
votes
1answer
127 views

Share an external IP with several virtual hosts

For a centos server hosting a few LAMP virtual machines (using VirtualBox), I have a single external IP. I would like to be able to use this single host external IP to address the virtual machines. ...
1
vote
0answers
137 views

SSH to a machine that is getting it's network connection from an Android device(Google TV)

I have a Linux(Ubuntu) machine for my HTPC. It's running XBMC and I control it via my IR remote control. I don't have a (wired) keyboard to control it. It has Wifi adaptor but it's not installed. I ...
1
vote
1answer
47 views

Reach service on VM with private address

I have this configuration: source: https://www.lucidchart.com/publicSegments/view/5256a1e5-afb0-4c7a-96fa-35750a00527d/image.png Basically, I have to reach a service which is running on the virtual ...
5
votes
2answers
2k views

Routing for multiple uplinks/providers

I have a PC with two internet connections. The first one is an Ethernet interface to connect to my local network and access internet via my router. The second one use a GSM modem to connect with ppp. ...
16
votes
2answers
2k views

Is there an easy way to programmatically extract IP address?

Is there an easy way to programmatically extract IP address, without tedious parsing of ifconfig? I would not mind simple command output processing using sed to do it but not processing multiline ...
4
votes
2answers
1k views

Why does Linux require moving IP from eth interface to bridge interface

When a network interface (e.g., eth0) is added to a Linux bridge (e.g., br0), the IP address must be removed from eth0 and added to br0 for the networking to function properly. I recall reading in ...
1
vote
0answers
91 views

coLinux strange networking trouble

Installed coLinux, Debian, sshd inside, pcap-bridged networking, and I can connect to ssh service from coLinux console and from LAN. Now, the strange part: I cannot connect to Linux guest ssh service ...
1
vote
2answers
3k views

binding ip address to hostname

I just registered a domain name and paid for hosting with CentOS and I found that I had to do the binding myself following the lengthy steps http://www.linux-sxs.org/internet_serving/bind9.html I was ...
4
votes
1answer
1k views

Can't ssh to beaglebone?

After I did: route add default gw 192.168.7.1 I also changed /etc/resolv.conf: nameserver 192.168.7.1 in order to share internet between Ubuntu in VMware. I've got internet working but after a ...
2
votes
1answer
1k views

Environment variable for ip address

I see somewhere people use: IF_ADDRESS="$(echo "$IP4_ADDRESS_0" | cut -d'/' -f1)" to get the IP address in a network configuration script. In my system, I create a script under the directory ...
6
votes
2answers
13k 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 ...
3
votes
1answer
749 views

What is the simplest way to connect to wireless on a Debian system with nothing but essential?

I have a Debian Jessie system which, for reasons unrelated to this question, has nothing installed but the set of essential system packages. What is the simplest method for connecting to a wireless ...
16
votes
6answers
13k views

How to get my own IP address and save it to a variable in a shell script?

How can I get my own IP address and save it to a variable in a shell script?
7
votes
7answers
2k views

Assigning IP address to environment variable [duplicate]

How can I assign the IP address of eth0 to an environment variable, say $ip, as easily as possible? Update: Distro is Ubuntu Server 12.04 LTS.
1
vote
2answers
2k views

Get my country by IP in bash

I want to use the name of the country where I am now in a bash script. I can get the external IP using next command: curl ifconfig.me But how can I get my country name?
1
vote
1answer
346 views

What does the route Dest: 123.123.123.123, GW: 0.0.0.0 mean?

I have a route table: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 123.123.123.123 0.0.0.0 255.255.255.255 UH 0 0 0 ...
4
votes
2answers
864 views

What is the difference between `/sbin/ip route` and `/sbin/route`?

Linux comes with two utilities /sbin/route /sbin/ip route What is the difference between the two and what is the rule of thumb to use when you decide which one of the two you should use? I know ...
4
votes
2answers
2k views

SSH to a remote computer having only the public IP

Is it possible to connect to a computer behind a router via SSH knowing only the public IP address (of the router)?
0
votes
1answer
134 views

how to list all the internet's IP ranges? [closed]

I was wondering if I list all the IP ranges directly available on the internet. perhaps also group them by country and ISP? I know that a lot of people do research nowadays on datamining and ...
0
votes
2answers
9k views

Delete Static Routes on Solaris 10

I have the following routes that I wish to delete: 10.250.0.0 10.250.0.37 UG 1 0 I have run the following to delete this with failure. bash-3.2# route delete ...
2
votes
2answers
145 views

quick filter of IP that's causing sendmail DOS under FreeBSD

I've got what appears to be a malicious/spam host that is overloading my Sendmail server causing it to refuse connections to other hosts. I'm overloaded by connections from one particular IP address. ...
1
vote
3answers
731 views

What are the interface prefix meanings in ifconfig?

I'm not sure if these have a name, but on most computers I use the interface prefixes are usually: eth- : Ethernet/Wired wlan- : Wireless/WiFi However, on my ASUS RT-N56U, I have the following: ...
3
votes
1answer
220 views

Detecting multihomed machine

Is there a way to reliably detect whether or not a machine is multi-homed? I'd like to be able to write a script that will return a true or false regarding that information.
2
votes
1answer
64 views

RapidIO packet filtering in Linux

I was wondering if there is support in Linux Kernel for RapidIO packets filtering, something similar to iptables, but based on RapidIO header?
-1
votes
2answers
996 views

How to know ip camera address

I have ip camera with static ip address preset. How can I know it ip using linux? I connect camera direct to my notebook. My system is Linux machine 3.5.7-gentoo #2 SMP ifconfig eth0 eth0: ...
2
votes
1answer
114 views

How can I be sure that access to my home server from my home network is not done via Internet?

As advised in this question: Network file-sharing between Linux and Android, I have decided to use ownCloud to store files on my home cloud server. However, my needs have changed a bit. I want to be ...
4
votes
2answers
489 views

is it possible to send the remote connector ip via netcat?

Actually I want to make something like ifconfig.me functionality but only for my internal network. I see it the way smth on server listens some port and send ip of connected remote machine. Seems nc ...
0
votes
1answer
321 views

centos httpd.conf set different ip for a directory

I have 3 IPs in my server, i want use them to increase twitter API limits. How to set a different ip for a directory in centos 6.1 httpd.conf (apache 2.3.1) I added these line in the bottom of ...
1
vote
1answer
89 views

privoxy show client ip when sending mail

Is it possible for privoxy to show original client ip when sending mail ( example: this mail header should show the client's ip not the proxy ip: Received: from [xx.xx.xx.xx] by ...
1
vote
2answers
3k views

Checking if I can reach some ports from my computer

Is there a terminal command or something on OSX that I can use to test if I can reach some ports on a remote server? I know these ports are reachable on that server, because I can access them from ...
1
vote
3answers
4k views

how can I find out my server's subnet mask via SSH

Hi I use media tamples dv server... I connected it via SSH with putty.. I need my server's IP address and subnetmask. I know the IP address but I don't know the subnetmask. How can I find out my ...
2
votes
1answer
58 views

switch network on and off of a virtual remote server

I need to perform a testing panel which disconnects a network cable and connect it again on a specific virtual server via a php web page. I found that ip & ifconfig can disconnect a network, but ...
10
votes
3answers
2k views

Parsing log files for frequent IP's

So, I hacked this together while undergoing a DDOS attack to pull naughty ips out of my logs. Anyone have any improvements or other suggestions to make it better? Here's the general idea: pull ...
1
vote
2answers
352 views

Assigning IP to a bridged interfaces

Is there a way to assign an IP to bridged interfaces? For example, under normal circumstances: ifconfig eth0 0.0.0.0 ifconfig eth1 0.0.0.0 brctl addbr mybridge brctl addif mybridge eth0 brctl addif ...
2
votes
1answer
15k views

How to add Two Gateway on same machine

I have one test server that has Two Interfaces. To one interface i have assigned ip 172.16.122.1 and GW 172.16.xxx.xxx Now i connected cable to second interface and gave it ip 10.2.2.98. Now they ...
2
votes
3answers
213 views

Detect which interface traffic to an IP address goes through

I'm making an script, and I need to detect in what interface is the traffic of an IP going through. This is because in the arch, an IP address is attended only for one of four NIC's, but can be any of ...
1
vote
2answers
2k views

How to allow mysql remote connections via particular interface

I have a 10.237.49.251 IP on eth0 and another IP on another interface How do I enable remote mysql calls on eth0 device?
2
votes
3answers
83 views

Can DNS identify hostnames dynamically if they're statically configured?

I've got a small environment of ~40 VMs with static IPs on 12 servers, it would be dandy if I could refer to each VM by name. We have a lot of VMs come and go, so maintaining one static list is a ...
0
votes
1answer
365 views

Restoring default ip rule

I accidentally issued ip rule flush, now the default ip rule are all gone, which is, 32766: from all lookup main 32767: from all lookup default Anyone know how to add them back?
8
votes
4answers
14k views

How to find the IP address of a KVM Virtual Machine, that I can SSH into it?

I have follow this guide (Virtualization With KVM On Ubuntu 11.10) to setup my KVM (Virtual Machines Software) on my Ubuntu 11.10 Server. However, I didn't setup my VM's IP address when creating the ...
2
votes
2answers
113 views

How do Apache2 VirtualHosts get resolved?

As I understand it, when you request a url from a website using your browser, it asks the DNS server that the OS is pointing at if it knows the ip address that relates to the dns-name of the server; ...
0
votes
4answers
118 views

how to know IPs available on a server?

I think there used to be a command to do that but I forget. Something like ipconfig in windows. My server has 10 available IPs and I want to know them all.