TP sysres IMA2a5 2015/2016 G3 : Différence entre versions

De Wiki de Projets IMA
m
Ligne 65 : Ligne 65 :
  
 
<h5>    1) Configuration du Wifi sur l'eeePC </h5>
 
<h5>    1) Configuration du Wifi sur l'eeePC </h5>
 +
 +
pifou@heron:~$ su
 +
Mot de passe :
 +
root@heron:/home/pifou# ifconfig
 +
lo        Link encap:Boucle locale 
 +
          inet adr:127.0.0.1  Masque:255.0.0.0
 +
          adr inet6: ::1/128 Scope:Hôte
 +
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
 +
          RX packets:2348 errors:0 dropped:0 overruns:0 frame:0
 +
          TX packets:2348 errors:0 dropped:0 overruns:0 carrier:0
 +
          collisions:0 lg file transmission:0
 +
          RX bytes:244556 (238.8 KiB)  TX bytes:244556 (238.8 KiB)
 +
 +
wlan0    Link encap:Ethernet  HWaddr 00:22:43:43:e7:7d 
 +
          inet adr:172.26.79.61  Bcast:172.26.79.255  Masque:255.255.240.0
 +
          adr inet6: fe80::222:43ff:fe43:e77d/64 Scope:Lien
 +
          adr inet6: 2001:660:4401:6006:222:43ff:fe43:e77d/64 Scope:Global
 +
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 +
          RX packets:12046 errors:0 dropped:1471 overruns:0 frame:0
 +
          TX packets:9787 errors:0 dropped:0 overruns:0 carrier:0
 +
          collisions:0 lg file transmission:1000
 +
          RX bytes:7742849 (7.3 MiB)  TX bytes:1442360 (1.3 MiB)
 +
 +
 +
 +
 +
iwconfig wlan0 essid T2
 +
 +
 +
on est bien connecté :
 +
 +
wlan0    IEEE 802.11bgn  ESSID:"T2" 
 +
          Mode:Managed  Frequency:2.447 GHz  Access Point: C4:14:3C:12:EA:00 
 +
          Bit Rate=54 Mb/s  Tx-Power=20 dBm 
 +
          Retry short limit:7  RTS thr:off  Fragment thr:off
 +
          Encryption key:1111-1111-11
 +
          Power Management:off
 +
          Link Quality=70/70  Signal level=-38 dBm 
 +
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
 +
          Tx excessive retries:0  Invalid misc:4104  Missed beacon:0
 +
 +
lo        no wireless extensions.
 +
 +
eth0      no wireless extensions.
  
  

Version du 28 octobre 2015 à 10:18

Projet Système & Réseaux IMA2A S9


Partie I - Configuration du point d’accès

a) Restriction par adresse MAC

Ci-dessous, le tableau regroupant Les adresses et Vlan associés aux élèves :

Nomadresse MAC
Nounours00:15:af:e7::19:f3
Jeuno00:15:af:e6:ed:b1
John00:22:43:43:e7:7d
Loki00:15:af:e7:64:03
1) Configuration du point d’accès Cisco

Conexion a la borne Cisco : -Branchement en comunication serie sur le port RJ45 (Console de la Cisco).

pifou@zabeth04:~$ su
pifou@zabeth04:~$ minicom

// conexion au point Cisco 
ap#enable
ap#Config t 

Il faut autoriser les adresses mac désignés à ce connecter aux point d’accès et refuser l’accès des autres

ap(config)#no access-list 701 deny  0000.0000.0000 ffff.ffff.ffff               
ap(config)#access-list 701 permit  0015.afe7.6403  0000.0000.0000               
ap(config)#access-list 701 permit  0015.afe6.edb1  0000.0000.0000 
ap(config)#access-list 701 permit  0015.afe7.19f3  0000.0000.0000
ap(config)#access-list 701 permit  0015.afe6.edb1  0000.0000.0000 
ap(config)#access-list 701 deny    0000.0000.0000  ffff.ffff.ffff 


Configuration du SSID

ap(config)#dot11 ssid T2
ap(config-ssid)#dot11 ssid T2 
ap(config-ssid)#authentication open
ap(config-ssid)#guest-mode 
ap(config)#interface dot11Radio0 

ap(config-if)#ssid T2
ap(config-if)#encryption key 1
ap(config-if)#encryption key 1 size 40bit 0 01abcd1532 transmit-key
ap(config-if)#encryption mode Wep mandatory 
end

ap(config)#interface Dot11Radio0
ap(config-if)#no shutdown

Pour voir si des machines sont connecté sur le point d’accès </pre> sh do11 associations </pre>

1) Configuration du Wifi sur l'eeePC

pifou@heron:~$ su Mot de passe : root@heron:/home/pifou# ifconfig lo Link encap:Boucle locale

         inet adr:127.0.0.1  Masque:255.0.0.0
         adr inet6: ::1/128 Scope:Hôte
         UP LOOPBACK RUNNING  MTU:65536  Metric:1
         RX packets:2348 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2348 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 lg file transmission:0 
         RX bytes:244556 (238.8 KiB)  TX bytes:244556 (238.8 KiB)

wlan0 Link encap:Ethernet HWaddr 00:22:43:43:e7:7d

         inet adr:172.26.79.61  Bcast:172.26.79.255  Masque:255.255.240.0
         adr inet6: fe80::222:43ff:fe43:e77d/64 Scope:Lien
         adr inet6: 2001:660:4401:6006:222:43ff:fe43:e77d/64 Scope:Global
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:12046 errors:0 dropped:1471 overruns:0 frame:0
         TX packets:9787 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 lg file transmission:1000 
         RX bytes:7742849 (7.3 MiB)  TX bytes:1442360 (1.3 MiB)



iwconfig wlan0 essid T2


on est bien connecté :

wlan0 IEEE 802.11bgn ESSID:"T2"

         Mode:Managed  Frequency:2.447 GHz  Access Point: C4:14:3C:12:EA:00   
         Bit Rate=54 Mb/s   Tx-Power=20 dBm   
         Retry short limit:7   RTS thr:off   Fragment thr:off
         Encryption key:1111-1111-11
         Power Management:off
         Link Quality=70/70  Signal level=-38 dBm  
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:4104   Missed beacon:0

lo no wireless extensions.

eth0 no wireless extensions.



Partie II - Installation de ma machine virtuel

// Conexion au serveur 
ssh root@cordouan.insecserv.deule.net

// Création de la Machine virtuel ( nom : chien)
xen-create-image --hostname chien --ip 193.48.57.181 --dir /usr/local/xen

// On observe la virtualisation
tail -f /var/log/xen-tools/chien.log

root@cordouan:~# cd /etc/xen/
root@cordouan:/etc/xen# vim chien.cfg 
// on met plus de memoire  => 1024
// conexion en mode bridge=IMA2a

root@cordouan:/etc/xen# xl list
root@cordouan:/etc/xen# xl create chien.cfg

// on se connecte a notre MV
root@cordouan:/etc/xen# xl console chien
/etc/ssh/sshd_config
PermitRootLogin yes

if down eth0 
ifup etho
apt-get purge network-manage 
apt-get purge systemd
/etc/inittable
// fin ligne tty0 ==> hvc0
// Configuration de eth0
# The primary network interface
auto eth0
iface eth0 inet static
 address 193.48.57.181
 netmask 255.255.255.240
 gatway 193.48.57.190

root@chien:~# ifdown eth0 
root@chien:~# ifup eth0