Re: Is there a way to save the routing table permanently?

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



Rob Townley napsal(a):
> Are you sure this is actually processed?  Do you have a working example for
> CentOS 4.x or 5.x?  One that works with two NICS that would use two
> different gateways to the internet?  I would like nothing more to get this
> to work in a streamlined fashion.
> 
> i didn't have success with the /etc/sysconfig/static-routes  file, but maybe
> i didn't specify the routes using the correct syntax?

Well,
I use on one of my routers in /etc/sysconfig/static-routes:
any net 192.168.36.0 netmask 255.255.255.0 gw 192.168.38.254
any net 192.168.37.0 netmask 255.255.255.0 gw 192.168.38.253

Running C4.6, route:
[root@arakis ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
212.47.23.188   0.0.0.0         255.255.255.252 U     0      0        0 eth0
192.168.38.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.36.0    192.168.38.254  255.255.255.0   UG    0      0        0 eth1
192.168.37.0    192.168.38.253  255.255.255.0   UG    0      0        0 eth1
0.0.0.0         212.47.23.189   0.0.0.0         UG    0      0        0 eth0

David Hrbáč


_______________________________________________
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