<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>First off, the XORP manual is a very good place to start if you're a beginner like me; it's a relatively light read, and the individual chapters are short and to the point. For your use, I'd recommend chapters 2 and 3, just go get a good feel of how to configure interfaces. First off, if you're configuring the interface that is currently being used by the system, make sure there is no mismatch in the 'address', 'prefix-length' and 'broadcast' segments.&nbsp; The broadcast segment is mandatory when you're configuring an IPv4 address in XORP. Also, at each level in the interface configuration hierachy, (interface, vif and address) it is necessary to include the line 'disable: false', if you want to enable the interface, vif and address respectively. Also, it is not mandatory in some places, but
 it is good practice to include quotations for arguments that are described as text in the manual , eg 'interface "eth0" '. It's not mandatory here, but trust me, when you get to some policy and protocol sections, it might make you pull hairs forgetting this fact with some fields. Again, consult the manual to get the syntax for various sections, and where text fields are and are not required. So, assuming that your address settings are the same as the computer you are using, the config 'should' look like this:<br><br><div>interfaces {</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; interface "eth0" {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable: false<br></div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vif "eth0" {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address 192.168.1.100 {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; prefix-length: 24<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; broadcast: 192.168.1.255<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable: false<br></div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;}</div>
<div>}<br><br><div>fea {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unicast-forwarding4 {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable: false</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>}</div>
<div>&nbsp;</div>
<div>protocols {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route <a rel="nofollow" target="_blank"  href="http://192.168.1.101/24">192.168.1.101/24</a> {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next-hop: 192.168.1.100</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
}<br><br>Also, if you have a physical interface that has only one virtual interface, and you want that interface to use the same configuration that the system has assigned to the router, you can use the 'default-system-config' line to specify that the configuration should be obtained form the default system config (again, assuming that the physical interface has already been configured). NOTE that is&nbsp; the 'default-system-config' is used, then the 'vif' and 'address' sections must not be configured. Thus:<br><br><div>interfaces {</div>

<div>&nbsp;</div>



<div>&nbsp;&nbsp;&nbsp; interface "eth0" {<br>&nbsp;&nbsp;&nbsp; default-system-config<br>
&nbsp;&nbsp;&nbsp;&nbsp; disable: false&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;}</div>

<div>}<br>
<br>
<div>fea {</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unicast-forwarding4 {</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable: false</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>

<div>}</div>

<div>&nbsp;</div>

<div>protocols {</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static {</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route <a rel="nofollow" target="_blank"  href="http://192.168.1.101/24">192.168.1.101/24</a> {</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next-hop: 192.168.1.100</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>

}<br>
</div><br></div>This is just if you have physical interfaces that do not have any virtual interfaces. If you have vifs, then you can't use this. Sorry for being wordy, but I hope this helps.<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Robert Appleton &lt;appletrp@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> victor omwando &lt;vommwa@yahoo.com&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Friday, June 26, 2009 7:42:32 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Xorp-users] static configuration<br></font><br>
<div>Here it is below, any help to get this working is appreciated.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>interfaces {</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; interface eth0 {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vif eth0 {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; address 192.168.1.100 {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; prefix-length: 24</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;}</div>
<div>}</div>
<div>&nbsp;</div>
<div>fea {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unicast-forwarding4 {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disable: false</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>}</div>
<div>&nbsp;</div>
<div>protocols {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route <a rel="nofollow" target="_blank"  href="http://192.168.1.101/24">192.168.1.101/24</a> {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next-hop: 192.168.1.100</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>}<br><br></div>
<div class="gmail_quote">On Thu, Jun 25, 2009 at 4:35 PM, victor omwando <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:vommwa@yahoo.com" target="_blank" href="mailto:vommwa@yahoo.com">vommwa@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">
<div>I can't see your config file, can you copy and paste it on the email body and resend the email? I'm assuming it's pretty small.</div>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><br>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><font size="2" face="Tahoma">
<hr size="1">
<b><span style="font-weight: bold;">From:</span></b> Robert Appleton &lt;<a rel="nofollow" ymailto="mailto:appletrp@gmail.com" target="_blank" href="mailto:appletrp@gmail.com">appletrp@gmail.com</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> <a rel="nofollow" ymailto="mailto:xorp-users@xorp.org" target="_blank" href="mailto:xorp-users@xorp.org">xorp-users@xorp.org</a><br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, June 25, 2009 2:48:49 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [Xorp-users] static configuration<br></font>
<div class="im"><br>
<div>I just want to set up a basic static configuration so that I can start messing with different things. How do I make the configuration file? I have it set to eth0 but it says it can not add my IP address. How do you know what IP address to put down. I'm running Fedora 10 and I'm new to this. Any help is appreciated, let me know if I need to include more information. Thanks.</div>

<div>&nbsp;</div>
<div>-&nbsp;Robert Appleton</div></div></div></div></div><br></div></blockquote></div><br>
</div></div></div><br>

      </body></html>