Le static, je ne sais pas trop ... surement qq part sur le net ! Je veux me connecter en IP fixe.
Bon, la suite des commandes bash :
[root@localhost network-scripts]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface rausb0: [ OK ]
Shutting down loopback interface: [ OK ]
SIOCGIFFLAGS: No such device
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... done.
[ OK ]
Bon, normal, l'interface rausb0 n'est pas activée. J'essaie de l'activer :
[root@localhost network-scripts]# ifconfig rausb0 up
[root@localhost network-scripts]# ifconfig rausb0
rausb0 Link encap:Ethernet HWaddr 00:18:F3:2F:1F:28
inet6 addr: fe80::218:f3ff:fe2f:1f28/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3931 errors:0 dropped:0 overruns:0 frame:0
TX packets:312 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6641511 (6.3 MiB) TX bytes:165110 (161.2 KiB)
Il n'y a pas l'adresse IP ! Il faudra donc que la définisse plus tard. L'activation manuelle en suivant le wiki :
[root@localhost network-scripts]# ifconfig rausb0 down
[root@localhost network-scripts]# iwconfig rausb0 mode managed
[root@localhost network-scripts]# iwconfig rausb0 essid netwrk02
[root@localhost network-scripts]# iwconfig rausb0 channel 6
[root@localhost network-scripts]# iwconfig rausb0 key 1D3D59D021
[root@localhost network-scripts]# ifconfig rausb0 up
[root@localhost network-scripts]# iwlist rausb0 scan
rausb0 Scan completed :
Cell 01 - Address: 00:0F:A3:E0:17:44
ESSID:"netwk02"
Mode:Managed
Channel:6
Encryption key:on
Bit Rates:0 kb/s
[root@localhost network-scripts]# iwconfig rausb0 ap 00:0F:A3:E0:17:44
[root@localhost network-scripts]# ifconfig rausb0 inet 192.168.1.20 netmask 255.255.255.0
[root@localhost network-scripts]# route add default gw 192.168.1.254
SIOCADDRT: File exists
[root@localhost network-scripts]# ifconfig rausb0
rausb0 Link encap:Ethernet HWaddr 00:18:F3:2F:1F:28
inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::218:f3ff:fe2f:1f28/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4523 errors:0 dropped:0 overruns:0 frame:0
TX packets:790 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7063731 (6.7 MiB) TX bytes:227106 (221.7 KiB)
YES !! Je suis connecté.
Par contre je ne peux pas me connecter à internet, je crois que c'est lié au message SIOCADDRT. On en avait parlé la première fois. Je vais jeter un oeil dans le thread.
Au passage, RuilT est OK, il me montre la connexion. Je n'ai pas essyé de me connecter avec.
J'ai volontairement très détaillé, cela intéressera peut-être qqn qui débute, héhé.