diff --git a/sysdep/linux/krt-sys.h b/sysdep/linux/krt-sys.h
index 7b3043a..4219e97 100644
--- a/sysdep/linux/krt-sys.h
+++ b/sysdep/linux/krt-sys.h
@@ -30,7 +30,7 @@ static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_c
 
 /* Kernel routes */
 
-#define NL_NUM_TABLES 256
+#define NL_NUM_TABLES 32767
 
 struct krt_params {
   int table_id;				/* Kernel table ID we sync with */
