All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Help - Getting an error when trying to add prio to tables....
@ 2005-02-05 15:40 Pankaj Agarwal
  2005-02-05 17:09 ` [LARTC] Help - Getting an error when trying to add prio to Endre SZABO
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pankaj Agarwal @ 2005-02-05 15:40 UTC (permalink / raw)
  To: lartc

Hi,

I am getting the errors given below, when I am trying to add the prio to any 
table. What can be the problem and how can i resolve it.... Kindly help

[root /root]# ip rule
RTNETLINK answers: Invalid argument
Dump terminated

[root /root]# ip rule list
RTNETLINK answers: Invalid argument
Dump terminated

[root /root]# ip rule list table main
"ip rule show" need not eny arguments.

[root /root]# ip rule show
RTNETLINK answers: Invalid argument
Dump terminated

[root /root]# ip rule add prio 50 table main
RTNETLINK answers: Invalid argument

[root /root]# ip route
192.168.2.5 dev eth1  scope link
61.11.104.63 dev eth0  scope link
220.227.153.48/28 dev eth2  proto kernel  scope link  src 220.227.153.61
192.168.2.0/24 dev eth1  proto kernel  scope link  src 192.168.2.5
61.11.104.0/24 dev eth0  proto kernel  scope link  src 61.11.104.63
127.0.0.0/8 dev lo  scope link
default via 61.11.104.1 dev eth0

[root /root]# ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
where  OBJECT := { link | addr | route | rule | neigh | tunnel |
                   maddr | mroute | monitor }
       OPTIONS := { -V[ersion] | -s[tatistics] | -r[esolve] |
                    -f[amily] { inet | inet6 | ipx | dnet | link } 
| -o[neline] }

Thanks and Regards,

Pankaj Agarwal 

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Help - Getting an error when trying to add prio to
  2005-02-05 15:40 [LARTC] Help - Getting an error when trying to add prio to tables Pankaj Agarwal
@ 2005-02-05 17:09 ` Endre SZABO
  2005-02-05 17:29 ` Endre SZABO
  2005-02-05 17:29 ` [LARTC] Help - Getting an error when trying to add prio to tables Pankaj Agarwal
  2 siblings, 0 replies; 4+ messages in thread
From: Endre SZABO @ 2005-02-05 17:09 UTC (permalink / raw)
  To: lartc

compile a kernel with the required options checked first, like:

CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ADVANCED_ROUTER=y

but i'm not sure if these are the required ones.

73, Snitt

.-- Valaszul Pankaj Agarwal levelere:

|Hi,
|
|I am getting the errors given below, when I am trying to add the prio to any
|table. What can be the problem and how can i resolve it.... Kindly help
|
|[root /root]# ip rule
|RTNETLINK answers: Invalid argument
|Dump terminated
|
|[root /root]# ip rule list
|RTNETLINK answers: Invalid argument
|Dump terminated
|
|[root /root]# ip rule list table main
|"ip rule show" need not eny arguments.
|
|[root /root]# ip rule show
|RTNETLINK answers: Invalid argument
|Dump terminated
|
|[root /root]# ip rule add prio 50 table main
|RTNETLINK answers: Invalid argument
|
|[root /root]# ip route
|192.168.2.5 dev eth1  scope link
|61.11.104.63 dev eth0  scope link
|220.227.153.48/28 dev eth2  proto kernel  scope link  src 220.227.153.61
|192.168.2.0/24 dev eth1  proto kernel  scope link  src 192.168.2.5
|61.11.104.0/24 dev eth0  proto kernel  scope link  src 61.11.104.63
|127.0.0.0/8 dev lo  scope link
|default via 61.11.104.1 dev eth0
|
|[root /root]# ip
|Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
|where  OBJECT := { link | addr | route | rule | neigh | tunnel |
|           maddr | mroute | monitor }
|OPTIONS := { -V[ersion] | -s[tatistics] | -r[esolve] |
|-f[amily] { inet | inet6 | ipx | dnet | link } 
|| -o[neline] }
|
|Thanks and Regards,
|
|Pankaj Agarwal 
|_______________________________________________
|LARTC mailing list / LARTC@mailman.ds9a.nl
|http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
|
|
|
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Help - Getting an error when trying to add prio to
  2005-02-05 15:40 [LARTC] Help - Getting an error when trying to add prio to tables Pankaj Agarwal
  2005-02-05 17:09 ` [LARTC] Help - Getting an error when trying to add prio to Endre SZABO
@ 2005-02-05 17:29 ` Endre SZABO
  2005-02-05 17:29 ` [LARTC] Help - Getting an error when trying to add prio to tables Pankaj Agarwal
  2 siblings, 0 replies; 4+ messages in thread
From: Endre SZABO @ 2005-02-05 17:29 UTC (permalink / raw)
  To: lartc

ok, to let policy routing work, you will have to have these options checked in 
menuconfig afaik:

Networking options  --->
[*] TCP/IP networking
[*]   IP: multicasting
[*]   IP: advanced router
[*]     IP: policy routing

2.4 kernel documentation refers to 
http://www.compendium.com.ar/policy-routing.txt which contains the following:

2. Required software.
You'll need a recent 2.1.x kernel (i've a pair of 
production machines running 2.1.119 from some weeks ago and my work devel 
machine runs 2.1.129) compiled with policy routing. (depends on Networking 
Options/ IP: advanced router)

.-- Valaszul Pankaj Agarwal levelere:
|tried these but not working... i edited the file /usr/src/linux/.config
|
|CONFIG_IP_ADVANCED_ROUTER=y
|CONFIG_IP_MULTIPLE_TABLES=y
|CONFIG_IP_ROUTE_FWMARK=y
|CONFIG_IP_ROUTE_NAT=y
|CONFIG_IP_ROUTE_MULTIPATH=y
|CONFIG_IP_ROUTE_TOS=y
|CONFIG_IP_ROUTE_VERBOSE=y
|CONFIG_IP_ROUTE_LARGE_TABLES=y
|
|looking for you help
|
|
|----- Original Message ----- From: "Endre SZABO" <snitt@urbnet.hu>
|To: "Pankaj Agarwal" <pankaj@toughguy.net>
|Cc: <lartc@mailman.ds9a.nl>
|Sent: Saturday, February 05, 2005 10:39 PM
|Subject: Re: [LARTC] Help - Getting an error when trying to add prio to
|tables....
|
|
|> compile a kernel with the required options checked first, like:
|> 
|> CONFIG_IP_ROUTE_MULTIPATH=y
|> CONFIG_IP_MULTIPLE_TABLES=y
|> CONFIG_IP_ADVANCED_ROUTER=y
|> 
|> but i'm not sure if these are the required ones.
|> 
|> 73, Snitt

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Help - Getting an error when trying to add prio to tables....
  2005-02-05 15:40 [LARTC] Help - Getting an error when trying to add prio to tables Pankaj Agarwal
  2005-02-05 17:09 ` [LARTC] Help - Getting an error when trying to add prio to Endre SZABO
  2005-02-05 17:29 ` Endre SZABO
@ 2005-02-05 17:29 ` Pankaj Agarwal
  2 siblings, 0 replies; 4+ messages in thread
From: Pankaj Agarwal @ 2005-02-05 17:29 UTC (permalink / raw)
  To: lartc

tried these but not working... i edited the file /usr/src/linux/.config

CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_FWMARK=y
CONFIG_IP_ROUTE_NAT=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_TOS=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_ROUTE_LARGE_TABLES=y

looking for you help


----- Original Message ----- 
From: "Endre SZABO" <snitt@urbnet.hu>
To: "Pankaj Agarwal" <pankaj@toughguy.net>
Cc: <lartc@mailman.ds9a.nl>
Sent: Saturday, February 05, 2005 10:39 PM
Subject: Re: [LARTC] Help - Getting an error when trying to add prio to 
tables....


> compile a kernel with the required options checked first, like:
>
> CONFIG_IP_ROUTE_MULTIPATH=y
> CONFIG_IP_MULTIPLE_TABLES=y
> CONFIG_IP_ADVANCED_ROUTER=y
>
> but i'm not sure if these are the required ones.
>
> 73, Snitt
>
> .-- Valaszul Pankaj Agarwal levelere:
>
> |Hi,
> |
> |I am getting the errors given below, when I am trying to add the prio to 
> any
> |table. What can be the problem and how can i resolve it.... Kindly help
> |
> |[root /root]# ip rule
> |RTNETLINK answers: Invalid argument
> |Dump terminated
> |
> |[root /root]# ip rule list
> |RTNETLINK answers: Invalid argument
> |Dump terminated
> |
> |[root /root]# ip rule list table main
> |"ip rule show" need not eny arguments.
> |
> |[root /root]# ip rule show
> |RTNETLINK answers: Invalid argument
> |Dump terminated
> |
> |[root /root]# ip rule add prio 50 table main
> |RTNETLINK answers: Invalid argument
> |
> |[root /root]# ip route
> |192.168.2.5 dev eth1  scope link
> |61.11.104.63 dev eth0  scope link
> |220.227.153.48/28 dev eth2  proto kernel  scope link  src 220.227.153.61
> |192.168.2.0/24 dev eth1  proto kernel  scope link  src 192.168.2.5
> |61.11.104.0/24 dev eth0  proto kernel  scope link  src 61.11.104.63
> |127.0.0.0/8 dev lo  scope link
> |default via 61.11.104.1 dev eth0
> |
> |[root /root]# ip
> |Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
> |where  OBJECT := { link | addr | route | rule | neigh | tunnel |
> |           maddr | mroute | monitor }
> |OPTIONS := { -V[ersion] | -s[tatistics] | -r[esolve] |
> |-f[amily] { inet | inet6 | ipx | dnet | link }
> || -o[neline] }
> |
> |Thanks and Regards,
> |
> |Pankaj Agarwal
> |_______________________________________________
> |LARTC mailing list / LARTC@mailman.ds9a.nl
> |http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> |
> |
> | 

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-05 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-05 15:40 [LARTC] Help - Getting an error when trying to add prio to tables Pankaj Agarwal
2005-02-05 17:09 ` [LARTC] Help - Getting an error when trying to add prio to Endre SZABO
2005-02-05 17:29 ` Endre SZABO
2005-02-05 17:29 ` [LARTC] Help - Getting an error when trying to add prio to tables Pankaj Agarwal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.