[nos-bbs] FW: Jnos networking problem
Mark Phillips
g7ltt at g7ltt.com
Sat Aug 17 11:50:47 EDT 2013
Here's a cutting from my autoexec.nos. It creates the JNOS side of the tun
interface. Shells out to the OS to create the Linux side of the tun
interface. Issues ARP commands and then finally adds some routes so that
things will flow up and down the tun.
# Set up TUN port ********************************************
attach tun tun0 1500 0
ifconfig tun0 ipaddress 44.64.28.6
ifconfig tun0 netmask 255.255.255.248
ifconfig tun0 mtu 1500
pause 1
shell echo 1 > /proc/sys/net/ipv4/ip_forward # make sure that we are
forwarding IP on the Linux box - won;t work without this
shell ifconfig tun0 44.64.28.2 netmask 255.255.255.248 pointopoint
44.64.28.6 up # set up the Linux side of the interface
shell arp -i eth0 -Ds 44.64.28.6 eth0 pub # publish the ARP so that Layer2
is satisfied
shell route add -host 44.64.28.6 tun0 # add some routes so that Linux
knows where to find us
shell route add -net 44.64.28.8/29 tun0
#
ifconfig encap ipaddress 44.64.28.6
Hope this helps.
Mark
On Fri, Aug 16, 2013 at 7:40 PM, Mark Phillips <g7ltt at g7ltt.com> wrote:
> Erm ......
>
> Eth1?
>
> You got 2 network cards in there?
>
> Have you added routes? Whats does the JNOS trace screen show you for tun0?
>
> Mark
> On Aug 16, 2013 11:52 AM, "Miguel Bahi Cruz" <miguelbahi_cruz at hotmail.com>
> wrote:
>
>>
>>
>> ------------------------------
>> From: miguelbahi_cruz at hotmail.com
>> To: nos-bbs at tapr.org
>> Subject: RE: [nos-bbs] Jnos networking problem
>> Date: Fri, 16 Aug 2013 17:36:27 +0200
>>
>> Mark, Gustavo, thanks for your suggestions.
>>
>> Yes, the problem continues, tryng the arp command.
>>
>> after publish the arp command the result is :
>>
>> arp -i eth1 -Ds 192.168.0.201 eth1 pub
>>
>> root at eb5jequxserver:/etc# arp
>>
>> Addres HWtype AddresHW Indic Máscara
>> Interfaz
>> 192.168.0.61 ether 00:1f:16:9c:49:00 C
>> eth1
>> Livebox ether 84:9c:a6:d1:4f:8d C
>> eth1
>> 192.168.0.201 * <from_interface> MP
>> eth1
>>
>> If the problem is the interface 201 don't have is own "virtual" mac, is
>> possible create one?
>> note : .61 is my windows pc, livebox is the adsl router.
>>
>>
>>
>> this is the result of ifconfig jnos command, for best diagnose of the
>> problem.
>>
>> jnos> ifconfig
>> tun0 IP addr 192.168.0.201 MTU 1500 Link encap TUN
>> flags 0x0 trace 0x0 netmask 0x00000255 broadcast 0.0.0.0
>> sent: ip 18 tot 18 idle 0:00:04:13
>> recv: ip 22 tot 22 idle 0:00:04:13
>> loopback IP addr 127.0.0.1 MTU 65535 Link encap None
>> flags 0x0 trace 0x0 netmask 0xffffffff broadcast 255.255.255.255
>> sent: ip 0 tot 0 idle 0:00:14:39
>> recv: ip 0 tot 0 idle 0:00:14:39
>> encap IP addr 44.44.44.44 MTU 1500 Link encap None
>> flags 0x0 trace 0x0 netmask 0xffffffff broadcast 255.255.255.255
>> sent: ip 0 tot 0 idle 0:00:14:39
>> recv: ip 0 tot 0 idle 0:00:14:39
>>
>> (44.44.44.44 ) is a "dummy " test ham ip addres.
>>
>> 73's
>>
>>
>>
>>
>> _______________________________________________
>> nos-bbs mailing list
>> nos-bbs at tapr.org
>> http://www.tapr.org/mailman/listinfo/nos-bbs
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20130817/ab8f8899/attachment.html>
More information about the nos-bbs
mailing list