Changes between Version 9 and Version 10 of Tutorials/k0SDR/Tutorial00b


Ignore:
Timestamp:
Jul 25, 2022, 5:36:57 PM (22 months ago)
Author:
yuezhenglingluan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/k0SDR/Tutorial00b

    v9 v10  
    2121We should make sure that both of the nodes are turned off:
    2222
    23 {{{mpk2138@console:~$ omf tell -a offh -t node1-1,node1-2}}}
     23{{{mpk2138@console:~$ omf tell -a offh -t all}}}
    2424
    2525Then, we want to image the nodes with the following commands:
    2626
    27 {{{mpk2138@console:~$ omf load -i baseline-gr-uhd4-rc.ndz -t node1-1}}}
    28 
    29 {{{mpk2138@console:~$ omf load -i baseline-gr-uhd4-rc.ndz -t node1-2}}}
     27{{{mpk2138@console:~$ omf load -i ubuntu1804-uhd3.15-gr3.8.ndz -t all}}}
    3028
    3129Please note, it will take time to image the node, make sure that the first image process is finished before attempting to start the second.
     
    3331Once both nodes are imaged, we can now turn them back on:
    3432
    35 {{{mpk2138@console:~$ omf tell -a on -t node1-1,node1-2}}}
     33{{{mpk2138@console:~$ omf tell -a on -t all}}}
    3634
    3735==== Accessing the Nodes ====
     
    8482Each node is physically connected to one USRP X310 over a 10 Gbps Ethernet connection. However, the default network card interface configuration will need to be changed so that the node can communicate to the correct IP address.
    8583
    86 The USRP X310 uses a default IP address of {{{192.168.40.2}}} on its first 10 Gbps interface, which is the interface being used to connect to the node. So on '''both nodes''', run the following command to setup the network interface to use the correct IP address:
    87 
    88 {{{root@node1-X:~# ifconfig enp1s0 192.168.40.1}}}
    89 
     84The USRP X310 uses a default IP address of {{{192.168.40.2}}} on its first 10 Gbps interface, which is the interface being used to connect to the node. So on '''both nodes''', run the following command to edit the network interface netplan file to use the correct IP address:
     85{{{
     86root@node1-X:~# cd /etc/netplan/
     87root@node1-X:/etc/netplan# rm -rf 00-netplan-ifrename.yaml
     88root@node1-X:/etc/netplan# systemctl disable ifrename.service
     89root@node1-X:/etc/netplan# cp  00-netplan.yaml.bak cp  00-netplan.yaml
     90root@node1-X:/etc/netplan# nano 00-netplan.yaml
     91}}}
     92Add the following lines to the end of the file that we opened with nano:
     93{{{
     94    enp4s0:
     95      dhcp4: false
     96      addresses: [192.168.40.1/24]
     97}}}
     98Apply the new configuration
     99{{{
     100root@node1-X:/etc/netplan# netplan apply
     101}}}
     102and then exit node1-X to console and reboot the node:
     103{{{
     104root@node1-X:/etc/netplan# exit
     105username@console:~$ omf tell -a offh -t node1-X
     106username@console:~$ omf tell -a on -t node1-X
     107}}}
     108now enter the node using:
     109{{{
     110ssh root@node1-X
     111}}}
     112verify the netplan settings have been applied by running
     113{{{
     114root@node1-X:~# ifconfig
     115}}}
     116and you should see something like this:
     117{{{
     118enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
     119        inet 192.168.40.1  netmask 255.255.255.0  broadcast 192.168.40.255
     120        inet6 fe80::f652:14ff:fe83:b720  prefixlen 64  scopeid 0x20<link>
     121        ether f4:52:14:83:b7:20  txqueuelen 1000  (Ethernet)
     122        RX packets 9224307  bytes 553530800 (553.5 MB)
     123        RX errors 0  dropped 0  overruns 0  frame 0
     124        TX packets 118792339  bytes 155610874575 (155.6 GB)
     125        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     126}}}
    90127By setting the IP address of the interface named {{{enp1s0}}} on the node to {{{192.168.40.1}}} and using the default subnet mask of {{{255.255.255.0}}}, we are then able to communicate with any device with an IP between {{{192.168.40.2}}} and {{{192.168.40.254}}} using that interface. Since the USRP X310 has IP address {{{192.168.40.2}}} and is connected to interface {{{enp1s0}}}, we can now communicate with it. Confirm this with the following command:
    91128