LinuxQuestions.org
Review your favorite Linux distribution.
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 05-11-2007, 06:20 AM   #1
Firebar
Member
 
Registered: Feb 2005
Location: Southampton (UK)
Distribution: Debian, RHEL and SuSE
Posts: 69

Rep: Reputation: 15
Basic routing help


Hi,

I have a couple of virtual machines running in vmware on a private subnet that I would now like to give access to the web.

My setup looks a little something like this;

Speedtouch 585 Router ------- (eth0) Host Linux Machine (vmnet1) ------------- VM1
|_________________ VM2

I hope that makes enough sense. I've configured the linux machines as a name server and have enabled IP forwarding. From a virtual machine I can now ping eth0 aswell as vmnet1 and I can make nameserver lookups, i.e; nslookup www.google.com returns the correct IP.

My question is, how do I configure zebra/quagga and ripd on the Linux machine? I have them both installed but having not used them before I thought I'd post here whilst I trawl through some guides.

Do I really need to have my Linux machine act as a router? Is a simply route add enough?
eth0 = 192.168.1.70
vmnet1 = 192.168.0.1

How would I construct a route between those two interfaces?

Thanks for any input
 
Old 05-11-2007, 06:49 AM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Question

Please provide more info:

The other inside net's IPs

then try:

Code:
route add default gw <the router's interface pointing outside>
 
Old 05-11-2007, 06:56 AM   #3
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
wow, from vmware to zebra... quite a big leap there... what's the actual goal? just to get internet accss, or is there some bigger reasoning behind mentioned routing engines? if you just want the end result, change the vmware network mode to bridged and that's all there is to it, assuming the speedtouch router is runnign a standard local subnet and such like. other than bridged networking, the vmware host machien has nothign whatsoever to do with it.
 
Old 05-11-2007, 07:17 AM   #4
Firebar
Member
 
Registered: Feb 2005
Location: Southampton (UK)
Distribution: Debian, RHEL and SuSE
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks for your replies.

I want to retain my Virtual Machines on the private subnets and not use bridging due to some things I would like to try out and document. Hence why I thought the best bet would be by running zebra on the host machine to route traffic to my ADSL Router.

My ADSL router;

192.168.1.254

My Host;

eth0 : 192.168.1.76
vmnet1 : 192.168.0.1 (private subnet for VM's)

My VMs;

VM1: 192.168.0.2
VM2: 192.168.0.3

So VM's can ping all interfaces on the host and can make dns lookups.

Not being very clued up I tried a simple ripd.conf;

Code:
hostname blabla
password blablapass

router rip
network 192.168.1.0/24
network 192.168.0.0/24
neighbor 192.168.1.254
Am I correct in saying that the above config would route information on those two networks and send routing updates to my ADSL router?

So close I can taste this DNS works, ipforwarding works, yet I just cant ping my router from one of the VM's, so only eth0.

Last edited by Firebar; 05-11-2007 at 07:20 AM.
 
Old 05-11-2007, 07:27 AM   #5
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
ok, well if you want to route, again there's no need for a routing protocol, it's much simpler than that. a routing protocol is only useful if you have more than one device using said protocol, which you don't, unless you speedtouch router is also part of rip, which i very much doubt.

right...
1) "echo 1 > /proc/sys/net/ipv4/ip_forward" on the vmware host.
2) add route for 192.168.0.0/24 via 192.168.1.70 on the router.
simple as that, firewalls and things exlucded... step 2 could be enable ip masquerading on the vmware host instead, but i don't think you'd like to do it that way, you seem to want a more technically correct solution.

Last edited by acid_kewpie; 05-11-2007 at 07:28 AM.
 
  


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
Basic routing on Mandrake 10 alexj@abstract Linux - Networking 3 09-18-2004 07:57 PM
Basic Routing broadband Linux - Networking 9 09-07-2004 12:44 AM
Basic routing question palanisaravanan Linux - Networking 5 03-22-2004 10:55 AM
Basic routing pcrs Linux - Networking 1 10-07-2002 09:25 AM
Basic routing john.martelli Linux - Networking 3 03-25-2002 01:41 AM

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

All times are GMT -5. The time now is 01:56 AM.

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