<HTML ><HEAD ><TITLE >Configuring a NET/ROM interface for TCP/IP</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.63 "><LINK REL="HOME" TITLE="Linux Amateur Radio AX.25 HOWTO" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Configuring a NET/ROM port" HREF="x1218.html"><LINK REL="NEXT" TITLE="Configuring a ROSE port" HREF="x1374.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Linux Amateur Radio AX.25 HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="x1218.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x1374.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN1343" >9. Configuring a NET/ROM interface for TCP/IP</A ></H1 ><P >Configuring a NET/ROM interface for TCP/IP is almost identical to configuring an AX.25 interface for TCP/IP.</P ><P >Again you can either specify the ip address and mtu on the <EM >nrattach</EM > command line, or use the <EM >ifconfig</EM > and <EM >route</EM > commands, but you need to manually add <EM >arp</EM > entries for hosts you wish to route to because there is no mechanism available for your machine to learn what NET/ROM address it should use to reach a particular IP host.</P ><P >So, to create an <TT CLASS="LITERAL" >nr0</TT > device with an IP address of <TT CLASS="LITERAL" >44.136.8.5</TT >, an mtu of <TT CLASS="LITERAL" >512</TT > and configured with the details from the <TT CLASS="LITERAL" >/etc/ax25/nrports</TT > file for a NET/ROM port named <TT CLASS="LITERAL" >netrom</TT > you would use:</P ><P ><TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" ># /usr/sbin/nrattach -i 44.136.8.5 -m 512 netrom # route add 44.136.8.5 nr0</PRE ></FONT ></TD ></TR ></TABLE ></P ><P >or you could use something like the following commands manually:</P ><P ><TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" ># /usr/sbin/nrattach netrom # ifconfig nr0 44.136.8.5 netmask 255.255.255.0 hw netrom VK2KTJ-9 # route add 44.136.8.5 nr0</PRE ></FONT ></TD ></TR ></TABLE ></P ><P >Then for each IP host you wish to reach via NET/ROM you need to set route and arp entries. To reach a destination host with an IP address of <TT CLASS="LITERAL" >44.136.80.4</TT > at NET/ROM address <TT CLASS="LITERAL" >BBS:VK3BBS</TT > via a NET/ROM neighbour with callsign <TT CLASS="LITERAL" >VK2SUT-0</TT > you would use commands as follows:</P ><P ><TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" ># route add 44.136.80.4 nr0 # arp -t netrom -s 44.136.80.4 vk2sut-0 # nrparms -nodes vk3bbs + BBS 120 6 sl0 vk2sut-0</PRE ></FONT ></TD ></TR ></TABLE ></P ><P >The `<TT CLASS="LITERAL" >120</TT >' and `<TT CLASS="LITERAL" >6</TT >' arguments to the <EM >nrparms</EM > command are the NET/ROM <EM >quality</EM > and <EM >obsolescence count</EM > values for the route.</P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="x1218.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x1374.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Configuring a NET/ROM port</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Configuring a ROSE port</TD ></TR ></TABLE ></DIV ></BODY ></HTML >