Re: 2nd NIC troubles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@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@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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux