the IP protocol and IP addresses

learn more… | top users | synonyms

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
605 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
42 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 ...
2
votes
1answer
39k 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
51 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
18 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
0answers
17 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
25 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
386 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
1k 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
56 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
62 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
30 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
72 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
70 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
40 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
129 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
115 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
324 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
47 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
78 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
386 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
93 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
179 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
9 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
247 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
479 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
177 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
248 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
6k 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
1k 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
139 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
13 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
113 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
267 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
37 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
40 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 ...
24
votes
3answers
44k 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 ...
1
vote
2answers
78 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
75 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
145 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
304 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
231 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
53 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
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 ...
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 ...
0
votes
1answer
132 views

How to bind IP address to MAC in autoyast?

Is it possible to bind IP to physical address in autoyast config file? The following code doesn't do the trick: ... <interfaces config:type="list"> <interface> ...
0
votes
1answer
485 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 ...