[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] tunnel.py command not working.
From: |
Andre Puschmann |
Subject: |
Re: [Discuss-gnuradio] tunnel.py command not working. |
Date: |
Wed, 27 Feb 2013 12:34:53 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
On 02/26/2013 06:55 PM, Sajjad Safdar wrote:
> HI,
> I am using tunnel.py command to setup a TCP/IP link between two usrp1.
> When i try to use the command , i get this error
>
> ./tunnel.py
> linux; GNU C++ version 4.6.3; Boost_104800; UHD_003.005.001-29-g3cb515f7
>
> Traceback (most recent call last):
> File "./tunnel.py", line 295, in <module>
> main()
> File "./tunnel.py", line 241, in main
> (tun_fd, tun_ifname) = open_tun_interface(options.tun_device_filename)
> File "./tunnel.py", line 79, in open_tun_interface
> ifs = ioctl(tun, TUNSETIFF, struct.pack("16sH", "gr%d", mode))
> IOError: [Errno 1] Operation not permitted
Try running it with root rights, i.e. "sudo ./tunnel.py". Also make sure
that the device actually exists, run "ifconfig tun0".
-Andre