Advertisement
Guest User

Untitled

a guest
Mar 26th, 2013
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. root@ubuntu:~# cat /etc/network/interfaces
  2. # The loopback network interface
  3. auto lo
  4. iface lo inet loopback
  5.  
  6. auto wlan2
  7. iface wlan2 inet static
  8. address 10.0.0.6
  9. network 10.0.0.0
  10. netmask 255.255.255.0
  11. broadcast 10.0.0.255
  12. wireless-channel 3
  13. wireless-essid adhoc_wlan
  14. wireless-mode ad-hoc
  15. wireless-ap D6:74:1B:C2:38:41
  16.  
  17. root@ubuntu:~# iwconfig
  18. wlan2 IEEE 802.11bgn ESSID:"adhoc_wlan"
  19. Mode:Ad-Hoc Frequency:2.422 GHz Cell: D6:74:1B:C2:38:41
  20. Tx-Power=20 dBm
  21. Retry long limit:7 RTS thr:off Fragment thr:off
  22. Encryption key:off
  23. Power Management:off
  24.  
  25. lo no wireless extensions.
  26.  
  27. root@ubuntu:~# ifconfig
  28. lo Link encap:Local Loopback
  29. inet addr:127.0.0.1 Mask:255.0.0.0
  30. UP LOOPBACK RUNNING MTU:65536 Metric:1
  31. RX packets:16 errors:0 dropped:0 overruns:0 frame:0
  32. TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
  33. collisions:0 txqueuelen:0
  34. RX bytes:1792 (1.7 KiB) TX bytes:1792 (1.7 KiB)
  35.  
  36. wlan2 Link encap:Ethernet HWaddr 00:19:70:94:7c:8b
  37. inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
  38. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  39. RX packets:49 errors:0 dropped:15 overruns:0 frame:0
  40. TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
  41. collisions:0 txqueuelen:1000
  42. RX bytes:3414 (3.3 KiB) TX bytes:3342 (3.2 KiB)
  43.  
  44. root@ubuntu:~# ip r
  45. 10.0.0.0/24 dev wlan2 proto kernel scope link src 10.0.0.6
  46. root@ubuntu:~# ip a
  47. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
  48. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  49. inet 127.0.0.1/8 scope host lo
  50. 2: wlan2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  51. link/ether 00:19:70:94:7c:8b brd ff:ff:ff:ff:ff:ff
  52. inet 10.0.0.6/24 brd 10.0.0.255 scope global wlan2
  53. root@ubuntu:~# route
  54. Kernel IP routing table
  55. Destination Gateway Genmask Flags Metric Ref Use Iface
  56. 10.0.0.0 * 255.255.255.0 U 0 0 0 wlan2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement