Ubuntu Networking :: Routing Between Two Subnets ?

Feb 16, 2011

I have a network routing problem that I need to fix using a PC with ubuntu installed.

Here are the details of my problem:
- I have two networks.
- The first network is an ADSL router with subnet 192.168.1.x. I do not have access to the router nor change any of its configuration.
- The second network has a subnet 172.26.x.x and connect via a wireless access point. Some of the devices connected to the network require to have static IPs.
- I have a PC with ubuntu installed and two ethernet cards: one connected to the first network and the other connected to the access point.
- I need to share the internet connection between the two networks using ubuntu. I already tried before on windows and the sharing worked when both networks were configured to use the same subnet. Once I changed the subnet of the second network, internet sharing stopped working.

View 1 Replies


ADVERTISEMENT

Networking :: Routing Two Subnets ?

Jun 26, 2010

I have two subnets which I am interested in connecting.

Some basic network details:

Subnet A:

Subnet B:

I am trying to think of any further relevant details, but that seems to be it to me. If I forgot anything, please tell me.

Ok the question. WHAT do I type? (Explicitly!) And WHERE do I type it? In order to reach ubuntu-01.tec.lan, or ubuntu-02.tec.lan from perpetrator.tec.lan or rapine.tec.lan?

I'm interested in using actuall ROUTES. I can already achieve results similair to this with either a NAT firewall, or with VPN.. but that's not what I am interested in.

From what I have found out so far, I should need something like the following:

On Gateway 1B:

Code:

And on Gateway 1A:

Code:

View 5 Replies View Related

Networking :: Routing One Gateway To Different Subnets ?

Sep 3, 2010

Im having a issue with routing internet traffic from my router two different subnets (vlans).

Theres my setup:-

Server:

Both eth0,1 are running dhcp (two scoopes) that works fine!

The output of route -n is:

I have ip_forwarding on aswell, but i can ping the ip on the server running that dhcp scoope ie ping 192.168.4.1 works great but i just cant get the internet on the clients.

View 8 Replies View Related

Networking :: NFS Server Serving 3 Subnets And Routing ?

Apr 23, 2010

I have one main subnet 192.168.50.0/24 with a defaultrouter 192.168.50.1 connected to the internet. I have an NFS server on that network. Everything is working as desired and machines are able to see each other and access the internet.

Now, I would like to add two more interfaces to the NFS server (running Slackware Linux), each on its own different subnet, say 192.168.51.0/24 and 192.168.52.0/24. The clients on those new subnets should also be able to access the internet (through the router 192.168.50.1). how to setup routing? Do I need any additional hardware router in between, or just a software configuration on the NFS server?

On a side note I have VLAN capable switches (couple of ProCurve 1800-24G) and would like to separate the three subnets using VLANs instead of using three separate switches.

View 1 Replies View Related

Networking :: Configure Static Routing Between Two Different Subnets

Aug 25, 2010

In configuring static routing between two different subnets.

I have two different subnets as mentioned below:

I have a linux machine with two NICs on which i would like to configure static routing. details of the NICs are as mentioned below:

I have configured the gateway as 10.77.77.1 on machines which fall under 10.77.77.0/24 subnet and 172.16.40.1 on 172.16.40.0/24 machines.

My main motive here is i want communication to happen between both the subnets.

If the following modifications to route-eth0 and route-eth1.

View 3 Replies View Related

Networking :: Insert Routing Data Into The Routing Table Doesn't Work?

Apr 6, 2010

I have a firewall, this consists of three NIC's:

Code: eth0[192.168.0.2] eth1[192.168.1.2] and eth2[10.10.165.2]

I am trying to ping eth0 from eth2, but I am not able to succesfully get a response from pinging the device, I am using:

Code: ping 192.168.0.2 -I eth2

I have tried to insert routing data into the routing table, but it still doesn't work

View 2 Replies View Related

Ubuntu Networking :: Bridge Two Subnets With A Server?

Nov 2, 2010

I have a Ubuntu server with multiple NICs and I'm just thinking about a potential scenario that might come up soon.

Imagine I have a network on floor 1 with an independent cable connection to my Ubuntu server -> switch -> assorted devices, on the subnet 192.168.0.x Now imagine friends upstairs have another independent network with cable -> router -> assorted devices, on subnet 192.168.1.x.

How can I set up my server to provide access for the 1.x subnet to the 0.x and vice versa. Ideally the devices all access internet from their appropriate subnet. I've read something about bridging, is this what I need?

View 1 Replies View Related

Networking :: Two Subnets Can't Talk To Each Other?

Jul 7, 2010

I have a firewall between two different subnets. The reason for the second subnet within the internal network is because I have a mail server that I want to protect. However, we need to make sure that the mail server can communicate with the internal network as well.

Mail server is 192.168.100.100
Firewall is 192.168.100.1 and 10.110.101.5 (and its gateway is 10.110.101.1 to the router)

I go to another workstation and ping the mail server. I can't. It times out. I do the same from the mail server. It times out as well.

View 1 Replies View Related

Networking :: 2 Subnets Over The Same Cable?

Nov 27, 2010

I have a 2-floor house, with a single ethernet cable from the ground floor to the 1st. Downstair there is my ADSL modem, which is connected to the router upstair through this one cable. Now, I would like to have some more ethernet ports on the ground floor, but there's no room left to run another cable between the floors, so here's the big question: can I run both the modem-router connection and my regular LAN (which are on different subnets) through that one cable, with a switch at both ends?

To make it a little more clear, here is my present configuration

Code:

DOWNSTAIR UPSTAIR
ADSL Modem ------- Router --- Clients

Here is what i would like to do:

Code:

DOWNSTAIR UPSTAIR
ADSL Modem ---- Switch ------ Switch ----(WAN Port) Router --- Clients
Clients ---- ----(LAN Port)

Would it work?

View 6 Replies View Related

Networking :: Can't Ping Subnets - Vmware

Jan 15, 2011

Bear with me cos i'm just learning this stuff.

I've set up a couple of virtual networks with vmware workstation and experienced the same problem each time. I'll explain the one i'm working on now.

Machines -

Host - Slackware 13.1, VMware workstation 7.x.
VM1 - Vyatta (router).
VM2 - WinXP (client).

[Code]....

BUT I can't ping the XP client from the virtual router, and from the host I can't ping the virtual router.

Why is this?? I assume i've done something wrong but I don't know what.

View 3 Replies View Related

Networking :: Connecting Two Subnets Via A Server?

Mar 3, 2011

i have two subnets with different gateways.i am thinking of connecting them via a linux server which would enable them to communicate.but i dont know how to proceed for getting this done.how should the connection be made and what should be the configuration settings on the linux server.

View 2 Replies View Related

Networking :: Dhcp Server With Two Subnets?

Mar 17, 2010

I'm trying to build a linux(fedora 12) dhcpd server(and gateway), that have 3 network cards(eth0 have with public ip, eth1 192.168.2.1 class and eth3 with 192.168.3.1 class).

Because I have just a switch, I want to put both cables(from eth1, eth2) in the switch. Every client has 2 network card(eth0, eth1). My question is, is there any way to conf eth0 to take from server ip from 192.168.2.1 class, and eth1 from 192.168.3.1? The internet will work only on eth0.

my dhcpd.conf for now looks like this:

subnet 192.168.2.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 192.168.2.1;

[Code]....

View 1 Replies View Related

Networking :: Route 2 Subnets Between 2 Routes?

Oct 28, 2010

I have some CISCO,Linux related problem with 2 Class C subnets:

192.168.64.0 -> PC5
192.168.65.0 -> PC6

Here's a picture of my situation: [URL]

HQ has to have 2 STATIC routes in order those 2 "PCs" mentioned above to have end to end connectivity with NETWORK A and NETWORK B. Now I try with

route0 -> network: 0.0.0.0, mask: 0.0.0.0, nexthop: Serial 0/0/0
route1 -> network: 0.0.0.0, mask: 0.0.0.0, nexthop: Serial 0/0/1

And it seems to work but I don't think it's proper! I feel it's kinda wrong ... but all my other attempts to set another couple of static routes ends in "Request timed out" and thus connection lost.

View 1 Replies View Related

Networking :: Determine How Many Subnets Are In A Network Range

Jan 12, 2010

I am trying to remember how to determine the number of subnets there are in a given subnet range. The example range is shown below:Quote:217.133.64.0-217.133.127.255nce I did the binary conversions of the two addresses shown, the address that I got when comparing the two was the following:Quote:217.133.192.0he number of subnets I got from his was 63.Correct me if I am wrong, but is the number of subnets the difference between the number, in this case, the third octet and 255? If there is another, or correct, way of determining the number subnets what would it entail?

View 8 Replies View Related

Networking :: IPTables NAT - Excluding Subnets For IPSec VPN

Feb 27, 2011

I have a Ubuntu 10.10 box which i've developed an IPTables Firewall script and is forwarding my ports correctly. This service also runs Openswan VPN Server with 2 VPN's, which is also working well.

I have come across a small snag with excluding the multiple VPN subnets I have from the NAT on this box.

I have the line in my configuration file:

-A POSTROUTING -o eth1 -s 10.172.1.0/24 -d ! 192.168.5.0/24 -j MASQUERADE

Which when added to IPTables does make the VPN come to life. But I can't seem to get it to add the second subnet. Unfortunately, I can't do a blanket exclusion such as 192.168.0.0/16 because the second VPN is on a Class B subnet address which I cannot change.

View 1 Replies View Related

CentOS 5 Networking :: Ipsec - Get Access To All The Subnets?

Aug 18, 2011

Connecting two networks with ipsec on this manual [URL] The two networks are connected, everything works, the question is as follows: For a gateway to multiple subnets, I have access to only one subnet is listed in / etc/sysconfig/network-scripts/ifcfg-ipsec0 DSTNET = 192.168.2.0/24. How do I get access to all the subnets?

View 2 Replies View Related

CentOS 5 Networking :: Adding Two Subnets To 1 NIC Port?

Sep 1, 2011

I have a server hosting with in a DC and I have two subnet on 1 VLAN. how can I add all the IPs from these two subnet in one go? lets say for instructional purpose they are 192.168.0.0/24 and 192.168.1.0/24

View 1 Replies View Related

Ubuntu Networking :: Have Single Cable Connection To Switch Carrying Two Subnets?

Mar 15, 2011

how i can use VLANs. as i have red on the web, it is possible to have a switch to allocate ports to a single VLAN. thus splitting subnets on a port allocation. since i have a pc running KVM, it is possible to create multiple subnets for DMZ and LAN. thus my question is - is it possible to have a SINGLE cable connection to a switch that carries TWO subnets? so that i can decide how to distribute then on the pc?

View 7 Replies View Related

Networking :: (Debian) IP Traffic Shaping Based On IP/subnets?

Dec 27, 2010

We have a need to shape outgoing traffic EXCEPT to certain IP/subnets (sounds opposite to the title, but not really :P), using iptables if possible. We've had decent luck doing it with various things, but one of the big problems is the decrease in download speed (which DOES NOT need to be shaped at all) due to upload shaping. ie, we want the shaping not to apply to TCP/UDP overhead. Semi related but probably not important is the ability to shape virtualised systems as well (ie the guests), but as the guest traffic goes through the host any traffic shaping done on/to the host should affect the guests as well.

View 1 Replies View Related

Networking :: Use Multiple Dhcp Subnets On Single Machine?

Dec 13, 2010

I am find myself in need of building what amounts to 3 ip networks on 1 physical lan.

first LAN is another companies network on the 10.0.0.0 network a mix of pc's and equipment

second is LAN new company network 192.168.168.0/24

third network is an ip phone system for both i would like to use 192.168.200.0/24

i am hoping to use the same dhcp server to do this, assigning address to the old company's 10. network via mac address reservation.

View 9 Replies View Related

Networking :: OpenVPN - Different Subnets For Physical And Virtual LANs?

Jan 27, 2010

I have set up OpenVPN server using a bridged configuration. My networking "powers" aren't that advanced, so I did this by following the openvpn tutorial for bridged servers. I have tested this with several clients connecting to my server from different locations and it works very nicely (including broadcasts).

My server's LAN IP address is 192.168.2.4, and my LAN's mask is 24. Clients connecting to my server get assigned IP address that also fall within that subnet (i.e., the 192.168.2.x pool contains both physical machines in my home and "virtual" hosts). This is what the OpenVPN walkthrough specifies:

[Code]...

I was wondering if it would be possible for the VPN to fall within a different subnet (such as 10.0.1.x). I would also like to do that without adding another physical NIC to my server, or changing my physical IP address. I would imagine this is possible, since that's how hamachi does it.

View 1 Replies View Related

Networking :: Configuring 2 Nics To Talk To Two Different Subnets On A Sles10sp3 Server?

Nov 27, 2009

I am trying to setup a HP blade (BL460) server with 2 nics on sles10sp3. I want one nic to connect to a management vlan and and second to connect to the standard network. It should be possible for a desktop in the standard network to connect to either nic by providing the correct ip address.use this server as our first virtualisation hosts server using Xen. I dont want traffic used to upload / download images to the server through nic1 to effect the users traffic on the standard network on nic2. However any attempt at routing (which Im not good at) has led to the tx traffic all going out the default route (users subnet).

Each time I setup the nics via yast2 lan I can get the standard lan nic working ok. but cannot get the management nic working correctly. The server can ping a workstation on another vlan, but the workstation cannot ping the management nic. The default route appears to be forcing all traffic on the host out through this route, which I presume is normal behaviour. Using tcpdump I can see the ping packets received by the server, the server then responds through the default gateway, which the workstation does not see.

However, this normal behaviour will result in extra traffic on the users network when image downloads are initiated from the management interface.If I use a 172.24.1.0 network routed through 172.24.1.1 router setup as our management vlan , and 200.200.1.0 with router 200.200.1.1 as our lan for general users. Where server ips are nic1 10.1.1.10 and nic2 200.200.1.10 My workstation would be 200.200.1.10. If I ping the server at 10.1.1.10
I get no response. If I ping the server at 200.200.1.20 no problem.

Basically I used the network setup recommended by vmware to manage a virtual server. I actually have 4 nics, I thought by just talking about 2 nics the problem would be easier to explain. vmware specify that two nics should be used for management and two for the Lan. This is what I am trying to achieve, but both subnets must operate independently.

View 3 Replies View Related

Networking :: Dhcpd3 Doesn't Assign Proper Addresses To Vlan Subnets

Oct 22, 2009

I have dhcpd3 running but it does not seem to properly use my vlan subnets to assign addresses.

I have eth0.10, eth0.20, eth0.30, eth0.40, eth0 all declared with proper ranges, subnets and gateways.

If request an address in on eth0.30, I would think that it should use the range associated with this subnet (ie eth0.30 is 10.10.30.10/24) and this is setup in dhcpd3, but this is not the case.

It seems to use the first declared subnet instead. If I comment the first subnet out, it uses the second one properly.

View 3 Replies View Related

Networking :: Networking Routing \ Use The Terminal To Assign Server Eth0 A Proper IP Address?

Jun 8, 2010

i know exactly what i need to do, im just not familiar enough with command line to do it properly.i have 7 computers.the first 4 are connected to a router via wireless at one end of the house. of the last 3 only 1 will be able to access the router via wireless, so it needs to share it's one wireless connection via ethernet. this computer i'm going to call 'server'server will have two IP'swlan0 192.168.1.6 this connects to the router that has internet access.eth0 i intend to have the following settingsip:192.168.0.1sub: 255.255.0eth0 will connect to a second router, where the cat5 cable goes from the server, into the internet port of the router where i will define the router's static IP:IP: 192.168.0.100sub: 255.255.255.0gateway 192.168.0.1i have then set the router IP for LAN handling as 192.168.27.1 and all ethernet connections will have a 192.168.27.x IP.

so i need to know how to, without a gui application, use the terminal to assign server eth0 a proper IP address, and tell the server to take the connection it has and share it through eth0 to supply internet for the last 2 computers via ethernet.i had it set up in this way with a windows machine being the one that had the wifi access, but i'd rather have it setup for the ubuntu server to do this task. security is imperative for these 3 remaining machines, so just getting 2 more wifi adapters for a connection to the initial router isn't an option.the 2 that connect to server do so through SSH and though server IS connected via wireless it only makes outward connections through

View 1 Replies View Related

Networking :: Server On Multiple VLANs Server Not Responding To Pings From Non-local Subnets?

Jul 14, 2010

I've got a machine running Ubuntu Server that is on several VLANs. Each VLAN has its own subnet and the server has an address on each subnet. The switches are set to allow tagged traffic to the server for each VLAN that it is on. Switch ports ending with workstations are given untagged ports on whatever VLAN is appropriate. Workstations are given addresses on a subnet for each VLAN via DHCP. All this works great and hosts on any subnet/VLAN can access the server as normal via its address on that subnet/VLAN.

Accessing the machine by its address on a non-local subnet is where I run into a problem. Inter-subnet traffic has to go through a router, which has been set up appropriately. Running tcpdump on the server and pinging it from a workstation on a subnet, using its address on a different subnet, shows the server receives the ping, but sends no response:

Code:
sudo tcpdump -i vlan4 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode

[code]...

View 8 Replies View Related

Ubuntu Networking :: Application Routing 2 Different Gateway?

Feb 5, 2010

My Laptop is connected to 2 different network (Wireless "gateway 10.170.8.1" ;cable wired "gateway 192.168.1.1")the gateway 192.168.1.1 is the default i want all application like firefox that connect via http and https port 80 and 443 to use the gateway 10.170.8.1)
else to use the default gateway

View 1 Replies View Related

Ubuntu Networking :: WAN/LAN Routing - Cant Route Back In?

Mar 13, 2010

I've got an Ubuntu web server running 9.04 & Apache2. Ive got 2 NICs, one with an internal address for the LAN and one with and external address for the WAN to host the websites. My IP configuration is as follows (/etc/network/interfaces):

# The loopback network interface
auto lo eth0 eth1
iface lo inet loopback
# The primary network interface (WAN)
iface eth0 inet static

[Code]...

When i do a traceroute from a LAN PC and it makes it all the way to the router and then just stops. I'm probably missing something very simple, its been probably 10 years since i took a class in this.

View 9 Replies View Related

Ubuntu Networking :: Routing - Forward All Traffic To An Ip To Another Ip

Jul 25, 2010

I need to be able to do the following: Physical Router located at 192.168.40.1

On Ubuntu 10.04 Lucid machine:
eth0 with static ip 192.168.40.2
eth1 with static ip 192.168.40.3
eth2 with static ip 192.168.40.4

Associate a virtual address to eth1 with an entirely different network address such as 192.168.50.1 Do the same (virtual address) for eth2 -- e.g. 192.168.60.1 In the application:

register phone number A at 192.168.40.1 (The application will automatically use eth0 for this)
register phone number B at 192.168.50.1
register phone number C at 192.168.60.1

Somehow forward all traffic (including the register request) sent to 192.168.50.1 to 192.168.40.1 as if the register had been made directly to 192.168.40.1. In other words, the app "sends" registration and traffic to 192.168.50.1 but then Ubuntu forwards it to 192.168.40.1 (but the app does not know that). Similarly, forward all traffic sent to 192.168.60.1 to the router at 192.168.40.1.

Do the same for the reverse, forward all traffic that the router sends back to 192.168.40.3 (eth1) to 192.168.50.1 (within the Ubuntu machine) so that the app knows it is for phone B. Similarly forward all traffic that the router sends back to 192.168.40.4 (eth2) to 192.168.60.1 so that the app knows it is for phone C. Thus, the application believes that it is registering at 3 completely separate routers on 3 completely separate networks via 3 separate network interfaces but in fact is really registering all three to the same router (but does not know that). Similarly, the router believes that it is receiving 3 separate registrations because it receives each registration request and traffic from 3 separate interfaces and thus 3 separate mac addresses (i.e., of eth0, eth1, and eth2). Traffic sent to and from the router for each of the 3 phone numbers (via eth0, eth1, and eth2) are not mixed because the translation happens in both directions.

View 9 Replies View Related

Ubuntu Networking :: Routing Internet From One Router To Another?

Feb 11, 2011

How can I find the IP of a router wirelessly so I can use the second router for a better signal? (A farther reaching wireless card is what im trying to make it do)

also how can I find the subnetmask this way?

View 4 Replies View Related

Ubuntu Networking :: Routing Over Certain Interface Using Iptables?

Feb 24, 2011

I am establishing a VPN connection with a Cisco VPN server, but only want outgoing connections to a certain set of IP addresses to actually go through the VPN. I tried something like this:

Code:
sudo iptables -A OUTPUT -t mangle -p tcp -d 111.222.0.0/16 -j ROUTE --oif tun0
but keep getting

[code]...

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved