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 | | |
| 84 | 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 edit the network interface netplan file to use the correct IP address: |
| 85 | {{{ |
| 86 | root@node1-X:~# cd /etc/netplan/ |
| 87 | root@node1-X:/etc/netplan# rm -rf 00-netplan-ifrename.yaml |
| 88 | root@node1-X:/etc/netplan# systemctl disable ifrename.service |
| 89 | root@node1-X:/etc/netplan# cp 00-netplan.yaml.bak cp 00-netplan.yaml |
| 90 | root@node1-X:/etc/netplan# nano 00-netplan.yaml |
| 91 | }}} |
| 92 | Add 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 | }}} |
| 98 | Apply the new configuration |
| 99 | {{{ |
| 100 | root@node1-X:/etc/netplan# netplan apply |
| 101 | }}} |
| 102 | and then exit node1-X to console and reboot the node: |
| 103 | {{{ |
| 104 | root@node1-X:/etc/netplan# exit |
| 105 | username@console:~$ omf tell -a offh -t node1-X |
| 106 | username@console:~$ omf tell -a on -t node1-X |
| 107 | }}} |
| 108 | now enter the node using: |
| 109 | {{{ |
| 110 | ssh root@node1-X |
| 111 | }}} |
| 112 | verify the netplan settings have been applied by running |
| 113 | {{{ |
| 114 | root@node1-X:~# ifconfig |
| 115 | }}} |
| 116 | and you should see something like this: |
| 117 | {{{ |
| 118 | enp1s0: 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 | }}} |