I am in need of running a server and client in same computer on two different interfaces connected back to back using raw ethernet sockets.
one interface is normal one fixed inside and another interface is usb based external NIC.
"cat /etc/network/interfaces" is as follows:
Code:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.100
auto eth1
iface eth1 inet static
address 192.168.1.200
if i keep the above configuration, networking is not getting enabled at all.
instead if I comment out last three lines (for eth1 which is external usb nic), I am seeing eth1 is showing up but not acquiring any ip address, also I am not seeing packets are going out on the wire.
Can some one plz help me in fixing the issue.
My requirements are as follows:
1. I need to connect both the interfaces back to back, boot the computer.
2. Both the interfaces should come up with ip address.
3. I should be able to run client on one interface and server on another interface.
Can some one please help me in configuring my computer so that i can achieve all the above three.