cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1794
Views
0
Helpful
18
Replies

Routing between 2 interfaces

HGroeschl
Level 1
Level 1

Hi all,

I have a Cisco 2606 router with 2 ethernet interfaces. One of them is connected to the internet. (IP of internetgateway: 192.168.1.1 255.255.255.0) The other interface is connected to a switch with 8 clients, which are in the network : 192.168.0.0 255.255.255.0) How to make it possible to give the clients access to 192.168.1.1.. which routes do i need and how to enter them (newb :) )

Greetz

Heiko

18 Replies 18

spremkumar
Level 9
Level 9

hi

i feel u want to enable/extend the internet connectivity to your clients,if you want to connect all your local lan to the internet and allow them to access the net i would suggest to do simple PAT.

just try this commands under your interface which will enable the local to go out and access the net.

interface fastethernet 0/0

ip address 192.168.1.1 255.255.255.0

ip nat outside

interface fastethernet 0/1

ip address 192.168.0.1 255.255.255.0

ip nat inside

ip nat inside source list 101 interface fastethernet 0/0 overload

access-list 101 permit ip 192.168.0.0 0.0.0.255 any

regds

Thank you for the fast reply!

The problem is, that ethernet0/0 ist connected to an network 192.168.1.0, where another router with 192.168.1.1 is connected to the internet. When I change ethernet0/0 to 192.168.1.1 there would be a conflict :)

Are there other ways to allow the 192.168.0.0 user on 1/0 to use the 192.168.1.1 router which is connected to 0/0 ?

Greetz

Hi

is it possible to post out a small/brief topological figure representing the connectivity of your equipments and also the ip address space being used in them at present?

regds

Yes sure :

Client 1-8 (192.168.0.10-18)

|

|

switch

|

|

Cisco 2606 (1/0 :192.168.0.6,

| 0/0 :192.168.1.6)

|

Internetrouter (192.168.1.1)

|

|

other Clients (192.168.1.10-30)

All have 255.255.255.0 as SN

Client 1-8 want to use the Internetrouter :)

Greetz

hi

is your default route in 192.168.1.6 router pointing towards 192.168.1.1 ? if not do configure the same.

ip route 0.0.0.0 0.0.0.0 192.168.1.1

And also add route for the client ips i.e., host specific routes since u hve got less amount of hosts to be routed 192.168.0.10-18 towards 192.168.1.6 in 192.168.1.1.

ip route 192.168.0.10 255.255.255.255 192.168.1.6

+

+

ip route 192.168.0.18 255.255.255.255 192.168.1.6

regds

I agree that there should be a default route on 192.168.1.6 pointing to 192.168.1.1. I am not sure why you suggest a group of host specific routes rather than just having a route like

ip route 192.168.0.0 255.255.255.0 192.168.1.6.

One route is simpler than a group of host specific routes and provides for the possibility that additional hosts may be added to the network at some point.

Or perhaps it would be good to suugest to have a dynamic routing protocol run between the routers to exchange routes?

HTH

Rick

HTH

Rick

hi rick

I totally agree with your point in adding a static for the whole /24 address space instead of host specific ,Its good that you have pointed out the same ,i thought of avoiding some kinda recursive lookup for the /24 which is not the case here :-) .

regds

Hi all,

I`ve tried to add the routes you suggested, but my

router dont like them... you know why ?

testrouter(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1

testrouter(config)#ip route 192.168.0.100 255.255.255.0 192.168.1.6

%Inconsistent address and mask

testrouter(config)#ip route 192.168.0.100 255.255.255.255 192.168.1.6

%Invalid next hop address (it's this router)

testrouter(config)#

and

testrouter(config)#ip route 192.168.0.0 255.255.255.0 192.168.1.6

%Invalid next hop address (it's this router)

testrouter(config)#

doesnt work, too :(

here is my config :

interface Loopback0

ip address 192.168.42.1 255.255.255.255

!

interface Ethernet0/0

ip address 192.168.0.1 255.255.255.0

!

interface Ethernet1/0

ip address 192.168.1.6 255.255.255.0

!

router igrp 1

redistribute connected

network 192.168.0.0

!

ip local pool setup_pool 192.168.0.1 192.168.0.3

ip classless

ip route 0.0.0.0 0.0.0.0 192.168.1.1

dialer-list 1 protocol ip permit

dialer-list 1 protocol ipx permit

banner motd ^C

Greetz

hi

As far as default route is concerned you are adding up it on the rite router (192.168.1.6 which has 192.168.0.0 too),but the route for 192.168.0.0/24 has to be added in 192.168.1.1 router and not in your test router (192.168.1.6).

thts basically added for the reverse traffic to come in to the 192.168.0.0 network.

would suggest to edit ur static route statement similar like this and paste it in your 192.168.1.1 rotuer.

ip route 192.168.0.0 255.255.255.0 192.168.1.6

btw with which routers you are running igrp ???

is that between 192.168.1.1 and your router or with something else ?do confirm about that.

regds

Hi again :=)

192.168.1.1 is a cheap netgear router without ios... so i cant add a route :( Is there a possibility to solve my problem another way ?

With the standartroute 0.0.0.0 0.0.0.0 192.168.1.1 on 192.168.1.6 router I can ping 192.168.1.1 from the 192.168.0.x clients :) But internet is not working.. As Gateway/DNS I use 192.168.1.1...

Greetz

Hi

i feel instead of getting more n more complicated , would suggest to configure your cisco box with 192.168.1.1 instead of 1.6.

is it doable ? coz as u said your netgear box may not support whatever other features too if u want work in some of them or to check with.

regds

Hi,

yes you are right. Very complicated. Thank you for your help. Maybe some "playing" with the router helps :=)

And sorry, in my last post I said that I can ping 192.168.1.1... but only 192.168.1.6 is possible.. do you know why ? In my opinion every client in 192.168.1.x should be pingable, if 192.168.1.6 is possible... %)

hi

I was wondering about the reachability of your clients (192.168.0.x) to the ip - 192.168.1.1 which u have mentioned in your last mail,and again in your very recent post you have mentioned that clients from 192.168.1.x should be pingable but u have got ur clients in 192.168.0.0 rite ? do clarify ...

regds

Hi again,

I have a new plan, because i can´t configure the 192.168.1.1 mashine. Is it possible to do a nat on a cisco 2606 ? I found the option "ip nat...", but i`dont know how to use this option.

Maybe there are a database on inet with FAQ`s or "How to`s" ?

Greetz

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco