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 have an interesting problem. I have a computer that has a wired ethernet card in it. Unfortunately I cannot run a wire from the wireless router to the PC. Additionally there are no PCI slots so a wireless card cannot be installed. I have another desktop w/ FC4 on it that has an onboard ethernet card and uses a wireless card to get access to the internet.
Here is the question:
Can I run the FC4 machine as a gateway behind a router so I can use the other machine to get on the internet?
The FC4 Gateway Box has the 192.168.x.x IP address scheme.
This is the goal I have in mind. The reason why I want the "Box 4 Net" to have internet access is because it lacks a Cd-ROM or Floppy drive. I want to install Gentoo on it. In order to do this I need it to have access to the internet and to setup a FTP server on the "FC4 Gateway Box" so I can initiate the Gentoo Installation.
Please let me know if this is confusing or if there is another way I could do this.
Well, I'd be happy to get you installing Gentoo on a box!
Seriously, If I were you, I would look into "ethernet bridging" for your FC4 box. This will avoid needing it to be a gateway, and just allow the computers to all be part of the same "virtual LAN"
To be honest I've never performed a CD install in Gentoo and I'm confused by the instructions. I don't understand how the machine that is receiving the install will receive the correct IP information off of the network boot.
The machine that would store the install runs FC4 while the machine that is looking for the install currently has Windows 2000.
Well I tried Ethernet Bridging and I couldn't get the machine I wanted to get the internet, also the machine that I setup the bridge on wouldn't get access to the internet.
Essentially this is the setup I'm aiming for
Internet-------------->Wireless Router----------> wlan0-->FC4 Box--- eth0---> MACHINE I WANT ON INTERNET
Where wlan0 is the interface that faces the internet and eth0 is the interface facing the machine I want on the internet.
I tried setting up a gateway also, but I couldn't get any activity on the eth0 interface. It was enabled and everything but when I looked on the back of my PC at the NIC there was no blinking lights or anything, also the computer connected to it said that the cable was unplugged. I tried multiple cables to rule out the possibility of a cable problem.
Can someone help me get the "MACHINE I WANT ON INTERNET" on the internet please? Also, just as a note that machine is running Windows 2000.
Yeah, it probably would. No chance of borrowing a CD-ROM from another machine?
About the cables... Ethernet uses 4 of the 8 pins in CAT5/RJ45. Each ethernet card has a receiver and a transmitter in it, each of which uses a pair of wires. With a straight-through cable, you get something like this:
Well the problem with the PC is that it's a small form factor machine and it takes a slim cd-rom that just plugs into the PC, much like a laptop. I'm looking at one on e-bay but I wanted to figure out an alternative in the mean time. I guess I'll just have to wait until I get a CD-ROM and do a networkless install
Well I tried to setup a gateway but I'm having issues. My gateway box gets access to the internet fine but the windows 2000 box behind it can't get anything, can't even ping the gateway box.
I have my firewall configured like so:
Code:
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -m --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m --state NEW -i ! wlan0 -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT
iptables -P INPUT DROP
when I do iptables -L the output reflects this code I put in.
For the internal side of the gateway box I have a cable running to the uplink side of a hub and I have the windows box plugged into that hub. There is an interesting problem though. The uplink port has a button that controls whether it is functioning as uplink or not. When I make it function as uplink the indicator lights go out on both the hub and the card on the gateway box, while if I turn off the uplink functionality the indicator lights will come on, on both the network card and the hub. I really think that is the root of my problem. I also tried another machine on a hub behind the gateway and it wouldn't work either.
for my setup eth0 = 192.1.168.50 <-- Internal NIC
which is what I have configured as the default gateway on the windows 2000 box.
I can't even ping the gateway box from the windows box.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.