cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2566
Views
8
Helpful
38
Replies

Unable to establishing link between two routers with different subnet

kasulasaiganesh
Level 1
Level 1

I have two ISR 4351 routers and I'm trying to  esatliblising connectivity between 2 routers with serial interface. Is it possible to connect with different subnets?

R1# serial 0/0/0 

ip address 192.168.1.1/24

encapsulation ppp

R2# serial 0/0/0

ip address 192.168.2.1/24

encapsulation ppp

2 Accepted Solutions

Accepted Solutions

Hello
It is possible to do, You will need to ultise virtual-templates to accoplish it, try the following:

RTR1
int ser 0/0/0
ip address 192.168.1.1 255.255.255.0
enacp Fr
clock rate 64000
no keepalives
frame-relau map ip 192.168.2.1 121
frame-realy interface-dlci 121 ppp virtual-template 12

int virtual-template 12
ip address 192.168.1.1 255.255.255.0

 

RTR2
int ser 0/0/0
ip address 192.168.2.1 255.255.255.0
enacp Fr
no keepalives
frame-relau map ip 192.168.1.1 121
frame-realy interface-dlci 121 ppp virtual-template 21

int virtual-template 12
ip address 192.168.2.1 255.255.255.0


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

@Joseph W. Doherty @paul driver @DaviRocK! 

It's working with static routes. Why? default route is not working. Anyway we got a solution finally. Thanks @paul driver @Joseph W. Doherty @DaviRocK! 

R1:-

kasulasaiganesh_0-1702662993393.png

R2:-

kasulasaiganesh_1-1702663062475.png

PC-1                                                                      PC-2                       

kasulasaiganesh_2-1702663120381.png               kasulasaiganesh_3-1702663192520.png

 

 

View solution in original post

38 Replies 38

It p2p so you can not use different subnet in each side.

MHM

Do you have any idea about it. Is there any feature or else i can go with any  technology ? like MPLS 

I already mention below how you can use lo as ip unnumbered and make p2p use different subnet

Can you more elaborate why you need different subnet in each side?

MHM

M02@rt37
VIP
VIP

Hello @kasulasaiganesh 

No, you need same subnet between these two serial interfaces. Aslo, from one side, you need to configure a clock [edited] if HDLC configured.

https://linuxtiwary.com/2015/03/30/static-routing-configuartion-on-cisco-router-using-serial-port/

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

One case you can use different subnet but it so so limit

R1 

LO0 1.1.1.1 

Interface x

Ip unnumbered loopback 0

R2 

LO0 2.2.2.2

Interface x

Ip unnumbered loopback 0

Here even if lo use different since it p2p you can use different subnet with unnumbered ip address 

But again it so limit and have some restrictions

MHM

Ok i'll try this configuration and update you. 

thank you

Hi

clock? is this command to establish link with different subnets.  

@kasulasaiganesh 

With PPP encapsulation, the clock rate command is not required. PPP does not rely on a specific clocking signal from the DCE side. The clocking is often negotiated dynamically, and PPP handles synchronization differently than HDLC.

So:

R1# serial 0/0/0 

ip address 192.168.1.1/24

encapsulation ppp

R2# serial 0/0/0

ip address 192.168.1.2/24

encapsulation ppp

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

"With PPP encapsulation, the clock rate command is not required."

Are you sure?  Reason I ask, Cisco shows an example of two routers, back-to-back serial, using PPP and clockrate.  See PPP Configuration Example in https://www.learncisco.net/courses/icnd-2/wan-technologies/serial-encapsulation.html.

No, "clock(ing)" is needed on serial links to work.  Normally provided by the DCE.  If you have to routers back-to-back, one of them needs to provide it.

balaji.bandi
Hall of Fame
Hall of Fame

Hope these are physical kit, how are you connecting these Serial port ?

 

Look at the high level you interface IP address wrong - correct this and test it :

R1# serial 0/0/0

ip address 192.168.1.1/24

encapsulation ppp

R2# serial 0/0/0

ip address 192.168.1.2/24

encapsulation ppp

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Joseph W. Doherty
Hall of Fame
Hall of Fame

An interesting question.

@MHM Cisco World has already showed one way to do this indirectly.

Normally, explicit IPs on both ends would be within the same subnet.  But I wonder whether it might work with a static route on each router with the far side interface network being reachable through the local router's serial interface.

Before I have tried with default route. Yes! route was formed but there is no end to end communication. 

kasulasaiganesh_0-1702488256129.png

 

 

 

kasulasaiganesh_1-1702488475671.png

kasulasaiganesh_2-1702488551492.png

 

 

 

 

What's the actual default route statement look like?

You also did the similar on R2?

Review Cisco Networking for a $25 gift card