Linux Networking refers to any networking function performed by a server running Linux. A Linux server operating as a router or firewall are the most common applications.

learn more… | top users | synonyms

24
votes
8answers
54k views

how to find out mac addresses of all machines on network

Is there some easy way to find out mac address of all machines on my network rather than doing an SSH into each and ifconfig | grep HWaddr if there are 300 machines on network I really need some easy ...
24
votes
5answers
8k views

Hostnames - What are they all about?

I've recently been "forced" to perform some sysadmin work, while this isn't something that I absolutely love doing I've been reading, experimenting and learning a lot. There is one fundamental aspect ...
23
votes
2answers
34k views

How to reduce number of sockets in TIME_WAIT?

Ubuntu Server 10.04.1 x86 I've got a machine with a FCGI HTTP service behind nginx, that serves a lot of small HTTP requests to a lot of different clients. (About 230 requests per second in the peak ...
17
votes
5answers
6k views

What network loads require NIC polling vs interrupts?

Does anyone have some data or basic calculations that can answer when frame coalescing (NAPI) is required and when a single interrupt per frame is sufficient? My hardware: IBM BladeServer HS22, ...
15
votes
2answers
1k views

Serving 10,000 simultaneous users over Wifi

I'm looking to offer a wifi service at a public event. The traffic will be very minimal, 10KBps should be adequate. Users don't necessarily need to connect to anything other than the private intranet. ...
14
votes
1answer
4k views

Should /etc/hosts contain an entry like '127.0.0.1 localhost myhost.example.org myhost'?

When looking at a variety of Linux and FreeBSD systems, I've noticed that on some systems /etc/hosts contains an entry for the public hostname of the host, but not on other systemst. What is the best ...
12
votes
2answers
2k views

arp-requests cannot be seen by specific nodes

I create an open ad-hoc wlan by using iwconfig (I have the same issue with wpa_supplicant as well). there are 4 nodes on the network as seen on the figure below. The nodes run ubuntu 12.04 and debian ...
11
votes
2answers
32k views

Linux e1000e (Intel networking driver) problems galore, where do I start? [closed]

I'm currently having a major problem with e1000e (not working at all) in Ubuntu Maverick (1.0.2-k4), after resume I'm getting a lot of stuff in dmesg: [ 9085.820197] e1000e 0000:02:00.0: PCI INT A ...
11
votes
1answer
24k views

What CAN cause 'RTNETLINK answers : No such process' when adding a route

I have come up against this error a number of times, but haven't yet found an explanation of what the error means, or what can cause the problem. I'm not posting my configs or the specific route I'm ...
11
votes
2answers
11k views

How can I increase the value of somaxconn?

I can check its value by cat /proc/sys/net/core/somaxconn, is it OK if I change it simply by echo 1024 > /proc/sys/net/core/somaxconn?
11
votes
6answers
26k views

Delete a iptables chain with its all rules

I have a chain appended with many rules like: > :i_XXXXX_i - [0:0] > -A INPUT -s 282.202.203.83/32 -j i_XXXXX_i > -A INPUT -s 222.202.62.253/32 -j i_XXXXX_i > -A INPUT -s ...
11
votes
2answers
10k views

How to generate netflow data in linux

We have a number of Linux servers for which I would like to capture netflow data to be processed by a netflow analyzer. I've been spoiled by the ease in which Mikrotik routers allow netflow data ...
11
votes
2answers
6k views

PXE Booting Virtualbox guests in internal networking mode?

I am not sure if this is just specific to my distro's packages or is a vbox limitation. So, any help would be appreciated. Ok, so I have a network of VMs, with one VM acting as a NAT for the other ...
11
votes
5answers
2k views

tc u32 — how to match L2 protocols in recent kernels?

I have a nice shaper, with hashed filtering, built at a linux bridge. In short, br0 connects external and internal physical interfaces, VLAN tagged packets are bridged "transparently" (I mean, no VLAN ...
10
votes
3answers
16k views

What is the correct way to open a range of ports in iptables

I have come across articles advising for the following: iptables -A INPUT -p tcp 1000:2000 -j ACCEPT And others stating that the above will not work and iptables only supports multiple port ...
10
votes
2answers
4k views

Can I have dots in a hostname?

I'm using names like a.alpha for the hostname of my linux box, but it seams that these name are not completely usable. The response of a hostname shell command is correct (a.alpha). But the name ...
10
votes
4answers
19k views

multiple MAC addresses on one physical network interface (linux)

Simple question: How can I setup multiple MAC addresses on one physical network interface (linux)? Why? My ISP is checking ip<->mac on GW and I d like to route traffic through my "linuxbox" and ...
9
votes
3answers
349 views

Any free networking lab?

I want to study network. But I don't have an access to a sample network (routers, DNS, IP4, IP6 windows linux mixed heterogenous system). Do you know any online network to study (Free as possible). Is ...
8
votes
4answers
339 views

Simulate slow connection between two ubuntu server machines

I want to simulate the following scenario: given that I have 4 ubuntu server machines A,B,C and D. I want to reduce the network bandwidth by 20% between machine A and machine C and 10% between A and ...
8
votes
1answer
36k views

What does “net_ratelimit: 44 callbacks suppressed” mean on a linux based router?

I'm trying to tune Snort performance on a Debian based router. I was seeing stuff like: snort packet recv contents failure: No buffer space available So I upped the buffers to 8M and when that ...
8
votes
1answer
629 views

TCP packet being retransmitted 7 times when sysctl tcp_retries1 is set to 3 - why?

Ubuntu 12.04 I am trying to better understand how many times TCP will attempt to retransmit a packet when it does not receive confirmation the destination received it. After reading the tcp man page ...
7
votes
3answers
2k views

How to completely disable IPv4 stack from Linux?

How can I disable IPv4 stack from Linux ? I want to do that dynamically, ie. sometimes I want it enabled and sometimes I want only IPv6 stack. Is there any portable way to do that ? If you know how to ...
7
votes
3answers
21k views

How to “restart” particular network interface on RHEL?

In RHEL, instead of using service network restart command, how can i restart a particular network interface, lets say "eth1", with only one command. "Only one command" because that is the only ...
7
votes
2answers
1k views

How can I switch from a custom linux network namespace back to the default one?

With ip netns exec you can execute a command in a custom network namespace - but is there also a way to execute a command in the default namespace? For example, after executing these two commands: ...
7
votes
1answer
10k views

How to troubleshoot latency between 2 linux hosts

The latency between 2 linux hosts is about .23ms. They are connected by one switch. Ping & Wireshark confirm the latency number. But, i dont have any visibility into what is causing this latency. ...
7
votes
5answers
17k views

Can only bring up one of two interfaces

I'm having a bizarre issue with my HP Proliant DL 360 G4p server. It has two gigabit ethernet interfaces but I can bring up only one of them. This is starting to freak me out and that's why I turned ...
7
votes
1answer
13k views

How GRO (generic receive offload) works on more advanced NICs?

I am interested in particular answers: Does the NIC with GRO edits/creates TCP ACK or any other packets (or is this feature transparent to receiver/sender TCP stacks)? There should be a ...
7
votes
2answers
4k views

Intermittently high ping times to router via Wi-Fi

On my local network there are (among others) 5 machines (running Debian Jessie or Arch) wirelessly connected to a Netgear WNDR4000 router. Below is a graph of the ping times to the router from each of ...
7
votes
1answer
327 views

Is ISP's Equipment Misconfigured? Getting Martian Packets on Internet Interface

We have a /28 block from our ISP. Let's say 1.1.1.240/28 with a gateway of 1.1.1.241. We are getting martian packets from another customer over at 1.1.1.214. They are sending broadcasts to 1.1.1.255. ...
7
votes
3answers
4k views

Layer 4 vs Layer 7 Load Balancing

I am trying to decide between using a layer 4 load balancing solution for my datacenter or a layer 7 solution. Unfortunately (for my sanity, that is), my use case is simple enough that both solutions ...
7
votes
3answers
32k views

Why ip route add doesn't work, but ip route add with less details and then change works?

I have a problem with ip route add. Surprisingly, I can add the route then change it, but I cannot directly add it: # ip route add 192.168.0.0/16 via 192.168.255.254 src 192.168.1.101 RTNETLINK ...
6
votes
1answer
12k views

VLAN tags not shown in packet capture (Linux) via tcpdump

I am adding a tagged VLAN onto eth0: #ip link add link eth0 name eth0.20 type vlan id 20 This results in: #ip link 2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc ...
6
votes
3answers
978 views

Debian 7 how are IPv6 link local addresses set?

It seems like when dhclient runs on eth0 I get an IPv4 address from the DHCP server and a Scope:Link IPv6 address attached to eth0: inet6 addr: fe80::a00:27ff:fed0:4d41/64 Scope:Link But I can't ...
5
votes
4answers
758 views

Transfer large amount of small files

I've to do a migration of two servers with large SAN attachments to our new VMWare environment. EDIT: I have to supply some additional intelligence as I have good answers regarding VMWare solution. ...
5
votes
1answer
5k views

How to block internet access to certain programs on Linux

Recently, I have encountered a problem of limiting Internet Access to specific programs. Could anybody recommend a good way of doing that, without using any particular software?
5
votes
3answers
3k views

How to see on Linux what network interface and source IP address is used for a route to a specific destination host?

If I have multiple network interfaces (here: 2) on a Linux machine (here: Debian Lenny). How do I see, over what network interface (NIC) a route to a specific destination host is going and what source ...
5
votes
1answer
9k views

NAPI vs Adaptive Interrupts

Could anyone please explain how two following technologies are used to mitigate interrupt overhead under high networking load? Adaptive-rx/Adaptive-tx, and NAPI; I would appreciate an answer that ...
5
votes
3answers
3k views

Redirect output of mysqldump to scp

I worked with a linux pro years ago who did this nifty trick. He could do a mysqldump but redirect the output to an scp/ssh connection rather than writing to disk. We utilised this quiet a bit where i ...
5
votes
3answers
5k views

Ubuntu: disable udev's persistent-net-generator.rules

I'm using Ubuntu 12.04 LTS server edition and I am modifying /etc/udev/rules.d/70-persistent-net.rules to define my own mappings of ethernet interfaces to MAC addresses; that file is initially ...
5
votes
1answer
6k views

Ubuntu: Network driver reset to eth0?

I've been trying to get my Ubuntu Server VM running through VirtualBox. I ended up trying several network interfaces because of some networking issues and finally got it working. However, I noticed ...
5
votes
5answers
19k views

Ubuntu Server 12.04 can access LAN but not internet

Using Ubuntu Server (12.04) via command line, I can access the LAN (e.g. ping local machines) but not the internet (e.g. "ping google.com" or "sudo apt-get update"). How should I troubleshoot this? ...
5
votes
1answer
220 views

Nagios alert based on scheduled MySQL queries results

I have installed Nagios 4.0 on my Ubuntu 14.0 and i want a plugin to alert me based on daily scheduled MySql queries .. if the result of ( select count(*) from tableName > 10 ) raise a critical ...
5
votes
3answers
373 views

Multiple ethernet interfaces

I have a two network cards, configured like this: eth0 Link encap:Ethernet HWaddr 00:19:d1:31:08:e8 inet addr:192.168.5.104 Bcast:192.168.5.255 Mask:255.255.255.0 inet6 ...
5
votes
1answer
4k views

Is it possible to close a socket with a shell command?

Is it possible to close a socket by using some sort of shell command/program? I've seen plenty of examples of manipulating sockets using C and other languages but have been unable to find a program ...
5
votes
1answer
408 views

IPv6 and NAT, routing to multiple ISPs

Currently I have a nice setup using private IPv4 address space and uplinks from two ISPs to the Internet. Thanks to NAT I can just take down one of the interfaces and the Internet access is still ...
5
votes
2answers
1k views

dynamic routing between openvpn tunnels

i'm thinking about using dynamic routing [ OSPF or RIP ] via OpenVPN tunnels. right now i have few offices connected in full mesh, but this is not scalable solution as we add more locations. i would ...
5
votes
2answers
3k views

I need a reverse proxy solution for SSH

Hi here is a situation I have a server in a corporate data center for a project. I have an SSH access to this machine at port 22.There are some virtual machines running on this server and then at the ...
5
votes
1answer
258 views

Load balancing network traffic using iptables

I am trying to load balance traffic from internal LAN on a linux router having two gateways. Initially I went for the iproute implementation which didnt balance the load as expected, reason being that ...
5
votes
1answer
5k views

Too many TCP connections causes disconnections

I have a game server which runs with TCP connections. Server disconnects users randomly. I think its related with TCP settings of server. In local development environment written code can handle ...
5
votes
1answer
2k views

High load average due to high system cpu load (%sys)

We have server with high traffic website. Recently we moved from 2 x 4 core server (8 cores in /proc/cpuinfo), 32 GB RAM, running CentOS 5.x, to 2 x 4 core server (16 cores in /proc/cpuinfo), 32 GB ...