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 12-16-2012, 11:44 PM   #1
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Rep: Reputation: 0
Question Virtual Linux machine act as a router


Hi I want to make my linux machine(virtual machine on vmware) act as a router. How to do this?
Is this possible at all?
 
Old 12-17-2012, 03:33 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
It's extremely possible, probably a bad idea, but very possible. Just make all networks you wish to be routable available to the VM in question, and if it's pure routing you want, you only need to set ip_forward to 1 in /etc/sysctl.conf and reboot and it's done. You may want some iptables rules aroudn it to suit, but there's nothing else to it low down.
 
  


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
router - win machine - vmware workstation - solusvm - virtual machine vmicovic Linux - Networking 2 05-01-2011 05:22 PM
help in designing a module for linux box act as a router route Linux - Networking 2 02-25-2009 02:30 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
Put linux to act as an router little_ball Linux - Networking 1 01-30-2004 11:10 AM
How to configure the Redhat Linux 7.0 machine to act as a mailserver? bhatvarsha Linux - Networking 1 09-25-2003 03:47 AM

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

All times are GMT -5. The time now is 10:50 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