Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a static route to a 1600 router 3

Status
Not open for further replies.

mugs82

MIS
Joined
Oct 15, 2000
Messages
128
Location
US
I have 2 subnets connected via 2 1600 series routers. Right now, I am using a login script to add persistant routes to my clients, or I am using the Route Add command to add the routes manually.

I would like to just add the routes on the routers. One of the routes is 192.168.101.0 MASK 255.255.255.0 192.168.100.29.

What are the IOS commands that I need to use?

Thanks in advance!
 
The default syntax for static routes

Router(config)#ip route x.x.x.x <mask> y.y.y.y

Where:
x.x.x.x is the destination network.
y.y.y.y is the ip/interface to route via.

Example if I want to route 192.168.100.0 via the ethernet0 interface with the IP 192.168.1.1,

Router(config)#ip route 192.168.100.0 255.255.255.0 192.168.1.1
or
Router(config)#ip route 192.168.100.0 255.255.255.0 ethernet0

JimmyZ
 
Okay, I am wanting to route to 192.168.101.0 via 192.168.100.29(address of the router).

I added the route using

ip route 192.168.101.0 255.255.255.0 ethernet0

I still can't ping unless I add the routes to my workstations.....Is there another setting to allow my workstations to be route aware?
 
mugs82,
Here's what I understand from your scenario. If your setup is a little different, please let me know.

Workstations are on 192.168.100.x LAN and want to ping 192.168.101.x LAN devices (vice versa). You only have one router with an e0 interface 192.168.100.29. Correct??

Do you have a router or another interface into 192.168.101.x? If not then you are not going to able to communicate between two different subnets, unless you create a secondary IP for your router interface for the 192.168.101.x LAN or add an additional ethernet interface for the second LAN.

Example

192.168.100.x <-- e0[router]e1-->192.168.101.x

e0 = 192.168.100.29
e1 = 192.168.101.??

Alternatively you can substitute e1, by creating a secondary IP address on e0. Also, please check that your PCs have the correct default gateways setup in their TCP/IP network config.

JimmyZ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top