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 just setup this slack box and ran my netconfig. I am on a shared cable modem connection (switch) with ip addresses from a dhcp server at my ISP. When run "ifconfig eth0", there is no line specifying the ip address (the inet addr: field). It looks similar to this:
Am I missing something? I at this point I am not able to access the internet. This is the first time I have had two computers running and networked. Thank you in advance!!
you most likely need to specify that you want that certain interface to utilize DHCP...
I am not familiar with slackware so I cannot comment on exactly how this is done. I know that on my RedHat boxes I would edit /etc/sysconfig/network-scripts/ifcfg-eth0 and set the "BOOTPROTO" variable to "dhcp".
Do I have to purchase a second ip? My cable connection is split by a Linksys 5 port switch (not router). Not sure how this works, I figured that the second computer would be assigned a dynamic address just like the first computer I set up.
My first machine was a windows box that I've had since college, and have since created a partition w/ Redhat and then Slackware 9.1. When I start that machine, the dhcp worked fine, without having to change the script. I am not too keen on assigning ips, when to use static ips and what the isp allows. The only internal network ip that I use is the loopback.
If you want two public ip's you need to pay your isp for that, then it should workwith just a switch. Right now, your isp will ignore the second box.
You're going to need a router if you only want one routable(public) ip.
With a router, the isp's DHCP assigns a routable ip to the WAN port on your router. The router's DCHP assigns private ip addresses to your machines, then a feature called NAT let's you split your one public ip for your machines to both use. The NAT router also adds another level of security to your network.
Thank you Rhell, I am beginning to read up on this. Looks like I could just setup another linux box to be my router/firewall, then switch the connection from there. I guess I now would need a second network card for the Routing machine??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.