QUOTE:[root@localhost ~]# ip rule add from 192.168.200.2/24 table T1
Error: argument "T1" is wrong: invalid table ID
[root@localhost ~]# ip rule add from 192.168.200.2/24 table main
[root@localhost ~]# ip rule list
0: from all lookup 255
32765: from 192.168.200.2/24 lookup main
32766: from all lookup main
32767: from all lookup default
[root@localhost ~]# ls /etc/iproute2/
ematch_map rt_dsfield rt_protos rt_realms rt_scopes rt_tables
[root@localhost ~]# cd /etc/iproute2/
[root@localhost iproute2]# cat rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
[root@localhost iproute2]# ip rule del from 192.168.200.2/24 table main
[root@localhost iproute2]# ip rule list
0: from all lookup 255
32766: from all lookup main
32767: from all lookup default
[root@localhost iproute2]# echo 200 T1 >> /etc/iproute2/rt_tables
[root@localhost iproute2]# cat rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
200 T1
[root@localhost iproute2]# ip rule add from 192.168.200.2/24 table T1
[root@localhost iproute2]# ip rule list
0: from all lookup 255
32765: from 192.168.200.2/24 lookup T1
32766: from all lookup main
32767: from all lookup default
在Centos5下执行,没有问题