For example, take the server with the operating system Ubuntu Server 14.04, in which let’s say we changed the network settings when executing the commands:Continue reading “Why service networking restart or /etc/init.d/networking restart does not work”
Once on one high-load access server with about 5 Gb/s traffic in /var/log/syslog, errors began to appear frequently:Continue reading “Solution «TX driver issue detected, PF reset issued»”
In this article I will briefly describe the difference between MASQUERADE and SNAT.
MASQUERADE. Less fast routing than SNAT with mass requests, since for each new connection an IP address on the external network interface (WAN) is determined. Great for home use routers and when changing the IP address on the WAN interface.
Continue reading “Difference between MASQUERADE and SNAT”
The script every second displays the number of incoming and outgoing packets per second on the specified network interface.
Place the contents of the script into a file, for example, pps.sh and execute by specifying the name of the network interface (you can stop the execution of the script with CTRL+C):
ipset – a tool consisting of a kernel module, libraries and utility, allowing you to organize a list of networks, IP or MAC addresses, etc., which is very convenient to use for example with IPTables.
Continue reading “Installing and using ipset”
Once I noticed on one of the computers that nothing was displayed in the network environment, and after selecting “Enable network discovery” in “Control Panel \ Network and Internet \ Network and Sharing Center \ Advanced Sharing Options”, the choice was still on “Disable network discovery”.
Continue reading “What to do if “Network Discovery” does not turn on in Windows”
I will give examples of commands for viewing information about a network adapter in Linux.
View network interfaces and assigned IP addresses:
ifconfig ifconfig -a ifconfig -a | grep ens2f0 ip link show
I will give an example of a speed limit of up to 3.3 Gb/s on a network interface on Ubuntu Server 16.04:
/sbin/tc qdisc del dev ens2f0 parent ffff: /sbin/tc qdisc add dev ens2f0 handle ffff: ingress /sbin/tc filter add dev ens2f0 parent ffff: protocol ip prio 50 u32 match ip dst 0.0.0.0/0 police rate 3300mbit burst 330k mtu 30000 drop flowid 1:0
nload – network interface bandwidth monitoring tool with graphical display in the terminal.
Installing nload on Linux Ubuntu/Debian:
sudo apt-get install nload
I will give an example of creating dummy interfaces in Linux.
On the test I use Ubuntu Server 16.04.
The first thing you need to load the module “dummy”, you can also add the option “numdummies = 2” to immediately create two dummyX interfaces:
Continue reading “Creating dummy interfaces on Linux”