zoukankan      html  css  js  c++  java
  • How to Share Wired Internet Via Wi-Fi and Vice Versa on Linux

    How to Share Wired Internet Via Wi-Fi and Vice Versa on Linux

    Aaron KiliApril 15, 2020 CategoriesNetworking Commands Leave a comment

    In this article, you will learn how to share a wired (Ethernet) internet connection via a wireless hotspot and also how to share a wireless internet connection via a wired connection on a Linux desktop.

    This article requires you to have at least two computers: a Linux desktop/laptop with a wireless card and an Ethernet port, then another computer (which may not necessarily be running Linux) with either a wireless card and/or an Ethernet port.

    Sharing Wired(Ethernet) Internet Connection Via Wi-Fi Hotspot

    First, connect your computer to a source of internet using an Ethernet cable as shown in the following screenshot.

    Connect Ethernet CableConnect Ethernet Cable

    Next, enable Wireless connections, then go to Network Settings as highlighted in the following screenshot.

    Enable Wireless ConnectionEnable Wireless Connection

    Then click Use as Hotspot as shown in the following screenshot.

    Use as Hotspot FeatureUse as Hotspot Feature

    Next, from the pop-up window, click Turn On to activate the wireless hotspot.

    Turn On HotspotTurn On Hotspot

    Now a wireless hotspot should be created with a name defaulting to the hostname e.g tecmint.

    Wireless Hotspot CreatedWireless Hotspot Created

    Now you can connect another computer or device via the hot-spot to the internet.

    Sharing Wi-Fi Internet Connection via Wired(Ethernet) Connection

    Start by connecting your computer to a wireless connection with access to the internet e.g HackerNet in the test environment. Then connect an Ethernet cable to it and go to Network Connections.

    Connect to Wireless and Enable EthernetConnect to Wireless and Enable Ethernet

    From the pop-up window, select the Wired/Ethernet connection, then go to its settings as described in the following screenshot.

    Select Network Connection InterfaceSelect Network Connection Interface

    Under the connection settings, go to IPv4 Settings.

    Select IPv4 SettingsSelect IPv4 Settings

    Under the IPv4 settings, set the Method to Shared to other computers as shown in the following screenshot. Optionally, you can add the IP address to define the network to use. Then click Save.

    Select Share to Other ComputersSelect Share to Other Computers

    Next, turn the wired connection off then on, to activate it once more. Then open it under Network Connections, it should now be configured for sharing (by having a default IP address of 10.42.0.1) as shown in this screenshot.

    Sharing Wired Connection with Other ComputersSharing Wired Connection with Other Computers

    Note: You can also share a bridged interface the same way as the wired interface as shown in the following screenshot.

    Share a Bridged Interface with Other ComputersShare a Bridged Interface with Other Computers

    Go ahead and connect another computer to the other end of the Ethernet cable or an access point to serve many computers/devices. For any inquiries, reach us via the feedback form below.

  • 相关阅读:
    快速免费用宝塔面板加开源小程序商城源码搭建自己的商城程序
    小程序商城,到底是购买源码好还是直接使用SaaS平台好?
    51单片机串口通信的注记
    关于vi 分屏的一些指令
    偶遇bash 的while read line 的问题
    centos 6 设置无密码登录ssh 不成功问题
    关于js框架 dwz 与 yii的的分页 以及筛选的结合
    完美解决百度地图MarkerClusterer 移动地图时,Marker 的Label 丢失的问题
    微信小程序购物商城系统开发系列-目录结构
    微信小程序支付步骤
  • 原文地址:https://www.cnblogs.com/sonictl/p/13274923.html
Copyright © 2011-2022 走看看