Jump to content

Routing 192.168.0.0/16 net


Johnny Ljunggren
 Share

Recommended Posts

Hello

 

Is it possible to route C nets?

 

I'm trying to get the IT department to add some routes so that our lab machines get access to a server in another network segment. However they are refusing and telling me they need to add routes for this one by one, and find it to be too much work. I want all networks 192.168.X.0 where X is 100-254 to go one way and the others to go wherever they need.

 

Are they right that C nets cannot be routed like

ip route 192.168.2.0 255.255.255.0 192.168.1.254

ip route 192.168.0.0 255.255.0.0 192.168.1.253

 

or something to that effect?

 

regards

Johnny

Link to comment
Share on other sites

Of course you can route the whole subnet, the problem might be that they might already be using the same IP range, and maybe is why they suggested doing it by host, rather than the whole subnet.

Link to comment
Share on other sites

I know it is possible to route the whole net. And it is correct that parts of the ip range is already in use, that is why I added the 192.168.2.0 route in the example.

There are only a few networks in use alread, and they are all below 192.168.100.0.

 

More schematic:

 

<IT servers> <-----> <IT Cloud> <----> <IT Switch> <-------> LAB Switch <------> LAB machines

 

I want the lab machines (192.168.100+ ) to access a couple of IT servers. LAB machines have default gw through LAB switch. LAB switch has default gw through IT Switch. The IT Switch connects to the IT servers through the IT cloud - which consists of any numbers of routers/routing switches.

 

My idea was to set gw on all the different IT switches so that traffic end up at the lab switch, unless specifically routed elsewhere on any of the switches.

 

Hmmm, not sure if this made things any clearer though :)

Link to comment
Share on other sites

Not really any clearer :)

 

But yes, if some of the subnets are in use on the other side, this will be why they want to add them at host level, and not by the whole subnet and it is a bit of work, but not that much depending on number of hosts, etc, and where they have to put the routes - typically probably just one router.

 

Unless they are layer 3 switches, it won't matter in changing the gateway on the switches. They won't be doing any routing for you.

 

You could always try if you have a spare machine with two network cards, making your own router and put it between your lab switch and IT switch so that the lab machines can access the IT server that you need. Just an idea, it might solve the problem without having to involve the IT department. Then you can control all the routes yourself from your lab :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...