Questions tagged [ip]

Questions about the IP protocol and IP addresses. For Linux ip utility related questions, use iproute tag instead.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

to record all assigned external ip address - arch linux KDE

Is there way to know what is the external ip address have being assigned to my computer each time it reboot , or each computer session , or each internet connection session ? ** I meant i want to ...
1
vote
0answers
14 views

SNMP Support in Linux for IF-MIB

I am trying to setup an SNMP agent in my Linux Box. I installed net-snmp and did some basic config. However while performing snmpget,snmpwalk operations. I am able to get the outputs for only system ...
3
votes
2answers
26 views

Find what process making outgoing connection on port 80

We are stuck in identifying which process or service that we are running in our linux machine is making a connection to a remote IP. We are getting complaints of our network accessing the remote IP ...
0
votes
0answers
21 views

How to configure linux to ignore the 'record route' IP options?

Linux allow disable/enable IP options "strict source route" and "loose source route" processing with the /proc/sys/net/ipv4/conf/all/accept_source_route. Is there a similar option ...
0
votes
0answers
17 views

Even after ping and SSH, unable to make socket connection

I am trying to create a communication link between my (Ubuntu 20 running) PC and (Debian running) BeagleBone Black. As I have no router, I manually assign static IP addresses to both the systems and ...
-4
votes
1answer
36 views

Is 172.20.0.2/24 an ip address or subnet? [duplicate]

Can we also assign a subnet to a computer as an ip address?
0
votes
3answers
77 views

Difference between ip addr and ifconfig?

If it's subnet then it should have 254 hosts. But it's showing me that it's my private ip address of my linux VM but it looks like subnet. If i use ip addr command it shows my ip is 10.0.1.178/24 as ...
3
votes
1answer
26 views

Test wifi link in monitor mode

I'm working on a hobby project based on some scripts running on a pi 3b+ connected to a drone that sends video and telemetry (via wifi or 4g connection) to a ground station. The system works really ...
1
vote
2answers
30 views

Packet routing from docker container to host ip

I am wondering what is tbe route for a packet sent from src being the docker container with its own 'dockerised' IP, to the IP address of the VM, on which this docker process runs? Will the packets ...
0
votes
0answers
14 views

Having trouble establishing a connection in the beaglebone to the network despite IPs assigned

I have a BeagleBone black (BBB) that's connected to my host machine, and I'm trying to establish an internet connection in the BBB, and got a following questions: After I reboot the BBB, I see two ...
0
votes
0answers
18 views

ifconfig vs iproute2: alias and?

If below config is called alias auto eth1 address 10.255.255.1/24 auto eth1:0 address 10.0.0.1/24 how iproute2 configuration with secondary ip address is called? auto eth1 address 10.255.255.1/24 ...
0
votes
0answers
41 views

Detecting IP/MAC spoofing using iptables

Is there any way to detect IP or MAC address spoofing with iptables?
0
votes
0answers
20 views

Ubuntu bind returning wrong ip adress

i setup an dns server on my ubuntu system using bind9 i followed an online tutorial which let me do this : named.conf.local I added: zone "bluemoon.be" { type master; file "/etc/bind/db....
0
votes
0answers
27 views

How to know on which LAN a machine is connected?

I have two LANs (192.168.1.0/24 and 192.168.2.0/24) linked by VPN. I have one machine (RPI3b+) that I can be connected on the first or the second LAN (I move it). How can I know where is the machine ...
0
votes
1answer
25 views

How to connect two instances of netcat through a veth device pair?

I want to connect to instances of netcat through a veth(4) device pair. Thus, I create the veth pair using ip as follows: ip link add eth0 type veth peer name eth1 ip addr add 10.0.0.1/24 dev eth0 ip ...
0
votes
0answers
28 views

Secondary (Virtual) Interface on Same NIC with DHCP

I'm currently working on Buster, but the more portable the solution, the better. I have a system for which I would like to add a second IP address to the same adapter. The initial IP address is DHCP, ...
0
votes
1answer
29 views

Request to virtual ip is not forwarding while trying IP Failover using keepalived on centos 7

I am trying to test IP failover using keepalived on centos 7. I have three instances of centos 7 installed on my vm. So I have 3 servers. I am trying to run keepalived on two of them, 3rd centos will ...
0
votes
0answers
28 views

Unable to connect via SSH to when eth0 is disconnected

I've seen a few similar questions, to this one, but have not found a solution. I'm working on a Raspberry Pi and wiring up a second Ethernet port (ultimately it will be the only port on a Pi Zero, ...
0
votes
1answer
31 views

Using pam to configure ssh access via specific ip

I am currently trying to configure a server and I want to allow every user with UID from 6000-6500 to ssh into my server ONLY if that ssh comes from an IP present in the file /etc/remote-hosts. I ...
0
votes
1answer
97 views

Allow ssh access for users with certain UID from certain IP's

I need to allow ssh access to all users, but if the UID is between 6000 and 6500 I need to check if the IP where the ssh is coming from is in the file /etc/remote-hosts. /etc/remote-hosts 1.2.3.4 5.6....
0
votes
2answers
55 views

How do I store network information in variables in BASH?

I am writing a bash script and need to store some primitive network information in separate variables. For example, mac address and IP address in separate variables, for example IPADDRESS=$(...
0
votes
0answers
15 views

How to resolve issue with same IP address set on internal ethernet interface and external device

I have a proxy device, that has two ethernet ports (eth0, eth1). To the eth0 is connected External Device 1 with a IP address = 192.168.1.1. On the second ethernet eth1, I need to mock this external ...
0
votes
0answers
30 views

generate ipv6 address based on mac address

I'm all over the internet right now, and still i have not found an appropriate answer. How can i configure my network to generate the ipv6 address, based on the mac address of the device? How can I ...
0
votes
1answer
37 views

Script to get a list of local IPs and look for an IP

I would like a script to look for an IP address among others. I use the following command to generate the list: ip -4 neighbor show But I don't know how to look. command | awk ... or for i in ...
0
votes
1answer
21 views

How to configure 2 network interfaces which make use of the same physical ethernet port?

I currently have a linux system with only one physical ethernet port. This physical port has the eth0 network interface attached to it. I want to create another ethernet interface which also makes use ...
1
vote
0answers
36 views

Configuring two network cards properly so that I can access them at the same time on Linux

I'm a bit of a beginner in Linux (I'm using CentOS 7). I have a workstation with two network cards. I configured them so that each has its own WAN. However, I can't access (using ping) them at the ...
0
votes
0answers
39 views

Error when setting wlan0 down / up

I recently installed Ubuntu 20.04.1 LTS server on a Khadas Vim 3 Pro SBC. I am trying to run this script that entails: sudo ip link set wlan0 down sudo ip addr add 10.42.42.1/24 dev wlan0 sudo ip link ...
2
votes
0answers
51 views

Why would a network interface be detected by nmcli and ip, but not by iw?

Running ip link I get the output 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:...
0
votes
0answers
19 views

“hostname -i” returns IP address of different network interface devices in various Linux hosts

In some Linux box it returns IP of the interface eth0 and in some it returns IP assigned to eth1 device, and in some it returns all the IPs assigned to all the network interfaces available in that ...
1
vote
1answer
40 views

Docker-compose v3.5 with pre-excisting network and static IP not working

I am stuck with an docker-compose issue that I can not figure out. I am trying to use a compose file with a pre-excisting network and a static ip, but I keep getting the message that the network does ...
0
votes
0answers
27 views

Yocto pinging problem

I've built and installed yocto (5.4.44-05635-gb810a419a2fa-dirty) on my Arria 10 board. I checked for an IP assignment: $ ip address eth0: <BROADCAST,MULTICAST,UP,LOWER_UP8000> mtu 1500 qdisc ...
0
votes
1answer
19 views

Ubuntu route table: docker entry causes VPN to not resolver

This is my route output (part of it): I have a private IP I need to access while I'm under a VPN. The IP starts with 172.17.... By removing the docker0 entry, I have access to my private IP. But, ...
1
vote
2answers
36 views

Transparently bridge network over serial link

I have two Linux devices - for simplicity let's call them Raspberry Pi's - in a box that I want to connect to a network with a singe Ethernet link. Both of them need to be accessible, individually, on ...
2
votes
3answers
101 views

Why linux ip command output is so messy [closed]

I understand that the ifconfig command has not been developed and updated for a while and is now deprecated, we are supposed to use the ip command. I just dont understand why in 2020 the output has to ...
0
votes
0answers
11 views

How to make network link disconnected/connected with an interface Up

I'm trying to figure out why my configs from /etc/network/if-up.d/ and /etc/network/if-down.d/ directory are not executed during router reboot. When I manually Down/Up the interface of the router, ...
0
votes
0answers
36 views

Multiple routes to remote network, send response out same interface as request?

I have the following host, with one interface and two GRE tunnels. It thinks it is locally connected to three networks. eth0: inet 10.1.0.123/16 gre1: inet 172.16.0.123/16 gre2: inet 192.168.0.123/...
0
votes
1answer
18 views

IP addr: How many discrete address-port combos are there on an network connection, given IP's output?

Suppose I am connected to the internet via eth0, and run the following: ip addr | grep eth0 | grep inet The command outputs the following string of information: inet 123.213.50.19/20 brd 123.213.63....
0
votes
0answers
20 views

Activate ip rule in kernel

I'm a beginner in network and linux fields and I need to work with policy routing but first I need to activate ip rule in the kernel. I'm using ubuntu 16.04.3 LTS and minicon 2.7 when I run ip rule ...
0
votes
0answers
20 views

How to enable fragmentation in ipsec tunnel for Ipv6 over ipv4

I have created a tunnel - IPv6 over IPv4 and things work fine. But if i send a large packets say 2000 bytes, it does not get transmitted. Is there something that i need to configure to allow large ...
0
votes
0answers
13 views

How to intercept hostname changes in order to update IP based on DHCP IP plan

We're using Rancher for the provisioning of Kubernetes clusters using a VMWare vCenter integration whereas Rancher interacts with the vCenter API in order to provision the Kubernetes nodes. The ...
0
votes
0answers
84 views

What is the difference between iptables and ip route table?

Recently I am learning iptables, I know there are 5 independent tables, two of them are filter and nat tables. And I sometimes will look at netatat -r or route table, I know ip command can modify this ...
0
votes
1answer
12 views

How to learn “RUNNING” status with `ip` tool?

ifconfig was said to be deprecated ca 2009 with the introduction of ip. Many online pundits advise users to drop ifconfig in favor of ip. I use ip myself, but mostly due to the fact that its output is ...
1
vote
1answer
58 views

device names in rfkill output do not match those from ip

The devices listed by the rfkill command are completely different from the device names listed by the ip command: > rfkill ID TYPE DEVICE SOFT HARD 0 wwan tpacpi_wwan_sw ...
0
votes
0answers
38 views

How to find out the IP of my DD-WRT router working as a bridge

I'm using my dd-wrt router as a bridge to be able to connect a computer that doesn't have a wifi card to be able to connect wireless by connecting that computer to the dd-wrt router with a cable and ...
1
vote
0answers
83 views

How to change network mask using ip command

I tried to change the network mask using Linux ip command and got confused. Google search doesn't clarify it either. If someone could explain? Say I have interface enp0s31f6 on my Linux machine rtuser@...
0
votes
1answer
33 views

Overriding IP packet TTLs

I've hit a situation at work where we are communicating with an external network and we are observing partial packet loss due to ttls being decremented to zero. However, Some traffic does arrive and ...
0
votes
1answer
78 views

Handle 2 routes to the same destination simultaneously

I setup on my machine 2 different routes on 2 different interfaces to reach a single destination. When I ping a machine on that destination network, the packet go through the route with the highest ...
-1
votes
1answer
119 views

Hostname doesn't resolve to DNS server IP address

I have a home server connected to a router which set to use a DDNS with an integreated provider pointing to a no-ip DNS server. After a power outage my domain can't be reached any longer. Checking ...
0
votes
1answer
26 views

Using PTP on DSA-Style Switch Makes Packets Look Distorted

So I have an Altera Cyclone V SoC board running Linux 5.7.10 containing a BCM53125 rev4 switch, three LAN ports, and one CPU port (the NIC). Distributed Switch Architecture is in use, so my setup ...
-1
votes
1answer
3k views

Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24) ,Network is unreachable) [IP: 91.189.88.142 80

So I just now did a fresh install to Linux Mint 20, but this problem was also present in Linux Mint 19.3. Every time I try to do a apt-get update or apt-get upgrade or even download software from the ...

1
2 3 4 5
20