Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu:~# cat /etc/network/interfaces
- # The loopback network interface
- auto lo
- iface lo inet loopback
- auto wlan2
- iface wlan2 inet static
- address 10.0.0.6
- network 10.0.0.0
- netmask 255.255.255.0
- broadcast 10.0.0.255
- wireless-channel 3
- wireless-essid adhoc_wlan
- wireless-mode ad-hoc
- wireless-ap D6:74:1B:C2:38:41
- root@ubuntu:~# iwconfig
- wlan2 IEEE 802.11bgn ESSID:"adhoc_wlan"
- Mode:Ad-Hoc Frequency:2.422 GHz Cell: D6:74:1B:C2:38:41
- Tx-Power=20 dBm
- Retry long limit:7 RTS thr:off Fragment thr:off
- Encryption key:off
- Power Management:off
- lo no wireless extensions.
- root@ubuntu:~# ifconfig
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- UP LOOPBACK RUNNING MTU:65536 Metric:1
- RX packets:16 errors:0 dropped:0 overruns:0 frame:0
- TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:1792 (1.7 KiB) TX bytes:1792 (1.7 KiB)
- wlan2 Link encap:Ethernet HWaddr 00:19:70:94:7c:8b
- inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:49 errors:0 dropped:15 overruns:0 frame:0
- TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:3414 (3.3 KiB) TX bytes:3342 (3.2 KiB)
- root@ubuntu:~# ip r
- 10.0.0.0/24 dev wlan2 proto kernel scope link src 10.0.0.6
- root@ubuntu:~# ip a
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- 2: wlan2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
- link/ether 00:19:70:94:7c:8b brd ff:ff:ff:ff:ff:ff
- inet 10.0.0.6/24 brd 10.0.0.255 scope global wlan2
- root@ubuntu:~# route
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 10.0.0.0 * 255.255.255.0 U 0 0 0 wlan2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement