Hi,
i added second nic to my server
I have these two uplinks:
My main uplink is 195.XXX.XXX.XXX My secondary is 83.XXX.XXX.XXX
When I add the secondary NIC, CentOS automatically sets default gw to 83.XXX.XXX.1 and deletes the gateway from 195.XXX.XXX.1
How can I set it that CentOs uses the gateway 195.XXX.XXX.1 as default gateway. When I set this manually with route, CentOS changes my sentings after a reboot.
And I need also to accept incoming traffic on 83.XXX.XXX.1.
Thanks for your help and best regards
Niels
Niels Przybilla wrote:
Hi,
i added second nic to my server
I have these two uplinks:
My main uplink is 195.XXX.XXX.XXX My secondary is 83.XXX.XXX.XXX
When I add the secondary NIC, CentOS automatically sets default gw to 83.XXX.XXX.1 and deletes the gateway from 195.XXX.XXX.1
How can I set it that CentOs uses the gateway 195.XXX.XXX.1 as default gateway. When I set this manually with route, CentOS changes my sentings after a reboot.
And I need also to accept incoming traffic on 83.XXX.XXX.1.
Thanks for your help and best regards
Niels
Have you checked http://lartc.org/howto/index.html -- especially section 4.x ?
Look in /etc/sysconfig/network, There should be a line in there that looks like GATEWAY=83.x.x.1. If there isn't then check /etc/sysconfig/networking/devices/ifcfg-name of interface for the same line. If neither of them have if then adding it in either should be sufficent.
On 5/28/06, Robert kerplop@sbcglobal.net wrote:
Niels Przybilla wrote:
Hi,
i added second nic to my server
I have these two uplinks:
My main uplink is 195.XXX.XXX.XXX My secondary is 83.XXX.XXX.XXX
When I add the secondary NIC, CentOS automatically sets default gw to 83.XXX.XXX.1 and deletes the gateway from 195.XXX.XXX.1
How can I set it that CentOs uses the gateway 195.XXX.XXX.1 as default gateway. When I set this manually with route, CentOS changes my sentings after a reboot.
And I need also to accept incoming traffic on 83.XXX.XXX.1.
Thanks for your help and best regards
Niels
Have you checked http://lartc.org/howto/index.html -- especially section 4.x ?
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
thnaks for this. But I need to setup two gateways. In the corresponding ifcfg files are the right gateways setup.
Best regards
Niels
_____
Von: centos-bounces@centos.org [mailto:centos-bounces@centos.org] Im Auftrag von Joshua Gimer Gesendet: Sonntag, 28. Mai 2006 15:25 An: CentOS mailing list Betreff: Re: [CentOS] two gateways on one PC ?
Look in /etc/sysconfig/network, There should be a line in there that looks like GATEWAY=83.x.x.1. If there isn't then check /etc/sysconfig/networking/devices/ifcfg-name of interface for the same line. If neither of them have if then adding it in either should be sufficent.
On 5/28/06, Robert kerplop@sbcglobal.net wrote:
Niels Przybilla wrote:
Hi,
i added second nic to my server
I have these two uplinks:
My main uplink is 195.XXX.XXX.XXX My secondary is 83.XXX.XXX.XXX
When I add the secondary NIC, CentOS automatically sets default gw to 83.XXX.XXX.1 and deletes the gateway from 195.XXX.XXX.1
How can I set it that CentOs uses the gateway 195.XXX.XXX.1 as default gateway. When I set this manually with route, CentOS changes my sentings after a reboot.
And I need also to accept incoming traffic on 83.XXX.XXX.1.
Thanks for your help and best regards
Niels
Have you checked http://lartc.org/howto/index.html -- especially section 4.x ?
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
If you need to use a different gateway for each interface then you are going to have to use iproute2. Go to the link that Robert e-mailed to you.
http://lartc.org/howto/index.html
On 5/28/06, Niels Przybilla nprzybilla@yahoo.de wrote:
Hi,
thnaks for this. But I need to setup two gateways. In the corresponding ifcfg files are the right gateways setup.
Best regards
Niels
*Von:* centos-bounces@centos.org [mailto:centos-bounces@centos.org] *Im Auftrag von *Joshua Gimer *Gesendet:* Sonntag, 28. Mai 2006 15:25 *An:* CentOS mailing list *Betreff:* Re: [CentOS] two gateways on one PC ?
Look in /etc/sysconfig/network, There should be a line in there that looks like GATEWAY=83.x.x.1. If there isn't then check /etc/sysconfig/networking/devices/ifcfg-name of interface for the same line. If neither of them have if then adding it in either should be sufficent.
On 5/28/06, Robert kerplop@sbcglobal.net wrote:
Niels Przybilla wrote:
Hi,
i added second nic to my server
I have these two uplinks:
My main uplink is 195.XXX.XXX.XXX My secondary is 83.XXX.XXX.XXX
When I add the secondary NIC, CentOS automatically sets default gw to 83.XXX.XXX.1 and deletes the gateway from 195.XXX.XXX.1
How can I set it that CentOs uses the gateway 195.XXX.XXX.1 as default gateway. When I set this manually with route, CentOS changes my sentings after a reboot.
And I need also to accept incoming traffic on 83.XXX.XXX.1.
Thanks for your help and best regards
Niels
Have you checked http://lartc.org/howto/index.html -- especially section 4.x ?
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Thx Joshua Gimer
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos