Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This a newbie query regarding linux networking. I am well most of the part where u install and configure linux. But even after scratching my head for more than 2 months i couldn't get my way around it. I am looking for the following:
Step 1: just connect two computers with network
Step 2: add third computer to that network
Step 3: connect a wireless laptop to that network
Step 4: Share internet freely amongst the network
I tried to skim Linux networking howto but could'nt find exactly how do you connect two computers. Pardon me if i am wrong, i could not find a single example of setting up the network.
The information about concepts is clear but a simple example would do great job.
If you guys could atleast guide to a example of commands for completing the above process it would be more than helpful.
I can also skim any good books u may recommed. But please do guide me.
I am learning linux networking as hobby after comming home from work. 2 months i tried to follow the howto but to no avail. The concept is clear but how do u do exactly on ground is not clear.
Just like the way i was trying to learn gcc! i was from borland turbo c background and took me time because of not so helpful documentation to distinguish between gcc and make and between what does what. the only reason i got work for it was becasue of online website show small practical example of using gcc and make to create programs.
Thats the only bit i am asking! Show me what commands should i use. I can cram details of any linux command if i know which command to use. but without them i am just staring at void.
Being open source and free can be good. but documentation is a problem. to find a nice one you may have to search for a long time.
So my final option was to come here.
If you could enlighten i would be very gratefull.
I using debian base install as a test case.
Automatic networking is there but i want to how to network without automatic networking!! the magic commands and setting. I am sure they don't require 10's of pages to just connect two computers.
For the most part when we say network we mean tcp/ip. The basic part of that is IPv4. It requires a few things. One is support for the network interface card. Tcp/ip (tcp/ip is almost always built into a distro). An ip address, subnet mask. To access outside of that group you'd need a gateway address.
So, start with do you have a NIC and can you configure it with an ip address and subnet?
Most home users connect to a router which will automatically provide an ip, subnet mask, gateway and even a dns ip. We don't need to go that far just yet.
To access multiple Linux systems on a network you can install nfs (network file system). The link below gives a detailed description on installing and setting it up.
Just to get a better idea of what you are trying to accomplish are you wanting to create a Linux router that shares the internet to all of the computers that are at your house?
Most home networks utilize a router. You connect the computers to the router, using either wired or wireless connections, and communicate between computers via the router (a "wireless router" is simply a router that broadcasts a wireless signal and accepts wireless connections in addition to accepting wired connections).
Generally, Linux recognizes wired ethernet connections without difficulty. Wireless can be a little more complicated, depending on which wireless chipset is in the computer/wireless card. Some manufacturers of wireless equipment provide better Linux support than others.
If you want to share files--have directories that can be browsed from other computers across the network--that's a different ball of wax. You can use NFS (network file system) in a Linux only network, but, in a mixed network including Windows machines, you would need to use Samba.
As thegwer said, if you provide more information about what precisely you are trying to accomplish, it will be easier to help you.
Hello,
Step 1: just connect two computers with network
Step 2: add third computer to that network
Step 3: connect a wireless laptop to that network
Step 4: Share internet freely amongst the network
1. The easy way is to buy a router and plug the cables into the lan ports. If you want to connect 2 computers with just one cable then you need to configure a dhcp server on one computer or manually assign IPs to each computer like this:
* Plug the cable between computer A and B
* On computer A:
Code:
# ip link set up dev eth0 # or the name of your interface
# ip addr add 192.168.0.100/24 dev eth0
* On computer B:
Code:
# ip link set up dev eth0 # or the name of your interface
# ip addr add 192.168.0.101/24 dev eth0
* From computer A ping B:
Code:
ping 192.168.0.101
Note: you can find inforamation about the interfaces with the 'ifconfig' command.
2. You need a router for this or two ethernet adapters on one of the computers.
3. You need a router with wireless support or you can turn one of the computer into a router with a wifi dongle and hostapd
4. Plug the internet cable into the WAN port of the router or configure NAT on the computer that is sharing the internet. I managed to share the internet from a 3G dongle to my devices using NAT and a wifi router; here's the blog post: https://tyrolite.wordpress.com/2015/...-raspberry-pi/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.