LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Two network ports on same subnet failed (https://www.linuxquestions.org/questions/linux-networking-3/two-network-ports-on-same-subnet-failed-4175520717/)

thirun 10-01-2014 05:43 AM

Two network ports on same subnet failed
 
Hi,

I have searched in the forum for the below problem, I didn't got any related solution.

I'm trying to configure two Ethernet ports on same subnet in the Linux, I mean eth0 and eth1 configured has 192.168.4.20 and 192.168.4.30 respectively.

The above configuration not working means unable to ping both at a time, only the eth0 works fine.

I've did my home work by browsing, but none of the suggestion worked for me. is it possible to configure on same subnet ? if so what are all the configuration I need to do? is there any document which tells the steps.

Please suggest me..

Thanks in advance

ilesterg 10-01-2014 07:23 AM

What distro are you using?

If it's CentOS, open /etc/sysctl.conf, then edit the value from 1 to 2
Code:

net.ipv4.conf.default.rp_filter = 1
and then add
Code:

net.ipv4.conf.all.rp_filter = 2
restart config:
Code:

sysctl -p


---------- Post added 10-01-14 at 08:23 PM ----------

That also applies to Scientific Linux/Redhat/Oracle Linux

thirun 10-06-2014 11:29 PM

hi ilesterg,

Thanks for your reply
I'm playing with some APM process based custom board. I'm using APM custom kernel and systemd file system build.


All times are GMT -5. The time now is 12:50 PM.