address0=217.20.117.1
subnet0=255.255.255.255
subnet0=255.255.255.255
but what should be next line for default gateway the only thing that i could not complete is default gateway setting
and my netstat table must looklike this :
Destination Gateway Genmask Flags MSS Window irtt Iface
217.20.117.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
xx.xx.xx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 217.20.117.1 0.0.0.0 UG 0 0 0 eth0
and now i see only the first two line truely i am adding 3rd line on every time restart manually with route add default gw
2010/3/29 Les Mikesell <lesmikesell@xxxxxxxxx>
cahit Eyigünlü wrote:If you create a file named /etc/sysconfig/network-scripts/route-eth0 you can put
> i am reaching the network with this :
> route add -net 217.20.117.1 netmask 255.255.255.255 dev eth0
> route add default gw 217.20.117.1
>
> i have added eth0
> address0=217.20.117.1
> subnet0=255.255.255.255
>
> the first command is ok but how could i set the second command to cent
> os to do it automatically
>
lines in it that will have 'ip route' added at the beginning and executed after
the interface is up. "ip route" takes some different arguments than the "route"
command - see "man ip" for details.
--
Les Mikesell
lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos