Results 1 to 10 of 10

Thread: Creating the unsecured wireless network via terminal?

  1. #1
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Question Creating the unsecured wireless network via terminal?

    I am able to create a new wireless connection from network manager with my wireless card now I want to do this by using command line so that i can use this on scripts. it should be unsecured network.

    Please tell me How can I Create the unsecured wireless network via command line??

  2. #2
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Re: Creating the unsecured wireless network via terminal?

    anyone ...??

  3. #3
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Creating the unsecured wireless network via terminal?

    Hi

    Assuming wlan0 is your wireless interface....

    Code:
     
    sudo iwconfig wlan0 essid <your_ssid>
    sudo dhclient wlan0
    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  4. #4
    Join Date
    Sep 2012
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Creating the unsecured wireless network via terminal?


  5. #5
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Re: Creating the unsecured wireless network via terminal?

    Quote Originally Posted by matt_symes View Post
    Hi

    Assuming wlan0 is your wireless interface....

    Code:
     
    sudo iwconfig wlan0 essid <your_ssid>
    sudo dhclient wlan0
    Kind regards
    will it automatically give the access to my ethernet network to user??
    I mean I have an ethernet connnectivity with internet access and I just want to share that internet via Wifi ..

  6. #6
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Re: Creating the unsecured wireless network via terminal?

    matt_symes
    I have done this with your commands but it doesn't seem to work

  7. #7
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Creating the unsecured wireless network via terminal?

    Hi

    Before we go any further please read these:

    https://help.ubuntu.com/community/GettingAnswers

    Please supply for more information, otherwise no-one on this forum will have a hope of helping you.

    First open a terminal and type these commands and post back the results.

    Code:
    ifconfig
    iwconfig
    sudo iwlist wlan0 scan
    lspci -nnk | grep -iA3 wireless
    lsusb
    will it automatically give the access to my ethernet network to user??
    I mean I have an ethernet connnectivity with internet access and I just want to share that internet via Wifi ..
    Can you please explain this more.
    matt_symes
    I have done this with your commands but it doesn't seem to work
    You have given no diagnostic information here. What did you do ? What happened ?

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  8. #8
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Re: Creating the unsecured wireless network via terminal?

    Thanks for the reply sir ,
    I have taken the output of the commands that you have told me after the reboot (no commands are executed before it). following are its output:

    sbpcoe@sbpcoe:~$ ifconfig
    eth0 Link encap:Ethernet HWaddr 44:87:fc:a5:6d:59
    inet addr:172.16.3.8 Bcast:172.16.3.255 Mask:255.255.252.0
    inet6 addr: fe80::4687:fcff:fea5:6d59/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4621 errors:0 dropped:120 overruns:0 frame:0
    TX packets:678 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:896734 (896.7 KB) TX bytes:104364 (104.3 KB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:86 errors:0 dropped:0 overruns:0 frame:0
    TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:7462 (7.4 KB) TX bytes:7462 (7.4 KB)

    wlan0 Link encap:Ethernet HWaddr 2c:b0:5d:70:0b:bc
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    sbpcoe@sbpcoe:~$ iwconfig
    wlan0 IEEE 802.11bgn ESSIDff/any
    Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
    Retry long limit:7 RTS thrff Fragment thrff
    Power Managementff

    lo no wireless extensions.

    eth0 no wireless extensions.

    sbpcoe@sbpcoe:~$ sudo iwlist wlan0 scan
    [sudo] password for sbpcoe:
    wlan0 No scan results

    sbpcoe@sbpcoe:~$
    sbpcoe@sbpcoe:~$ lspci -nnk | grep -iA3 wireless
    sbpcoe@sbpcoe:~$
    sbpcoe@sbpcoe:~$ lsusb
    Bus 001 Device 002: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    sbpcoe@sbpcoe:~$
    Last edited by rushikesh988; February 1st, 2013 at 05:32 AM.

  9. #9
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Re: Creating the unsecured wireless network via terminal?

    will it automatically give the access to my ethernet network to user??
    I mean I have an ethernet connnectivity with internet access and I just want to share that internet via Wifi ..
    Can you please explain this more.

    I have the wired internet connection to my desktop and I want to share this internet connection via Wi-Fi to other devices like mobiles and laptops.

  10. #10
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Re: Creating the unsecured wireless network via terminal?

    You have given no diagnostic information here. What did you do ? What happened ?
    Actually Sir I have tried to typing the commands
    sudo iwconfig wlan0 essid rushikeshtade
    sudo dhclient wlan0
    It took some time to complete execute the second command.

    When it get executed I tried to search the network on the mobile and my laptop but these devices were not showing the wireless network. So I came to decision that these commands are not wortking.


    At the same Time I have tried typing the command
    ifconfig
    eth0 Link encap:Ethernet HWaddr 44:87:fc:a5:6d:59
    inet addr:172.16.3.8 Bcast:172.16.3.255 Mask:255.255.252.0
    inet6 addr: fe80::4687:fcff:fea5:6d59/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:37890 errors:0 dropped:2056 overruns:0 frame:0
    TX packets:1559 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:4082743 (4.0 MB) TX bytes:238412 (238.4 KB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:165 errors:0 dropped:0 overruns:0 frame:0
    TX packets:165 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:15024 (15.0 KB) TX bytes:15024 (15.0 KB)

    wlan0 Link encap:Ethernet HWaddr 2c:b0:5d:70:0b:bc
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0:avahi Link encap:Ethernet HWaddr 2c:b0:5d:70:0b:bc
    inet addr:169.254.7.147 Bcast:169.254.255.255 Mask:255.255.0.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1

    Hope this will give idea of my problem . If I need to give more details please inform me .

    Thank you !

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •