LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2011, 12:14 PM   #1
aibutter
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
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
 
Old 07-08-2011, 12:16 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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?
 
Old 07-08-2011, 12:31 PM   #3
aibutter
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-08-2011, 01:20 PM   #4
Darakus
LQ Newbie
 
Registered: Jul 2011
Location: Vancouver, WA USA
Distribution: Arch
Posts: 3

Rep: Reputation: Disabled
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.

Last edited by Darakus; 07-08-2011 at 01:24 PM. Reason: Missed something in original post
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 04:36 PM
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration