ip

Find if network supports IPv6

Find if network supports IPv6 Is there a way to find out if the IPv6 network cable is disconnected from the server through the terminal? Pinging google won’t work as it could be an intranet. Any help would be appreciated! Asked By: user2384330 || Source as said in serverfault, to show the localy listed ipv6 …

Total answers: 2

How exactly does Linux use the prefix length assigned to network interface?

How exactly does Linux use the prefix length assigned to network interface? I assigned IP address 192.168.0.1/24 to eth0 in two ways. A. Adding 192.168.0.1/24 as usual # ip addr add 192.168.0.1/24 dev eth0 # ping -c 1 192.168.0.2 PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data. 64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.051 ms — …

Total answers: 1

ssh tunnel and change IP

ssh tunnel and change IP I create my tunnel in my laptop via: ssh -p 22 -CfND 7777 mohsen@myserver After input my password, connection is established. And via socks5 in firefox I use 127.0.0.1:7777 and I can browse many filtered sites. But google or some site understand that I use tunnel, How can i configure …

Total answers: 1

Local addresses beginning with 127 not accessible via internet?

Local addresses beginning with 127 not accessible via internet? I am not running a firewall on Ubuntu 23.04. Is it safe to assume that the only ports I have accessible via the internet are 443, 80, and 22? netstat -lntu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 …

Total answers: 1

Setting MTU does not work from systemd-networkd, but works from 'ip link set mtu'

Setting MTU does not work from systemd-networkd, but works from 'ip link set mtu' I’m trying to change an MTU of an interface. I’ve noticed it does not change correctly when using systemd-networkd, but it works when I use the ip link set mtu command. Current MTU is 1500: 3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc …

Total answers: 1

short name a domain name

short name a domain name I have a DDNS service with noip.com, but the link I have is so hard to remember. It’s working, I can resolve it using resolveip link and I get the current IP of the router. I tried to use /etc/hosts but it didn’t work, it requires that I put an …

Total answers: 1

Raspbian os Pi connected to ethernet but no network

Raspbian os Pi connected to ethernet but no network im trying to connect to the internet and eventhough i conected the pi with a ethernet cable with a network enabled cable, it cant connect to the internet. another pi i have with the same cable is able to connect to the internet. Pi with error …

Total answers: 1

What multicast protocol NIC uses?

What multicast protocol NIC uses? I have CONFIG_IP_MULTICAST=y and currently learning about IP multicast and found out that there’re 2 common multicast protocols for IP networks: PIM SS and PIM DS. Querying my wifi adapter info I found out that multicast is supported: $ ip link show dev wlp2s0 2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc …

Total answers: 2

Automatically assign ip address to bridged network in VMWare Workstation?

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? Asked By: zeeshanseikh || Source If you are using bridge connection your router will assign IP from …

Total answers: 1

Group IP addresses belonging to the same /24 network

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 to the same /24 subnet (if there is …

Total answers: 1

Can I configure Ubuntu Desktop network using ip command?

Can I configure Ubuntu Desktop network using ip command? I have Ubuntu 22.04.1 desktop installed. Can I change my network settings using the ip command while NetworkManager is running? Asked By: Hendré || Source Since "the network" is a system-wide resource, any configuration change, done via ip command or GUI or purpose-written program, affects "the …

Total answers: 2

dhcpd or dhclient not found

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 dhclient: command not found. The /sbin has no …

Total answers: 1

Macvtap connectivity lost after a few hours?

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 route add 10.0.0.0/24 dev vlan metric 0 ip …

Total answers: 1

Monitoring packet loss simulated with tc

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, and it’s called ens33. Then I added a rule using tc to introduce packet loss: $ …

Total answers: 1

routing table configured with "ip route" part of the "iptables"?

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 decision" like in the following picture the routing table configured with …

Total answers: 1

TCP port visible from inside nor outside

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 the specific port with 127.0.0.1: they are open (and maybe listening) …

Total answers: 1

Custom network interface with packet send and receive functions in user space

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 receive functions must work on the IP …

Total answers: 1

How to reset `ip a` index to start at `1` and end at `number of devices`

How to reset `ip a` index to start at `1` and end at `number of devices` The command ip a shows list of network ports and also shows an index. For example, 1 for lo and 2 for enp5s0 here: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 …

Total answers: 1

Reachability of IP address of virtual machine

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 Linux: for the host machine: IP address is 192.168.1.208 subnet masking is 255.255.255.0 for …

Total answers: 1