cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1345
Views
0
Helpful
1
Replies

2 Router on 1 switch with Different network?

Lost & Found
Level 2
Level 2

Hi,
Q: How to route from Workstation(10.34.50.1)  to ISP Router and to outside interface of ISP??

SAPLE: My ISP has given me the public ip to configure it to private.

WAN:111.96.66.18

Lan IP - 111.96.64.177 - 180 usable

----------------------------------------
Diagram A problem:
D. Gateway 10.34.63.254 route the 10.34.50.0 segment to 10.34.50.2

From PC(10.34.50.1) and gateway i can ping 111.96.66.18(ISP Router Outside Int)
But when i ping 8.8.8.8 (Google) its not working same as the 121.96.66.17(Next Hop of .18)

But in ISP router I can ping 8.8.8.8 and 66.17

I did not use the ISP LAN IP on the Isp router conf configuration 

sample Config
D.G. 10.34.63.254:
interface GigabitEthernet0/0
 ip policy route-map routetoisprouter

ip access-list extended T50-U1
 permit ip host 10.34.50.2 any
 permit tcp host 10.34.50.2 any
 permit udp host 10.34.50.2 any

route-map routetoisprouter permit 10
 match ip address T50-U T50-U
 set ip next-hop 10.34.50.2

ip route 111.96.66.0 255.255.255.0 10.34.50.2

ISP Router
int f0/0
ip nat inside

int f0/1
ip nat outside

ip nat inside source station 10.34.50.2 111.96.66.18
ip router 0.0.0.0 0.0.0.0 111.96.66.17

-----------------------------------------
Diagram B Problem:
D. Gateway 10.34.63.254 route the 10.34.50.0 segment to 111.96.63.180

From PC and gateway router i cant ping 111.96.63.180.
But in ISP router I can ping 8.8.8.8 and 66.17
I use the Lan ip on ISP router config.

sample Config
D.G. 10.34.63.254:
interface GigabitEthernet0/0
 ip policy route-map routetoisprouter

ip access-list extended T50-U1
 permit ip host 10.34.50.2 any
 permit tcp host 10.34.50.2 any
 permit udp host 10.34.50.2 any

route-map routetoisprouter permit 10
 match ip address T50-U T50-U
 set ip next-hop 111.96.63.180

ip route 111.96.63.0 255.255.255.0 111.96.63.180

ISP Router
int f0/0
ip nat inside

int f0/1
ip nat outside

ip nat inside source station 111.96.63.180 111.96.66.18
ip router 0.0.0.0 0.0.0.0 111.96.66.17
-----------------------------------------

 

Sample picture attached

1 Reply 1

Hi,

Need not to make complexity. simple make sure your PC and ISP router are in the same segment assign the Gateway of your PC to ISP Router LAN IP and do the NAT overload on ISP router. thats it. your pc will have access to internet. and of couse a default route should point towards the ISP Gateway (WAN).

Review Cisco Networking products for a $25 gift card