[Xorp-users] How can i match a static route with the right interface?

riccardo.sciaccaluga@tin.it riccardo.sciaccaluga@tin.it" <riccardo.sciaccaluga@tin.it
Tue, 18 Oct 2005 16:52:14 +0100 (GMT+01:00)


I think i just did a sintax mistake in my config.boot file!
I simply 
tried to manage two static route on my network interfaces with the 
following config file:


interfaces {
interface eth6 {
        
description:"data interface"
        disable:false
        vif eth6 {
                disable:false
                address 192.168.1.6 {
                        prefix-length: 24
                        
broadcast: 192.168.1.255
                        disable:false
                        }
                }
        }
interface eth7 {
        description:"data interface"
        disable:false
        vif 
eth7 {
                disable:false
                address 
192.168.1.7 {
                        prefix-length: 24
                        broadcast: 192.168.1.255
                        disable:false
                        }
                }
        }
interface eth8 {
        description:"data 
interface"
        disable:false
        vif eth8 {
                
disable:false
                address 192.168.1.8 {
                        prefix-length: 24
                   }
        
}
interface eth9 {
        description:"data interface"
        disable:
false
        vif eth9 {
                disable:false
                
address 192.168.1.9 {
                        prefix-length: 24
                        broadcast: 192.168.1.255
                        disable:false
                        }
                }
        }
}
fea {
unicast-forwarding4 {
        
disable:false
        }
}
protocols {
static {
         route4 
192.168.7.0/24 {
                next-hop: 192.168.1.9
                
metric:1
                        }
        }
static {
        route4 
192.168.8.0/24 {
                next-hop: 192.168.1.8
                
metric:1
                                }
                }
}


 The 
problem i had is this:monitoring the unicast static routes i set i 
found that the device both of them are matched with eth6!how can i do 
to match for example 192.168.7.0/24 subnet with the net interface eth9 
and 192.168.8.0/24 subnet with the net interface ath8?
Thanks in advance