I am convinced that my iproute2 tables are all messed up....In fact I found some errors in my initial post.
# ip rule list
0: from all lookup 255
32766: from all lookup main
32767: from all lookup default
0: from all lookup 255
32766: from all lookup main
32767: from all lookup default
/etc/iproute2/rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
200 Cable
201 T1
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
200 Cable
201 T1
So Cable and T1 are not even showing up in the list.
When I run my ip commands from the command line I get the following results for each line.
# ip route add 173.11.51.44/30 dev eth2 src 173.11.51.45 table Cable
# ip route add default via 173.11.51.45 table Cable
# ip route add 173.11.51.44/30 dev eth2 src 173.11.51.45
RTNETLINK answers: File exists
# ip route add default via 173.11.51.46
RTNETLINK answers: File Exists
# ip rule add from 173.11.51.45 to default lookup Cable
RTNETLINK answers: Numerical result out of range
# ip route add default via 173.11.51.45 table Cable
# ip route add 173.11.51.44/30 dev eth2 src 173.11.51.45
RTNETLINK answers: File exists
# ip route add default via 173.11.51.46
RTNETLINK answers: File Exists
# ip rule add from 173.11.51.45 to default lookup Cable
RTNETLINK answers: Numerical result out of range
# ip route add 67.152.166.0/27 dev eth3 src 67.152.166.2 table T1
# ip route add default via 67.152.166.2 table T1
# ip route add 67.152.166.0/27 dev eth3 src 67.152.166.2
RTNETLINK answers: File Exists
# ip rule add from 67.152.166.2 to default lookup T1
RTNETLINK answers: Numerical result out of range
# ip route add default via 67.152.166.2 table T1
# ip route add 67.152.166.0/27 dev eth3 src 67.152.166.2
RTNETLINK answers: File Exists
# ip rule add from 67.152.166.2 to default lookup T1
RTNETLINK answers: Numerical result out of range
So the first few lines run fine for each table and then I start getting errors. Are these all the commands that I need to use to set this up? I know that when I first entered them by hand the T1 and Cable showed up in the tables list. Am I going crazy?
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos