Re: adding static route via network setup fails

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



Kai Schaetzl wrote:
> I want to add the following route command
> route add -net 192.168.2.0/27 gw 192.168.2.3

try

any net 192.168.2.0 netmask 255.255.255.224 gw 192.168.2.3

in your /etc/sysconfig/static-routes file

Though I'm not sure why you'd want to have a static
route that points to a local interface, just set the
subnet of the interface to 255.255.255.224 and you
don't need a static route.

I use that syntax and it works fine..

nate


_______________________________________________
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