2 NIC configuration
Hi I have 2 NIC in my linux box. I have assigned to 10.0.0.10 for eth0 and 10.0.0.11 to eth1
and the gateway for both NIC's is 10.0.0.1 But i after adding the route for second NIC's , i could ping from another machine to 10.0.0.11 . But i could not ping the first IP 10.0.0.10 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 10.0.0.1 255.255.255.0 UG 0 0 0 eth1 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0 Thanks in advance, |
do NOT put two nics on the same subnet, that is wrong wrong wrong wrong wrong. it is possible to join two nics on the same subnet using a bridge interface, but just unaware of each other, bad idea.
Maybe you'd like to back up and explain WHY you want to do this? If it's just to put two IP's on there, you can easily alias a single interface. |
Can also use bonding to provide active/passive resilliance or if you have suitable switches you can use active/active for increased throughput.
|
Quote:
|
Is my setting OK?
Quote:
2 NIC gateway are different but use the same submask as 255.255.255.0. What the issue might be? Thanks a lot in advance. |
please start a new thread if you have your own questions.
|
Not a huge problem with this, but ideally you set the routing table to treat both interfaces as a gateway to 10.0.0.1 and 10.0.0.0/24
Also if you're playing with VLANS they have to be on the same VLAN. If you're looking for redundant interfaces you can do port channels, see your switch documentation to see if it's supported. Otherwise if your router supports it, you can do two subnets on the same interface with Cisco that's the secondary ip command. So you can have 10.0.0.0/24 and 10.0.1.0/24 and assign an ip between those two subnets. |
Quote:
|
All times are GMT -5. The time now is 09:17 PM. |