PDA

View Full Version : Problem with network shaering.


hiol
2006-05-11, 06:17 PM CDT
Hi! I've got a problem with Fedora Core 5. I've got a asus motherboard with a LAN card on it, but I also bought two LAN cards- 3COM. I've disable the Lan card on the motherboard, and try to run my network on the other two.

A little more explenation: I've got a optical connection with a media convertor, a cable from the media convertor cames out and it's plugged into one of the network card. In the other card I've plugged a normaly crimped cable two a switch. In the switch there is a client's cable.
Now what is the problem- I' ve received the internet connection on the one card, but i can't share the connection. I've configured all the things for one ip address, but the client's computer don't have internet connection, but can ping the server, but the server can't see the client's machine with arping or any other.
Please i need help because i should gave to my customers a real ip addresses.
Thank you for your attention. I'll be happy if you help to me. Take Care.

ccrvic
2006-05-12, 01:58 AM CDT
I' ve received the internet connection on the one card, but i can't share the connection. I've configured all the things for one ip address, but the client's computer don't have internet connection, but can ping the server, but the server can't see the client's machine with arping or any other.
Please i need help because i should gave to my customers a real ip addresses.

You need to set your kernel to forward IP packets (via /proc/sys/net/ipv4/ip_forward). If you want to make this the default setting, add a "FORWARD_IPV4=true" statement into /etc/sysconfig/network.

With that done, you'll want to enable NAT between the interfaces on your link box. Do this with iptables - something along the lines of "iptables -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE", where 192.168.0.0/24 is your "client" LAN, and eth1 is the card connecting you to your upstream.

Vic.