Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Issues related to configuring your network
Post Reply
tiaragaliano
Posts: 4
Joined: 2017/02/18 23:26:42

Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Post by tiaragaliano » 2017/02/18 23:28:06

Hello all,

I want to config my 4 lan card to work in same time. My internet provaider get me real IP from DHCP to LAN MAC address. Now only one of them work. How to config to work all in same time. My server run on Centos 6.8 fresh instalation . I dont make any changes, network is set to automatic mode. All of card work but not in same time.

Please help. I give you some beers to you Paypal ... an chips :) .

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Post by TrevorH » 2017/02/19 03:01:43

Only set one interface up to set itself as the default route - using DEFROUTE=no in the ifcfg file for the other 3 ought to be good enough.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke


User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Post by TrevorH » 2017/02/19 18:30:17

Yes but that screenshot is from your router, I'm talking about how you set up the connections on the linux side and for that, you need to set DEFROUTE=no in 3 of your 4 ifcfg files so that it doesn't attempt to set the default route via that interface. Only one of your 4 interfaces can have the default route.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Post by Whoever » 2017/02/19 22:17:17

tiaragaliano wrote:Hello all,

I want to config my 4 lan card to work in same time. My internet provaider get me real IP from DHCP to LAN MAC address. Now only one of them work. How to config to work all in same time. My server run on Centos 6.8 fresh instalation . I dont make any changes, network is set to automatic mode. All of card work but not in same time.

Please help. I give you some beers to you Paypal ... an chips :) .
Can I ask *why* you want to do this? One NIC can probably flood a TP-Link device.

You can have multiple IP addresses on the one NIC.

tiaragaliano
Posts: 4
Joined: 2017/02/18 23:26:42

Re: Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Post by tiaragaliano » 2017/02/20 20:34:37

how to set this ... ip addr is static from DHCP to mac address

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Post by jlehtone » 2017/02/21 11:26:58

Why do you want four cables between your server and your TP-link?

tiaragaliano
Posts: 4
Joined: 2017/02/18 23:26:42

Re: Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Post by tiaragaliano » 2017/02/21 12:47:37

my ip is to mac address... i dont have 4 mac in one NIC... if have a options please tell me how;

step by step

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Centos 6.8 Multiple 4 Network adapter use in same time on one server from DHCP static ip's

Post by jlehtone » 2017/02/22 09:32:24

You already stated that the DHCP of your ISP does serve all dhcp-requests and allows you to have more than one connected client simultaneously. It seems that each of your connections gets a configuration. That is not a problem then.

What exactly "does not work"? In what way the interfaces "do not work"?


If your server connects to somewhere, which connection should it use? There can be only one answer.

If someone from outside connects to one IP of your server, which physical interface should send a reply?
Does it even matter?
What source address (IP of your server) should be on that reply?
What address there is?


What did TrevorH write about routing?


What do you gain by having more than one IP on the server?

Post Reply