[Xorp-users] Static route configuration
Jake Kim
drcaesar@yahoo.com
Sun, 15 May 2005 22:11:35 -0700 (PDT)
Pavlin,
Thanks for your reply. Yes, I configured those two,
interfaces and fea too. I just didn't explain it. ;)
Three interfaces are configured in R1 machine.
interfaces {
interface fxp0 {
description: "Ethernet"
vif fxp0 {
disable: false
address 192.168.1.20 {
disable: false
prefix-length: 24
broadcast: 192.168.1.255
}
}
}
interface fxp1 {
description: "Ethernet"
vif fxp1 {
disable: false
address 192.168.2.21 {
disable: false
prefix-length: 24
broadcast: 192.168.2.255
}
}
}
interface fxp2 {
description: "Ethernet"
vif fxp2 {
disable: false
address 192.168.2.22 {
disable: false
prefix-length: 24
broadcast: 192.168.1.255
}
}
}
disable: false
}
fea {
unicast-forwarding4 {
disable: false
}
}
and the static protocol.
What do I have to configure more?
Thanks,
Jake
-----Original Message-----
From: Pavlin Radoslavov [mailto:pavlin@icir.org]
Sent: Sunday, May 15, 2005 8:46 PM
To: drcaesar@ecs.fullerton.edu
Cc: xorp-users@xorp.org
Subject: Re: [Xorp-users] Static route configuration
Jake,
You need to configure the network interfaces that are
going to be
used by XORP (the "interfaces {}" configuration
section).
Also, in your case you should enable the unicast
forwarding as well:
fea {
unicast-forwarding4 {
disable: false
}
}
Regards,
Pavlin
> Hi everyone,
>
>
>
> I'm having a hard time in configuring static routes.
>
> Following is the topology.
>
>
>
> [RT2]
>
> / \
>
> / \
>
> [PC1]------------[RT1]-----[RT3]-----------[PC2]
>
>
>
>
>
> I configured only static protocol in the config.boot
file on RT1 machine.
>
> protocols {
>
> static {
>
> route4 192.168.1.0/24 {
>
> next-hop:
192.168.1.20 /* interface
> to PC 1 */
>
> metric: 1
>
> }
>
> route4 192.168.2.0/24 {
>
> next-hop:
192.168.2.21 /* interface
> to RT2 */
>
> metric: 1
>
> }
>
> route4 192.168.4.0/24 {
>
> next-hop:
192.168.4.22 /* interface
> to RT3 */
>
> metric: 1
>
> }
>
> }
>
> }
>
>
>
> Ping never reaches to RT2 and RT3 from PC1. I was
going to set up BGP in the
> first place, but it didn't work. So I tried static
route to see if it works
> but it doesn't work either. What configuration
should I check more? All
> machines are running on FreeBSD and Xorp is running
on RT1, 2, and 3
> machines.