| | 15 | = Instructions = |
| | 16 | * Open up the Terminal application |
| | 17 | * Backup the default DHCP based network configuration: |
| | 18 | |
| | 19 | {{{ |
| | 20 | sudo cp /etc/network/interfaces /etc/netwrok/interfaces.default |
| | 21 | }}} |
| | 22 | |
| | 23 | * Next we will open the network interfaces file for editing |
| | 24 | |
| | 25 | {{{ |
| | 26 | sudo nano /etc/network/interfaces |
| | 27 | }}} |
| | 28 | |
| | 29 | * Now we will edit the interfaces file. factory default is: |
| | 30 | |
| | 31 | {{{ |
| | 32 | # interfaces(5) file used by ifup(8) and ifdown(8) |
| | 33 | auto lo |
| | 34 | iface lo inet loopback |
| | 35 | |
| | 36 | auto eno1 |
| | 37 | iface eno1 inet static |
| | 38 | address 192.168.100.100/24 |
| | 39 | |
| | 40 | auto enp5s0 |
| | 41 | # Comment out the following lines to disable enp5s0 |
| | 42 | iface enp5s0 inet dhcp |
| | 43 | # and then uncomment the following lines to disable enp5s0 |
| | 44 | #iface enp5s0 inet static |
| | 45 | # address 0.0.0.0 |
| | 46 | # netmask 255.255.255.255 |
| | 47 | |
| | 48 | auto can0 |
| | 49 | iface can0 inet manual |
| | 50 | # bitrate 1MBps |
| | 51 | # increase TX queue length because of the pulsed nature of |
| | 52 | # the traffic we generate |
| | 53 | pre-up /sbin/ip link set can0 type can bitrate 1000000 |
| | 54 | up /sbin/ip link set can0 up |
| | 55 | down /sbin/ip link set can0 down |
| | 56 | }}} |
| | 57 | |
| | 58 | |
| | 59 | * We will change it to: |
| | 60 | |
| | 61 | {{{ |
| | 62 | # interfaces(5) file used by ifup(8) and ifdown(8) |
| | 63 | auto lo |
| | 64 | iface lo inet loopback |
| | 65 | |
| | 66 | auto eno1 |
| | 67 | iface eno1 inet static |
| | 68 | address 192.168.100.100/24 |
| | 69 | |
| | 70 | auto enp5s0 |
| | 71 | iface enp5s0 inet static |
| | 72 | address 192.168.200.123/24 |
| | 73 | |
| | 74 | auto can0 |
| | 75 | iface can0 inet manual |
| | 76 | # bitrate 1MBps |
| | 77 | # increase TX queue length because of the pulsed nature of |
| | 78 | # the traffic we generate |
| | 79 | pre-up /sbin/ip link set can0 type can bitrate 1000000 |
| | 80 | up /sbin/ip link set can0 up |
| | 81 | }}} |