12-19-2020 08:11 AM
Hi Guy's
Is it possible to connect to routers back to back,
R1 has physical interface with ip address.
R2 has a subinterface configured with IP address
I can not ping the IP of R2 from R1, if I move the ip to the physical interface on R2 I can ping both ways.
How can I configure this to work with R2 having the IP on the subinterface.
Regards
12-19-2020 09:39 AM
It would be good to have more information and description. I might ask similar questions as an example:
Can you connect Cisco Small Business routers LAN to LAN? (In Router mode? In Gateway mode?)
Can you connect Cisco Small Business routers WAN to LAN? (In Router mode? In Gateway mode?)
Can you connect Cisco Small Business routers WAN to WAN? (In Router mode? In Gateway mode?)
I think the answer is: Yes for most of these cases.
"I can not ping the IP of R2 from R1, if I move the ip to the physical interface on R2 I can ping both ways."
Since each router has at least 2 IP addresses, at least one on the LAN (and might have more if there are VLANs) and one on each WAN (as there are dual-WAN routers) then knowing which ones you're referring to would be helpful.
When you say "move the ip to the physical interface" I get rather confused about where ELSE would it be present/observable?
And, you mention a "subinterface" which has no meaning for me .... ?
Generally, unless an interface is waiting for an address via DHCP, it will have an IP addrress (static) and can be pinged.
UNLESS it's on the WAN interface and ICMP traffic is being blocked by the firewall.
Too many variables and unknowns to comment further I'd say. But I'll stand by for more info.
12-19-2020 10:27 AM
12-19-2020 10:46 AM - edited 12-19-2020 10:49 AM
as per the config, there is a duplicate IP, charge as below it should work. ( sub-interface you need to use encapsulated with VLAN correctly)
R1
!
interface GigabitEthernet0/1
description WAN link to R2
ip address 10.130.0.89 255.255.255.252
duplex auto
speed auto
no shut
!
R2
!
interface GigabitEthernet1/0
no ip address
no shut
!
interface GigabitEthernet1/0.3190
description WAN link to R1
ip address 10.130.0.90 255.255.255.252
duplex auto
speed auto
no shut
!
12-19-2020 12:29 PM
12-20-2020 02:28 AM
I have only correct the subnet and suggested dot1q config should be the same both the side.
12-19-2020 12:49 PM
I may well not be the right person to address your question. I don't generally edit configuration files.
What are the router models?
12-19-2020 06:20 PM - edited 12-20-2020 03:29 AM
Subinterfaces on router should be used when you connect to a switch in order to do Router-on-a-stick method of routing vlan traffic (aka ROAS). Using encapsulation dot1Q on one side and no encapsulation at all on the other is the reason why this does not work. you could try to use encapsulation dot1Q on both routers just to see if that works; it should. Otherwise, if R2 (one with subinterfaces) connects to switch who is trunking (over a trunk line), it will work fine.
Regards, ML
**Please Rate All Helpful Responses **
12-20-2020 03:37 AM
12-20-2020 03:54 AM
in your case, another solution is just to add "native" keyword to encapsulation dot1Q 3190 while other end does not have sub-interface / nor uses encapsulation. this should work because "native" in dot1q means no encap or no tag (no tagging traffic).
try it and let us know
Regards, ML
**Please Rate All Helpful Responses **
12-20-2020 03:38 AM - edited 12-20-2020 03:40 AM
here is config example: match both routers but change last octet of IP of course;
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.13.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.130.1 255.255.255.0
!
R1#sh ip ei ne
IP-EIGRP neighbors for process 1
....
1 192.168.130.3 Fa0/0.20 14 00:00:37 98 588 0 17
0 192.168.13.3 Fa0/0.10 14 00:07:46 694 4164 0 15
R1#
12-20-2020 05:40 PM
Here is mix of working sub- and no sub-interface config for back to back router setup
R1#
!
interface FastEthernet0/0
ip address 192.168.13.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.130.1 255.255.255.0
Router 3 on the other side has 2 sub-intefaces
!
interface FastEthernet0/0.10
encapsulation dot1Q 10 native
ip address 192.168.13.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.130.1 255.255.255.0
!
Result is ok,
R3#p 192.168.13.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.13.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/28/52 ms
R3#p 192.168.130.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.130.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/27/56 ms
R3#
both routers have EIGRP UP over 2 interfaces
R1#sh ip ei ne
IP-EIGRP neighbors for process 1
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.13.3 Fa0/0 12 00:05:58 72 432 0 33
1 192.168.130.3 Fa0/0.20 11 00:20:30 101 606 0 34
R1#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide