LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IP Forwarding (https://www.linuxquestions.org/questions/linux-networking-3/ip-forwarding-890628/)

aibutter 07-08-2011 12:14 PM

IP Forwarding
 
Hello

How can I share Internet using Linux Machine.

Please check the following scenario, I want to use Internet on Machine B. Machine A is connected with Internet.
Machine A and B are directly connected with cross cable and ping is working properly between these machine, but internet is not working.

Machine A:
eth0:2001:a:c:1::1/64
eth1: Connected with Internet
IP_Fowrding is on


Machine B:
eth0: 2001:a:c:1::2/64
Gateway: 2001:a:c:1::1


Many Thanks
Asif Iqbal Butter

szboardstretcher 07-08-2011 12:16 PM

What distribution are you using? Have you followed the appropriate guide for doing this on that distribution already? What have you done so far, when did you run into problems?

aibutter 07-08-2011 12:31 PM

Thanks for the quick reply.

I didn't do any other configuration. The scenario which I mentioned, can I use internet in this style.

I didn't do this configuration from any guide. Someone told me that internet can be shared in this style.

Now I'm trying to implement.


Many Thanks

Darakus 07-08-2011 01:20 PM

I see your using IPv6, I can't you much there, but if IP forwarding is enabled on Host A, then you need to set host A as the default gateway on host B. You can do that manually (check how on your distro) or you can set up dhcp on Host A, but that would likely be overkill for this situation.

Hope this helps.



Darakus

EDIT: I see the gateway is set, make sure ipv6 fowarding is on.


All times are GMT -5. The time now is 07:21 PM.