Changes between Version 7 and Version 8 of Tutorials/k0SDR/Tutorial27


Ignore:
Timestamp:
Jul 20, 2022, 3:16:10 PM (22 months ago)
Author:
prasanthi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/k0SDR/Tutorial27

    v7 v8  
    1919
    2020==== Prepare network setup for USRP access ====
    21 Each X310 on SB2 is connected to its respective node through a 10G interface adapter installed in Port 0 of the USRP. In this configuration, the X310 will have a default IP address of 192.168.40.2 (see [http://files.ettus.com/manual/page_usrp_x3x0.html#x3x0_setup_network_host_interface X310 User Manual]). To setup network connectivity, make sure eth2 is configured with an address in the 192.168.40.0/24 subnet .
     21Each X310 on SB2 is connected to its respective node through a 10G interface adapter installed in Port 1 of the USRP. In this configuration, the X310 will have a default IP address of 192.168.40.2 (see [http://files.ettus.com/manual/page_usrp_x3x0.html#x3x0_setup_network_host_interface X310 User Manual]). To setup network connectivity, make sure DATA2 interface is configured with an address in the 192.168.40.0/24 subnet.
    2222{{{
    23 root@node1-1:~# ifconfig eth2 192.168.40.1 netmask 255.255.255.0 mtu 9000
     23root@node1-1:~# ifconfig DATA2 192.168.40.1 netmask 255.255.255.0 mtu 9000
    2424root@node1-1:~# ifconfig -a
    25 eth0      Link encap:Ethernet  HWaddr 70:8b:cd:bc:84:4b
    26           BROADCAST MULTICAST  MTU:1500  Metric:1
    27           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    28           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    29           collisions:0 txqueuelen:1000
    30           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
     25CTRL: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
     26        inet 10.12.1.1  netmask 255.255.0.0  broadcast 10.12.255.255
     27        inet6 fe80::728b:cdff:febc:844a  prefixlen 64  scopeid 0x20<link>
     28        ether 70:8b:cd:bc:84:4a  txqueuelen 1000  (Ethernet)
     29        RX packets 1048  bytes 91762 (91.7 KB)
     30        RX errors 0  dropped 559  overruns 0  frame 0
     31        TX packets 335  bytes 38105 (38.1 KB)
     32        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     33        device interrupt 20  memory 0xf7d00000-f7d20000
    3134
    32 eth1      Link encap:Ethernet  HWaddr 70:8b:cd:bc:84:4a
    33           inet addr:10.12.1.1  Bcast:10.12.255.255  Mask:255.255.0.0
    34           inet6 addr: fe80::728b:cdff:febc:844a/64 Scope:Link
    35           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    36           RX packets:166714 errors:0 dropped:0 overruns:0 frame:0
    37           TX packets:79009 errors:0 dropped:0 overruns:0 carrier:0
    38           collisions:0 txqueuelen:1000
    39           RX bytes:246154097 (246.1 MB)  TX bytes:6546168 (6.5 MB)
    40           Interrupt:20 Memory:f7d00000-f7d20000
     35DATA1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
     36        inet6 fe80::728b:cdff:febc:844b  prefixlen 64  scopeid 0x20<link>
     37        ether 70:8b:cd:bc:84:4b  txqueuelen 1000  (Ethernet)
     38        RX packets 625  bytes 56232 (56.2 KB)
     39        RX errors 0  dropped 559  overruns 0  frame 0
     40        TX packets 38  bytes 9320 (9.3 KB)
     41        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    4142
    42 eth2      Link encap:Ethernet  HWaddr f4:52:14:83:b7:20
    43           inet addr:192.168.40.1  Bcast:192.168.40.255  Mask:255.255.255.0
    44           inet6 addr: fe80::f652:14ff:fe83:b720/64 Scope:Link
    45           UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
    46           RX packets:5263 errors:0 dropped:0 overruns:0 frame:0
    47           TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
    48           collisions:0 txqueuelen:1000
    49           RX bytes:315780 (315.7 KB)  TX bytes:3365 (3.3 KB)
     43DATA2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
     44        inet 192.168.40.1  netmask 255.255.0.0  broadcast 192.168.255.255
     45        inet6 fe80::f652:14ff:fe83:b720  prefixlen 64  scopeid 0x20<link>
     46        ether f4:52:14:83:b7:20  txqueuelen 1000  (Ethernet)
     47        RX packets 75  bytes 4500 (4.5 KB)
     48        RX errors 0  dropped 0  overruns 0  frame 0
     49        TX packets 43  bytes 10530 (10.5 KB)
     50        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    5051
    51 lo        Link encap:Local Loopback
    52           inet addr:127.0.0.1  Mask:255.0.0.0
    53           inet6 addr: ::1/128 Scope:Host
    54           UP LOOPBACK RUNNING  MTU:65536  Metric:1
    55           RX packets:325 errors:0 dropped:0 overruns:0 frame:0
    56           TX packets:325 errors:0 dropped:0 overruns:0 carrier:0
    57           collisions:0 txqueuelen:1
    58           RX bytes:25308 (25.3 KB)  TX bytes:25308 (25.3 KB)
    59 
     52lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
     53        inet 127.0.0.1  netmask 255.0.0.0
     54        inet6 ::1  prefixlen 128  scopeid 0x10<host>
     55        loop  txqueuelen 1000  (Local Loopback)
     56        RX packets 210  bytes 17093 (17.0 KB)
     57        RX errors 0  dropped 0  overruns 0  frame 0
     58        TX packets 210  bytes 17093 (17.0 KB)
     59        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    6060}}}
    6161With this setup, each node should be able to access the X310 connected to it. Check USRP access with uhd_find_devices and uhd_usrp_probe commands.
    6262{{{
    6363root@node1-1:~# uhd_find_devices
    64 [INFO] [UHD] linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.13.0.HEAD-0-g5b236772
     64[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
    6565--------------------------------------------------
    6666-- UHD Device 0
    6767--------------------------------------------------
    6868Device Address:
    69     serial: 30F110A
     69    serial: 31B8F3F
    7070    addr: 192.168.40.2
    71     fpga: HG
    72     name:
     71    fpga: XG
     72    name: sdr1-1
    7373    product: X310
    7474    type: x300
    75 
    7675
    7776root@node1-1:~# uhd_usrp_probe