---
title: "OSMC (Open Source Media Center): Configuration du réseau sur la version 4.14.34 (August 2018)"
id: "15222"
type: "post"
slug: "osmc-open-source-media-center-configuration-du-reseau-sur-la-version-4-14-34-august-2018"
published_at: "2018-09-27T18:06:39+00:00"
modified_at: "2018-09-27T19:15:54+00:00"
url: "https://www.cyber-neurones.org/2018/09/osmc-open-source-media-center-configuration-du-reseau-sur-la-version-4-14-34-august-2018/"
markdown_url: "https://www.cyber-neurones.org/2018/09/osmc-open-source-media-center-configuration-du-reseau-sur-la-version-4-14-34-august-2018.md"
excerpt: "Voici les étapes, on commence par vérifier que l’on a la même version que moi : osmc@osmc:~$ uname -a Linux osmc 4.14.34-6-osmc #1 SMP PREEMPT Thu Sep 6 00:47:56 UTC 2018 armv7l GNU/Linux osmc@osmc:~$ cat /etc/*release PRETTY_NAME=\"Open Source Media Center\"..."
taxonomy_category:
  - "Raspbian : Pour Raspberry"
taxonomy_post_tag:
  - "osmc"
---

Voici les étapes, on commence par vérifier que l’on a la même version que moi :

```
osmc@osmc:~$ uname -a
Linux osmc 4.14.34-6-osmc #1 SMP PREEMPT Thu Sep 6 00:47:56 UTC 2018 armv7l GNU/Linux

osmc@osmc:~$ cat /etc/*release
PRETTY_NAME="Open Source Media Center"
NAME="OSMC"
VERSION="August 2018"
VERSION_ID="2018.08-2"
ID=osmc
ID_LIKE=debian

ANSI_COLOR="1;31"
HOME_URL="https://www.osmc.tv"
SUPPORT_URL="https://www.osmc.tv"
BUG_REPORT_URL="https://www.osmc.tv"

osmc@osmc:~$ sudo mii-tool eth0
eth0: negotiated 1000baseT-HD flow-control, link ok
```

Maintenant que vous avez vu que vous aviez la même version que moi, on peut commencer :

```
osmc@osmc:~$ sudo tree /var/lib/connman/
/var/lib/connman/
├── ethernet_b827eb2140a5_cable
│   ├── data
│   ├── settings
│   └── settings.L2TKPZ
└── settings

1 directory, 4 files

osmc@osmc:~$ which connmanctl
/usr/bin/connmanctl

osmc@osmc:~$ /usr/bin/connmanctl
connmanctl> config ethernet_b827eb2140a5_cable --ipv4 manual 192.168.0.80 255.255.255.0 192.168.0.254
```

Il y a une déconnexion …

```
osmc@osmc:~$ ifconfig 
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.0.80  netmask 255.255.255.0  broadcast 192.168.0.255
        ether b8:27:eb:21:40:a5  txqueuelen 1000  (Ethernet)
        RX packets 289041  bytes 103329110 (98.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 343245  bytes 65576195 (62.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Boucle locale)
        RX packets 352082  bytes 49704012 (47.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 352082  bytes 49704012 (47.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

osmc@osmc:~$ route
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
gateway         0.0.0.0         255.255.255.255 UH    0      0        0 eth0
```

Ensuite on peut ajouter les DNS :

```
osmc@osmc:~$ connmanctl services
*AR Wired                ethernet_b827eb2140a5_cable

connmanctl> config ethernet_b827eb2140a5_cable --nameservers 8.8.8.8

connmanctl> quit
```

On peut aussi ajouter plusieurs DNS, pour vérifier on peut faire un cat sur résolv.conf :

```
connmanctl> config ethernet_b827eb2140a5_cable --nameservers 212.27.40.241 212.27.40.240 8.8.8.8

connmanctl> quit

osmc@osmc:~$ cat /etc/resolv.conf 
# Generated by Connection Manager
nameserver 212.27.40.241
nameserver 212.27.40.240
nameserver 8.8.8.8
```

### Related posts:

[Installation un media-center avec OSMC sur un Raspberry Pi 3 Model B](https://www.cyber-neurones.org/2016/09/installation-un-media-center-avec-osmc-sur-un-raspberry-pi-3-model-b/)
[OSMC/Raspberry : Basculement d’un carte SD à un disque dur SSD.](https://www.cyber-neurones.org/2018/09/osmc-raspberry-basculement-dun-carte-sd-a-un-disque-dur-ssd/)
[OSMC/Raspberry : Ajout de ELK ( Elasticsearch / Logstash / Kibana / Beats / Nginx )](https://www.cyber-neurones.org/2018/09/osmc-raspberry-ajout-de-elk-elasticsearch-logstash-kibana-beats-nginx/)
