How to connect a netbook via cable via PC via UMTS-stick to the internet
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,605
Rep:
How to connect a netbook via cable via PC via UMTS-stick to the internet
Silly question for old hands in networking, I know. I'm new, though. So, this is the setup:
netbook with openSUSE 13.2 / KDE and networkmanager
connection with ethernet cable to
PC with openSUSE 13.2 / KDE and networkmanager
UMTS-stick in a port of the PC
internet
I want to browse the internet on the netbook utilizing the UMTS-stick in the PC. I can now copy files / access data on both machines using dolphin and the sftp protocol, i.e. both machines have a private IP-address and "know" the other one (as far as it goes).
What do I have to do to access the internet from the netbook? That is, how to make the PC pass the packets to the stick and lastly the net? Would the PC act as a router / gateway? What input needs networkmanager? Any tips, hints, pointers or links will be highly appreciated .
I think the PC should act as gateway that means you need to set its IP as the gateway address on the notebook.
Another step should be to create a couple of rules on the PC firewall to allow traffic from/to the notebook, if you use a firewall on the pc of course.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,605
Original Poster
Rep:
Thanks to both of you, I'll see what I can achieve with your pointers. Internet connectivity is abysmal right now, sorry when I report only sporadically, I'll be back with results when and as soon as I can.
Please note that the output of "iptables -L" doesn't show the three added lines?!? As far as I know this is the standard set up of openSUSE's firewall.
Lastly I added the ip on the client (netbook).
Code:
# ip addr add 192.168.2.101/24 dev enp6s0
# ip link set up dev enp6s0
# ip route add default via 192.168.123.100 dev enp3s0 # same address as in the beginning
and got: "RTNETLINK answers: Network is unreachable."
Umm. How to diagnose the problem? Is the NAT-ing problem resolved as I understand the linked bug report or have I omitted something here? Thanks for any pointers.
P.S.: I created also /etc/sysctl.d/30-ipforward.conf as required for a reboot.
As far as I know modern hardware for ethernet detects the type of cable and uses their protocols accordingly so cross cables are not anymore necessary.
Looks like you did not change the example commands in the guide to match your network configuration. Your basic networking is already configured so just need to add the NAT rules on the PC and add DNS server to the netbook's resolv.conf file.
And on the netbook after "ip route del default": "RTNETLINK answers: No such process" and after "ip route add default via 192.168.2.100": "RTNETLINK answers: Network is unreachable"
Two minutes before that I successfully copied a bunch of files from the PC to the netbook (using sftp protocol in dolphin)...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.