Sharing an Internet connection on Linux between two computers using an Ethernet cable might seem tricky at first, but itโs straightforward once you know the steps. Whether youโre troubleshooting, setting up a local network, or just exploring Linux networking, this guide has you covered.
๐ก Steps to Configure Internet Sharing on the Server
1. Open Network Connections
- Click on the network icon in the system tray or panel.
- Select "Edit Connections..." from the dropdown menu.
2. Edit the Wired Connection
- In the Network Connections dialog, locate and double-click your Wired Connection.
- This is the connection that will be used to share Internet access. ๐ Leave the wireless connection untouched if itโs the one connected to the Internet.
3. Modify IPv4 Settings
- Navigate to the "IPv4 Settings" tab.
- Set the Method to "Shared to other computers".
- Save and close the settings.
4. Reconnect the Wired Network
- Disconnect and reconnect the Wired Network so it gets a new IP address.
- Make sure the server and client are physically connected via an Ethernet cable.
5. Retrieve Connection Information
- Click on "Connection Information" in the network menu.
- Note down the IP address and network mask assigned to the wired connection.
(Example:
10.42.0.1/255.255.255.0
).
๐ง Steps to Configure the Client Computer
1. Open Network Connections
- On the client computer, click the network icon and select "Edit Connections...".
2. Edit the Wired Connection
- Locate and double-click your Wired Connection.
3. Modify IPv4 Settings
- Navigate to the "IPv4 Settings" tab.
- Set the Method to "Manual".
- Assign an IP address on the same subnetwork as the server.
๐ Example:
10.42.0.69
- Use the IP and network mask from the server for:
-
Netmask:
255.255.255.0
-
Gateway:
10.42.0.1
-
DNS Servers:
10.42.0.1
-
Netmask:
4. Reconnect the Wired Network
- Disconnect and reconnect the Wired Network to apply the new settings.
๐ Final Step
Pat yourself on the back and surf away! ๐
๐ข Additional Notes
- Make sure the Ethernet cable is connected before reconnecting the networks on both computers.
- If Internet sharing doesnโt work as expected, verify the serverโs firewall settings to ensure proper traffic routing.
Let me know if you have any questions or if this guide worked for you in the comments! ๐
Top comments (1)
Screenshots please :)