[CentOS] 2nd NIC troubles
Jason T. Slack-Moehrle
slackmoehrle at gmail.com
Tue Apr 16 19:26:11 UTC 2013
Hi Les,
> I do have another gateway at 10.0.254.1, it is a Linksys router that all
> > the provate stuff plugs into, and that Linksys plugs directly into our
> > modem.
>
> You can only have one 'default' gateway. Keep the one pointed to the
> internet router. Make a file named
> /etc/sysconfig/network-scripts/route-eth1 to hold the route(s) handled
> by the other interface. Something like:
> 10.0.0.0/8 via 10.0.254.1
> should work if you want the whole private class A space to go that way.
> The ifup/ifdown scripts will add/remove the routes matching the interfaces.
>
So this is a static route. I trued what you suggested and the eth1
interface stalls to come up. It just wont. All ssh sessions get
disconnected and everything stops working
I did:
[root at meowbox network-scripts]# cat route-eth1
10.0.0.0/8 via 10.0.254.1
I found:
http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html
So I changed it to:
[root at meowbox network-scripts]# cat route-eth1
10.0.0.0/8 via 10.0.254.1 dev eth1
and commented out the GATEWAY= line in ifcfg-eht1 and the interface comes
up.
Testing ssh and the websites, they seem to be fine.
Thank you for this lesson.
Jason
More information about the CentOS
mailing list