TP sysres IMA2a5 2021/2022 G11 : Différence entre versions
De Wiki d'activités IMA
(Page créée avec « =Configuration du point wifi= configure terminal aaa authentication login EAP_MARIO group RADIUS_MARIO radius-server host 193.48.57.171 auth-port 1812 acct-port 1813 k... ») |
(→Configuration du point wifi) |
||
| Ligne 1 : | Ligne 1 : | ||
| − | =Configuration du point wifi= | + | =Configuration du point wifi (wifi 1)= |
configure terminal | configure terminal | ||
| Ligne 30 : | Ligne 30 : | ||
exit | exit | ||
write | write | ||
| + | |||
| + | |||
| + | == Installation de la machine virtuelle == | ||
| + | |||
| + | === Création de la VM === | ||
| + | |||
| + | xen-create-image --hostname=hawker --dhcp --dir=/usr/local/xen --dist=ascii --apt_proxy=http://proxy.polytech-lille.fr:3128 --mirror=http://fr.deb.devuan.org/merged/ --force | ||
| + | Création du fichier de configuration: | ||
| + | xen create /etc/xen/Mario.cfg | ||
| + | |||
| + | ==== Configuration réseau ==== | ||
| + | |||
| + | modification du fichier interfaces: | ||
| + | |||
| + | /etc/networks/interfaces | ||
| + | |||
| + | # The primary network interface | ||
| + | auto eth0 | ||
| + | iface eth0 inet6 auto | ||
| + | iface eth0 inet static | ||
| + | address 10.60.100.171/24 | ||
| + | up ip address add dev eth0 193.48.57.171/32 ; ip route add default via 10.60.100.254 src 193.48.57.171 | ||
| + | down ip address del dev eth0 193.48.57.171/32 ; ip route del default via 10.60.100.254 src 193.48.57.171 | ||
| + | |||
| + | - Redemarrage de la carte reseau | ||
| + | ifdown eth0 | ||
| + | ifup eth0 | ||
| + | |||
| + | ==== Configuration ssh ==== | ||
| + | |||
| + | Modification du ficchier /etc/ssh/sshd_config | ||
| + | |||
| + | PermitRootLogin yes | ||
| + | |||
| + | Relancer le service ssh : | ||
| + | |||
| + | service ssh restart | ||
| + | |||
| + | Accès à la VM : ssh@193.48.57.171 | ||
Version actuelle datée du 29 novembre 2021 à 21:07
Sommaire
Configuration du point wifi (wifi 1)
configure terminal aaa authentication login EAP_MARIO group RADIUS_MARIO radius-server host 193.48.57.171 auth-port 1812 acct-port 1813 key glopglop aaa group server radius RADIUS_MARIO server 193.48.57.171 auth-port 1812 acct-port 1813 exit dot11 ssid MARIO1 mbssid guest-mode vlan 171 authentication open eap EAP_MARIO authentication network-eap EAP_MARIO authentication key-management wpa exit interface dot11radio0.171 encapsulation dot1q 171 bridge-group 71 exit interface g0.171 encapsulation dot1q 171 bridge-group 71 exit interface dot11radio 0 no shutdown encryption vlan 171 mode ciphers aes-ccm tkip mbssid ssid MARIO1 exit exit write
Installation de la machine virtuelle
Création de la VM
xen-create-image --hostname=hawker --dhcp --dir=/usr/local/xen --dist=ascii --apt_proxy=http://proxy.polytech-lille.fr:3128 --mirror=http://fr.deb.devuan.org/merged/ --force
Création du fichier de configuration:
xen create /etc/xen/Mario.cfg
Configuration réseau
modification du fichier interfaces:
/etc/networks/interfaces
# The primary network interface auto eth0 iface eth0 inet6 auto iface eth0 inet static address 10.60.100.171/24 up ip address add dev eth0 193.48.57.171/32 ; ip route add default via 10.60.100.254 src 193.48.57.171 down ip address del dev eth0 193.48.57.171/32 ; ip route del default via 10.60.100.254 src 193.48.57.171
- Redemarrage de la carte reseau
ifdown eth0 ifup eth0
Configuration ssh
Modification du ficchier /etc/ssh/sshd_config
PermitRootLogin yes
Relancer le service ssh :
service ssh restart
Accès à la VM : ssh@193.48.57.171