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.
I currently have a wireless network running from my eth1, that is all fine.
I would like to connect to the internet through eth0, I've set this up in rc.modules, rc.inet1.conf, and rc.inet2. a dhcp address is assigned upon boot, as I see:
dhcpcd: your ip address: my.ip.goes.here
and the mac address of the card etc is also detected, when i run an ifconfig, under eth0... I also see the mac address, the correct ip address given by my isp i assume, the bcast and the mask (not sure about the last 2), then some packet details:
RX PACKETS: 39632 with no errors, none dropped and no overruns. this is also the same for TX packets, however only 43 packets were sent.
all this seems fine to me, i've stayed away from netconfig as it is already configured to use a dhcp server, and running the config seems to only change my eth1 (wireless) settings, and wipe the settings for the eth0...
however while all may seem fine to me, i cannot ping, connect to, or tracert anything, which is to me a sure indication that i'm offline.
any ideas as to what i've done wrong, any replies appreciated and thanks for your time
could you maybe point me in the right direction as to how that would be done, I've picked it up this far from what i've learnt from reading other problems etc,
I haven't noticed that your using Slackware. Edit your /etc/rc.d/rc.inte1.conf and put eth0's IP and your ISP's gateway there. It should be permanent then. It seems that Slackware can't remember sometimes the other NIC's IP configured through ifconfig. On my case it's eth1 that can't be remembered during everyboot/reboot.
I just figured it out after searching their installation page.
Thanks to all that replied in this thread, gani, thanks a lot, your help was great! i got it working after a few attempts, i was close before.
anyway, got the eth0 working as the net interface, now to setup eth1 for network traffic and internet connection sharing, but as thats a topic for wireless networking, off I go...
Wired and wireless are just different access medium, operations will be the same. May be this thread could help you setup internet sharing with other workstations.
But this is not yet a secured setup. You will still need to refer to other tutorials but this will work as it worked for me before. I can't help you secure this iptables script since I just used iptables for less than a month upon learning that OpenBSD's PF is much easier to learn and implement.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.