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.
Sorry if this question has been asked before - I'm just finding it hard to track down the information I need. I probably just don't understand what is written in the threads!!
With the help of this forum, I got eth0 working with my cable modem and DHCP. I'm trying to set up my second card - but I'm not sure what to do with it. I understand that I need IP Masquerading but YaST2 in SuSE 7.3 freezes up when I try to set the card up. Does it need to be DHCP aswell? Or something else? I'm giving a neighbour access to the Internet via my box. I'm not looking to offer any filesharing etc.
Eth1 will be a a nic for local network, right? So you don't need DHCP. Configure it with a static ip address (for example 192.168.1.1). I don't know YaST... From console it's
ifconfig eth0 192.168.1.1
Then make eth0 default gateway
route add default eth0
Then it's only masqerade to do. It's described many times on this site
Eth1 will be a a nic for local network, right? So you don't need DHCP. Configure it with a static ip address (for example 192.168.1.1). I don't know YaST... From console it's
ifconfig eth0 192.168.1.1
Then make eth0 default gateway
route add default eth0
Sorry but I don't understand this - if eth1 is to be my gateway, should I really input "ifconfig eth0 default gateway?"
For many reasons, I am very nervous about changing anything to do with my network cards. I am a little confused. Apologies for this recap but this is what I think I have to do (from the above) - am I correct?
My system still has eth0 connected to a cable modem. eth1 will be my NIC fo one other computer. There will be no file sharing.
I've done as was suggested - but eth1 (NIC), though detected, is not working. The light isn't coming on. The new computer isn't able to connect yet. Is there anything I can look at? I'm not sure that I've set up IP masq correctly and I'm worried that eth1 is broken - any way to test it?
Thanks
I want to see whether eth1 is working. eth0 is connected to my cable modem. I want to IP Masq but I suspect that eth1 is *dead* Is there a simple way of testing whether eth1 is working on my system right now - without removing it? If I know it's working, I'll stay up for the rest of my life trying to get this network to function. If it's dead - I'll finish the bottle of wine I'm drinking and ignore my network failures for the rest of this evening. I'm using SuSE 7.3 and drinking Marques de Aragon (v. 2000)
Thanks
Actually what you need to do is have eth0 as DHCP and eth1 with a static address. I think you misunderstood the instructions. After you have done this the light on eth1 should be on, assuming that it is connected to a hub/switch.
Can't it be connected directly to another computer?
I understand what a hub is but a switch? Sorry for my stupidity - and thanks for a prompt response BTseapig!!
so I guess I need to go out and buy a hub tomorrow. As a matter of interest.....but never mind!! I was going to ask why a hub is needed as opposed to a direct connection to the one computer that will use eth0 (plus the box with eth0 in it!) If I need a hub - a hub buying I will go.. hehe...spend spend
if you are only connecting one computer, you could get a crossover cable. however you can get a 5 port switch for about nothing, this would allow you to connect several computer to the network.
So! At last - I think that understand. The words "crossover cable" rang a bell. I've only plugged my XP laptop into networks using a hub. I've set up three networks using W98SE - all with hubs!!!!!! ho ho - he kicked himself happily! I had no luck testing a friend's network card with my laptop (XP) and I haven't been successful setting up IP Masq etc. on my SuSE 7.3 box - my friend (we've run a cable across the rooftops between our houses - 40 metres) can't connect to the net yet - is this all because we didn't crossover or use a hub?
Wow! If so - I feel stoo-pid.
To connect computer-to-computer, you must use a crossover cable. With a hub/switche/router, the crossover is performed by the device's internal circuitry, so all machines only need to use a regular "straight-through" cable.
Hey esteeven,
would you mind to share how did you make the first Ethernet card working on Linux SuSE 7.3 using DHCP ???
Are you using the yast2 utility, or ifconfig command??? I try to make the Ethernet card working on my system too, but somehow it messing up.
Thanks.........
Check to see whether DHCP is installed on your box - use Yast2 Software Install and search for DHCP. It wasn't on my system and that caused millions of problems because nothing would work. As soon as I installed it, I could set the card up. The option in Yast2 for DHCP seems to be there even if DHCP is not.
Good Luck!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.