Results 1 to 2 of 2

Thread: Static Routing command

  1. #1
    Join Date
    Oct 2012
    Beans
    7

    Angry Static Routing command

    Hi.
    I am running Virtual box with two VMs (Debian 6) on Ubuntu 12.04 host.
    One of the VM is DHCP server and has 3 NICs. One connected to Internet (NAT through Virtualbox) and two NICs are connected to internal networks.

    My clients PCs can get IP from DHCP server i.e. VM Debian 6. But how do I get Internet working on them?


    here is my configuration.

    eth0 - 10.0.2.15 - connected to Internet with NAT (Virtualbox GUI)
    eth1 (DHCP) - 192.168.1.x - connected with switch. Client PCs connect to switch.
    eth2 - 192.168.2.x - other internal network.

    if I add this command, DHCP stops working.

    route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.0.2.15 eth0
    I am not sure if this is right command. Please Help!

  2. #2
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Static Routing command

    Quote Originally Posted by 14309 View Post
    Hi.
    I am running Virtual box with two VMs (Debian 6) on Ubuntu 12.04 host.
    One of the VM is DHCP server and has 3 NICs. One connected to Internet (NAT through Virtualbox) and two NICs are connected to internal networks.

    My clients PCs can get IP from DHCP server i.e. VM Debian 6. But how do I get Internet working on them?
    ........
    1. Have the DHCP server allocate addresses in the 10.x range
    2. https://help.ubuntu.com/community/In...nectionSharing
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •