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


ADVERTISEMENT

Networking :: Definition: "a Process That Replaces A Series Of Related, Specific Routes In A Route Table With A More Generic Route"

Oct 21, 2010

I got this definition:"a process that replaces a series of related, specific routes in a route table with a more generic route." honestly I found it not so clear.. I want to know if this definition is correct and also more details about this subject..

View 1 Replies View Related

Fedora Networking :: Static Routes Aren't Added After Editing Routes-wlan0?

May 8, 2011

How do I add a route that doesn't go away after a reboot? I tried adding to /etc/sysconfig/network-scripts/route-wlan0 and /etc/sysconfig/static-routes but neither of them did anything when I restarted network and NetworkManager. route command does not show the new route that I added. I tried this too - routes.html and there were no errors but the new route doesn't show up with the route command.I added "192.168.13.88/255.255.255.255 via 192.168.13.101 dev wlan0"

View 2 Replies View Related

Networking :: Route Eth2 TCP Packets To Tun0 With IPTABLES And IP RULE/ROUTE?

May 8, 2011

I have 3 network interfaces on my Linux Router :

Interface - Gateway - Type

Code:

br0 - 192.168.0.1 - Internet
eth2 - 192.168.1.1 - LAN
tun0 - 10.0.0.2 - VPN (via br0)

What I'd like to do is to route all TCP packets coming from eth2 to tun0 where a VPN client is running on 10.0.0.2. If I delete all default routes and if I add a new route to tun0 like :

Code:

route del default
route add default gw 10.0.0.2

Everything is fine, and everyone on eth2 can reach the Internet using the VPN access. Now the problem is that my VPN client does not allow any other protocols other than TCP. And I also want to allow VPN access only to eth2, no other LAN nor the router itself. use iptables to filter any TCP packets and mark them, so they can be sent to tun0, while any other packets can reach the Internet via br0 (192.168.0.1). I found on the Internet that we can mark packets before they get routed. Using the following commands :

Code:

iptables -t mangle -A PREROUTING -j MARK --set-mark 85 -i eth2 -p tcp --dport 80
ip route add table 300 default via 10.0.0.2 dev tun0
ip rule add fwmark 0x55 table 300

First of all, --dport 80 never work... :/ I wanted to filter TCP 80 packets coming from eth2, but none of them seems to be HTTP packets... oO (very strange...). Nevermind, I decided to forget about the --dport option. I use the "iptables -L -v -t mangle" command to see how many packets are marked, and it is working fine, all TCP packets coming from eth2 are marked. Now the problem is that none of them are routed to tun0 they are all respecting the "route -n" rules... and not the "table 300" rule I have created.

View 4 Replies View Related

Networking :: Route-eth - Adding A Static Route?

Apr 29, 2009

I would like to add a static route, however I do not understand what is meant by the Address setting below

GATEWAY2=10.241.58.62
NETMASK2=255.255.255.224
ADDRESS2=10.241.57.32

Does this mean any addresses beginning with 10.241.57.32 are routed over the gateway 10.241.58.62 an address range

View 3 Replies View Related

Ubuntu Networking :: Error - "route: Netmask Does Not Match Route Address"

Jan 25, 2011

Having trouble getting my Netgear WNA1000 working thru wireless router. Have tried lots of suggestions from other threads to no avail. Someone suggested that th routing table isn't set correctly, so have been trying to use the follwing to make the proper entry in the routing table: sudo route add -net 192.168.0.1 netmask 255.255.255.0 dev wlan0

Result: error message stating with:
"route: netmask does not match route address"

followed by "Usage" instructions which tell me to do what I just did. Any ideas on how I can populate my routing table with correct entry for my wireless card? Not to complicate matters, but I temporarily turned off encryption on my router to eliminate that as a possibility until I get connected. So maybe it'still trying to connect via encrypted mode - do I need to turn off encryption on my (client) end?

View 2 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 :: 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 :: Routes Not Persistent ?

Sep 1, 2010

I have a ubuntu 10.04.1 install with openvpn, so I have some routes in my /etc/networking/interface file. But for what ever reason when it boots the routes don't come up and I have to restart the networking before they come up. Once I do that all is well.

View 4 Replies View Related

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 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 :: 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

Ubuntu Networking :: Routes Are Not Persistent

Sep 1, 2010

I have a ubuntu 10.04.1 install with openvpn, so I have some routes in my /etc/networking/interface file. But for what ever reason when it boots the routes don't come up and I have to restart the networking before they come up. Once I do that all is well. Any idea's why it's doing that?

View 1 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 :: 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 :: 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

Networking :: Adding Persistent Routes In RHEL5?

May 13, 2011

At work I have been given the "opportunity" to provide admin support on a bunch of RHEL3, 4, and 5 servers. My latest problem is, as the subject hints at, adding persistent (or permanent) routes on a RHEL5 server. I've successfully done this with a couple of RHEL4 servers by adding the relevant information to the /etc/sysconfig/network-scripts/route-eth0 file like this:

GATEWAY0=xx.56.200.129
NETMASK0=255.255.255.128
ADDRESS0=xx.56.200.250

On the RHEL5 servers I do not see a route-ethX file. Do I just add the file and the route info? Or has this functionality been moved to another location?

View 2 Replies View Related

Networking :: Multiple Routes Based On Source IP?

Jan 29, 2010

I have 2 NICs in one box, both connected to two different routers.Is there a way to make NIC1 handle lets say 204.x.x.x and NIC2 handle the restncoming requests though.Basically, I have apache running, and I things to go through a specific NIC based on source.

View 1 Replies View Related

Networking :: How To Setup Static Routes - Gateway ?

Jan 18, 2011

I have a temporary system up with wlan0 and eth2.

I want the eth0 address to be the gateway for accessing the internet on wlan0.

How do I setup static routes?

I'm not too keen with networking...

Code:

View 1 Replies View Related

Networking :: What Routes To Add In Order To Make VPN Work

Feb 5, 2010

i installed the free PacketIX vpn client on my ubuntu 9.04. it created a virtual network adapter, i was able to configure and connect to the VPN service but when i add a default route to the routing table so that all internet traffic goes through the VPN, my internet connection stops working until i remove the line i added.
here's my routing table before :

Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.222.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 vpn_vpn
0.0.0.0 192.168.222.2 0.0.0.0 UG 0 0 0 eth0
and after i add the route:
[Code].....

View 2 Replies View Related

Networking :: Why Accept Routes In Bgp / When Have Default Gateway From ISP?

Apr 7, 2010

I am realtively new to BGP. I use BGP in my network to advertise my /20 subnet. What i would like to know is what is the point of accepting routes from your neighbouring AS(ISP)?My ISP has given me a default gateway, and no matter what I want to reach on the internet I have to go through that default gateway, so why populate the routing table with soo many routes?also, as i understand it, there are 3 kinds of routes that you can accept, those are full routes, directly connected routes and default routes. What is the diffrence between them and again how do they affect routing since my network only has the one default gateway?

View 2 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







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