Hi .. we have two AIX 5.3 systems with a small client server app communicating over a TCP socket.
Box A has a single network interface where the server app (in Java) opens a well known port and waits for connections from Box B.
Box B has two network interfaces, X and Y.
I have a Linux server with multiple interfaces. Each interface has an IP and network. Also there is a default route and other routes in a routing table so that connections to certain networks go over one or the other interface.
How can we bind an socket to particular network interface? i tried using setsockopt on server side. still client can access through both eth0 and lo interfaces.
I can achieve this by setting the particular ip address using serv_addr.sin_addr.s_addr.
But my doubt is can we use only setsockopt to bind to interface without mentioning the ipaddress.
I have a Linux box with two interfaces: one for data and the other for management purpose.
I have a DELL server running RedHat EL 6.3 with two 1G network interfaces, and two 10G network interfaces.
Following this note, I have successfully renamed the two 1G network interfaces that used to be called em1 and em2. However, I cannot rename the 10G network interfaces using this method.
I'm trying to set up a server to have one network card using DHCP, and the other using a static IP, but when I run:
Code:
sudo /etc/init.d/networking restart
to bring up the network interfaces, I get an error:
Code:
SIOCADDRT: No such process
Failed to bring up eth1
Here's my network interface file from that system:
How can I simulate some incoming traffic on a specific software interface? The reason for this need is that we have a couple of software interfaces between Ether level and IP level, which will parse our own L2.5 headers along the network stack, i.e.
eth header -> virt_dev1 -> virt_dev2 -> IP -> TCP
I was looking at TAP, which looks like it can help.
How to I edit vi /etc/network/interfaces?
Inside the interfaces, there is only:
auto lo
iface lo inet loopback
How do I add eth0 into the interface?
Have a 'new' mailserver running postfix on Ubuntu.
We are having some problems configuring the subnets & interfaces.
Basically 2 subnets (.253. & .254.) need to be connected through the 3rd subnet (.252.) where the Router is residing.
# This file describes the network interfaces available on your system
# and how to activate them.