Questions tagged [ip]
Questions about the IP protocol and IP addresses. For Linux ip utility related questions, use iproute tag instead.
1,146
questions
0
votes
0
answers
18
views
Network bridge between Termux and Alpine Linux QEMU
I have an Android phone with Termux. Using Termux I downloaded Alpine Linux x86 QEMU.
The problem: Other devices on the network cannot ping and communicate with the Alpine Linux QEMU. So that's why I ...
0
votes
0
answers
18
views
Alpine Linux: Can I bridge the eth0 to WiFi?
The problem: I have Alpine Linux downloaded on my phone, but it cannot be pinged by other devices on the network. It seems to have its own IP address and gateway that is different from the network. My ...
-2
votes
0
answers
49
views
How do I connect Alpine Linux to WiFi?
The problem: I have Alpine Linux downloaded but it seems to have its own IP address and gateway that is different from the network. My network has the range of 192.168.1.X/24 and gateway of 192.168.1....
0
votes
1
answer
21
views
Automatically assign ip address to bridged network in VMWare Workstation?
This is how my servers with bridged adapters look like.
I want to assign an ipv4 address to them. How do I do it using dhcp(preferred)? Or manual?
1
vote
0
answers
26
views
Why Linux as a router doesn't forward all of the packets of my protocol? [closed]
I'm implementing my own protocol over IP layer and I'm setting iph->protocol to let's say 150 value. AFAIK this protocol number 150 is not reserved for any existing protocol. I'm using two qemu ...
-3
votes
1
answer
24
views
Why can only get access video with 127.0.0.1:8081?
My local pc's address is 192.168.31.167.
sudo ifconfig | grep inet
inet 192.168.31.167 netmask 255.255.255.0 broadcast 192.168.31.255
Install motion and start it:
sudo apt install motion
...
0
votes
0
answers
60
views
How to prevent the ip address of an interface from disappearing when restarting the direct-connected interface
NIC A and NIC B are direct-connected. I assign static IPv4 address to the interfaces. However, when I use
ip link set $IFACE down/up
to restart the interface B, the IP address of the interface A will ...
1
vote
1
answer
36
views
Setting preferred interface/IP for apps [duplicate]
I have an interface with two IP's as shown below (necessary for some firewall traffic management). It seems that apps could bind to either (if they don't specify an IP) on start, possibly interfering ...
0
votes
1
answer
66
views
Understanding the use of 'src' attribute in Linux routing tables
I have a question about a route table in linux which “ip route show” command displays.
I understand what “src” attribute is like based on this link.
http://linux-ip.net/html/routing-saddr-selection....
0
votes
0
answers
22
views
Make Public IP on Wired Connection Static on Debian 11
I'm trying to configure my LAN interface in such a way that whenever I am connected to it, all the outbound traffic from my computer flows through a static IP address. How do I go about this?
I have ...
0
votes
0
answers
24
views
How do I access a web server on the other end of an ethernet bridge?
Sorry if this is a stupid question; I know very little about networking and I've been struggling to figure this out!
For a fun project, I'm trying to set up a vintage Mac as a web server (technically ...
1
vote
1
answer
53
views
Group IP addresses belonging to the same /24 network
I have a file containing a list of both IPv4 addresses and /24 networks.
The IP addresses are already unique and sorted by all four octets.
I would like to use bash to group the addresses that belong ...
0
votes
1
answer
107
views
ssh -w: Bad tun device 'tun0'
I'm attempting to create an SSH tunnel and utilize it as a standard network interface.
Here is what I have tried:
myuser@client-pc:
ip tuntap add mode tun user myuser name tun0
ip address add dev tun0 ...
0
votes
0
answers
51
views
Packets are unexpectedly routed to local lo interface
I have a question about routing between different network devices within the same Linux host:
I created a Geneve network device (and this example is not related to Geneve tunnel; it's just that I ...
4
votes
1
answer
1k
views
dhcpd or dhclient not found
I'm working on a custom Ubuntu 20.04 server and am trying to get a dhcp IP for it. The server has so far run on a static IP and when I run dhcp or dhclient it says dhcpd: command not found and ...
1
vote
0
answers
156
views
TCP/IP client-server slow communication
I made some network application.
It is a client-server solution using the TCP/IP protocol.
Clients connect to the server.
They make several connections every second.
Communication consists of units of ...
1
vote
0
answers
26
views
Implementing Dynamic IP Fallback Mechanism with Connman
I am working on a Debian 11-based live USB distribution that utilizes Connman for network management. However, as this distribution may run on various computers with different network interface card ...
1
vote
1
answer
117
views
ss or ip equivalent to netstat -gn to show multicast memberships?
Is there a modern Linux tool that will show the equivalent of netstat -gn to show multicast group memberships? This old command shows output like this:
IPv6/IPv4 Group Memberships
Interface ...
1
vote
1
answer
78
views
Macvtap connectivity lost after a few hours?
I setup a macvtap interface like this:
ip link add link eth0 vlan type macvlan mode bridge
ip address add 10.0.0.17 dev vlan
ip link set dev vlan up
ip route flush dev eth0
ip route flush dev vlan
ip ...
1
vote
1
answer
351
views
Monitoring packet loss simulated with tc
I found an interesting article that describes how to simulate network issues (like lost packets) on a linux server.
On an Ubuntu test VM, I checked which interface is used for internet connectivity, ...
1
vote
1
answer
219
views
routing table configured with "ip route" part of the "iptables"?
This question is frequent and has already a lot of answers, but I still don't get it. Is the routing configured with "ip route add .." part of the iptables flow? Is the "routing ...
0
votes
0
answers
50
views
3-Port Network Bridge for Single Pair Ethernet
i have two SPE network Interfaces and want to bridge them to a bridge with both of them + a interface which i can use for my linux environment.
I created a bridge with both interfaces and set them ...
0
votes
0
answers
38
views
Update neighbours with arping
If I miss a neighbour running the ip neigh command, and perform a normal ping to the IP address, I can see that the neighbour cache is updated automatically. However this does not seem to happen with ...
0
votes
1
answer
61
views
TCP port visible from inside nor outside
I've used autossh (reverse) connecting to my server. The ssh side works like used to. But in an ARM64 system, my Ubuntu has less possibilities but this is another story (...).
So what I see whit nmap ...
1
vote
0
answers
66
views
Why do I have 2 ip addresses on company network?
I am getting 2 IP addresses on company network(wireless) on my Arch Linux. I am wondering why this situation happens. Company sysadmin doesn't know why either.
1: lo: <LOOPBACK,UP,LOWER_UP> mtu ...
-3
votes
1
answer
236
views
Why is my static IP address not set to what I made it in the /etc/sysconfig/network-scripts/ifcfg-enp0s3 file?
I have made the following changes to /network-scripts/ifcfg-enp0s3 file in order to try and get a static IP address (added ip i want ending in .49, added gateway, Prefix and Subnet mask (
1: https://...
0
votes
1
answer
351
views
Custom network interface with packet send and receive functions in user space
Is it possible to implement a custom network interface in user space on a Linux platform? The netif must transmit packets on an unusual physical link which is best accessed in user space.
The send and ...
1
vote
0
answers
85
views
ip is loosing after reboot, ntpd log : Deleting interface #4 eth0, ipv6
After rebooting computer, IPv6 address is lost.
[root@VM-1-47-centos ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:...
0
votes
0
answers
116
views
How to assign mac address on the physical port of switch device?
I have a Linux embedded device with two port Ethernet switch function.
There is only one ethernet interface which is eth0 and the mac address is, for example: 90:59:af:6e:02:43.
What I want to do is ...
0
votes
0
answers
395
views
Is it possible to match multiple IP addresses when using tc filter... match?
I would like to match 4 IP addresses as src and other 4 IP addresses as dst when using tc filter
I do know I could use subnets in match but unfortunately my addresses does not form a subnet instead I ...
0
votes
0
answers
40
views
Connect VPN in VPS
I have a VPS with a public IP that I want to hide. I use this VPS to run a service on port 8005 that is accessible in through the public IP x.x.x.x. This IP also has a DNS name xpto.xyz.
When I ...
0
votes
0
answers
81
views
How to assign different ip's on cloned systems (no VM's, embedded systems)
After some research, I am not being able to solve assigning different ip's on cloned systems. Most questions reference working on VM's.
I have an embedded system, I will call it Master: Google Coral, ...
0
votes
0
answers
27
views
Linux appears to be connecting to a TCP server that should not exist, for even-numbered ports in the range 32768-60998
I'm attempting to determine why the following C++ code connects to a server that does not exist.
#include <boost/asio.hpp>
#include <iostream>
int main(int argc, char* argv[])
{
boost::...
0
votes
1
answer
110
views
Reachability of IP address of virtual machine
I have a virtual machine (Linux) installed in my PC (Windows) and I was wondering the reachability of the IP address assigned to the virtual machine.
According to ipconfig on Windows and ifconfig on ...
0
votes
0
answers
310
views
Using a node by its IP address
I was trying to use a specific node by its IP address during a slurm job. I know we can specify the node inside the .sh file by using the
#SBATCH --nodelist =ncbxxx
command where we specify the names ...
0
votes
2
answers
51
views
Domain Name as IP Abstraction vs. Domain Name as Name of Server - /etc/host{s,name} - Why?
A domain name is an abstraction for an IP address. Regardless of which computer is at that IP, the domain name should point there. So why then do we associate a domain name with a computer using the ...
0
votes
1
answer
35
views
Create hostnames per IP on Debian
I use a server with multiple IP addresses as a Squid proxy. Sadly every query to every IP address will expose the primary hostname of my webserver. So I added the following lines to my /etc/hosts file:...
1
vote
1
answer
172
views
IP Fragmentation with Jumbo frames
Is it possible to enable IP fragmentation for packet size greater than 9k when the mtu is configured as 9k? If yes, how can this be achieved in Linux?
0
votes
0
answers
57
views
macchanger's effect disappears when wifi connection is back up
When I installed macchanger package I set it to change mac address everytime an interface is down. However I noticed that my IP address was not changing. So I examined my mac address.
When connected ...
0
votes
0
answers
76
views
forwarding traffic from one server to another
I have following configuration.
servers:
A - 10.0.0.2
B - 10.0.0.3 and 10.0.2.1
C - 10.8.0.2
There is a static route added on A for 10.8.0.2 and 10.0.2.1 to go through 10.0.0.3
I can ping from A->...
1
vote
1
answer
134
views
Find duplicate IPs for different MACs
Using arp-scan to get a list of returned duplicate IP address. However, arp-scan will list duplicate IP with the same MAC address. I get a sorted output of asx.txt (shortened for brevity)
arp-scan 172....
1
vote
0
answers
84
views
Server hosted on virtual machine with VPN can't be accessed on host machine using same VPN?
I am an absolute novice so there may be misunderstandings etc. any and all forms of help are very appreciated.
On a virtual machine (Virtual Box) using Kali Linux I am hosting BeEF with OpenVPN ...
0
votes
0
answers
45
views
source&dest ports over port forwarding
I'm implementing a firewall module, and I have the following system:
A "client" with ip 10.1.1.1
A firewall
A "server with ip 10.1.2.2
The networking in this system is implemented ...
1
vote
0
answers
55
views
How can I make a local only bridged interface using the IP utility for SNORT?
I am trying to use the Snort IPS. In order to use it as an inline prevention system I need to make two interfaces and snort will bridge the two to apply its rules as a packet passes through the bridge....
0
votes
0
answers
119
views
Place to keep a list of trusted external IP addresses on a system?
What I have
Many services on my system trust the same list of IP addresses.
For example, I mention/use/refer to:
192.0.2.43,
198.51.100.2 and
203.0.113.76
when configuring:
iptables,
fail2ban,
...
0
votes
1
answer
99
views
How to get external IP informations via command line?
I'm trying to get informations about an IP which was used to send me a form message which could be malicious. Is there a way to get some informations about it from shell/terminal?
1
vote
1
answer
403
views
SSH Configuration for multiple IP addresses (round-robin or randomized)
I have a machine that I am using as an SSH jumphost which has multiple ethernet ports each of which has its own IP address (192.168.1.22 and 192.168.1.178 in case it matters). I use SSH for a lot of ...
-3
votes
2
answers
391
views
ip address/ifconfig show different ip address
I created a software by using yocto for my beagleboneblack.
I have noticed that the ip address command shows different IP addresses when I call it on the host (ubuntu) 192.168.0.1 and when I call it ...
1
vote
1
answer
391
views
Which is my wwan device?
I have a ThinkPad with ThinkPad_mobile_Internet
To enable it, I want to know my wwan device (like this):
# your wwan device name created by qmi_wwan kernel module
# check it with "ip a" or &...
0
votes
1
answer
92
views
Improving Bash service to start/stop torrents by monitoring public IP
I am looking for feedback on my solution to monitor my public ip for torrenting.
The public IP is checked against icanhazip. If the vpn is not active, pause all torrents. If vpn is active, then a ...